# Default for the Decoder past\_key\_values - Marian

**URL:** <https://discuss.huggingface.co/t/default-for-the-decoder-past-key-values-marian/28998>\
**Category:** Intermediate\
**Created:** [January 5, 2023, 3:11pm UTC](https://discuss.huggingface.co/t/default-for-the-decoder-past-key-values-marian/28998 "2023-01-05T15:11:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iprovalov](https://avatars.discourse-cdn.com/v4/letter/i/c0e974/32.png) [@iprovalov](https://discuss.huggingface.co/u/iprovalov)\
**Post date:** [January 5, 2023, 3:11pm UTC](https://discuss.huggingface.co/t/default-for-the-decoder-past-key-values-marian/28998/1 "2023-01-05T15:11:44Z")

</div>

I am converting Marian to Onnx, using pytorch export. My question is regarding the past\_key\_values optional parameter. The way I understand this, for the onnx export, every parameter must be specified.

Are there reasonable default **past\_key\_values** which can be passed in for the initial token in the decoder sequence?

Thank you,

Ivan
