# MT5 Decoding in wrong language

**URL:** <https://discuss.huggingface.co/t/mt5-decoding-in-wrong-language/8629>\
**Category:** 🤗Transformers\
**Created:** [July 23, 2021, 2:04pm UTC](https://discuss.huggingface.co/t/mt5-decoding-in-wrong-language/8629 "2021-07-23T14:04:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranonraian](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pranonraian](https://discuss.huggingface.co/u/pranonraian)\
**Post date:** [July 23, 2021, 2:04pm UTC](https://discuss.huggingface.co/t/mt5-decoding-in-wrong-language/8629/1 "2021-07-23T14:04:09Z")

</div>

I am working on a question answering task on the mt5 transformer. After training for 50 epochs, the output is decoding into some weird language. Is there any way to force the language while encoding and decoding?
