# Wav2vec: how to run decoding with a language model?

**URL:** <https://discuss.huggingface.co/t/wav2vec-how-to-run-decoding-with-a-language-model/6055>\
**Category:** Beginners\
**Created:** [May 7, 2021, 10:51am UTC](https://discuss.huggingface.co/t/wav2vec-how-to-run-decoding-with-a-language-model/6055 "2021-05-07T10:51:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Su-Youn](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Su-Youn](https://discuss.huggingface.co/u/Su-Youn)\
**Post date:** [May 8, 2021, 2:17am UTC](https://discuss.huggingface.co/t/wav2vec-how-to-run-decoding-with-a-language-model/6055/2 "2021-05-08T02:17:45Z")

</div>

Oh, I found the following previous discussion from the forum. Sorry for missing this one.

> [@Language model for wav2vec2.0 decoding](https://discuss.huggingface.co/t/language-model-for-wav2vec2-0-decoding/4434):
>
> Hello, I implemented [wav2vec2.0 code](https://huggingface.co/blog/fine-tune-xlsr-wav2vec2) and a language model is not used for decoding. How can I add a language model (let’s say a language model which is trained with KenLM) for decoding @patrickvonplaten ? thanks in advance. Note: I also opened an [issue](https://github.com/huggingface/transformers/issues/10716), but redirected here.

so i will check them out first. Thanks.

---

_[View the full topic](https://discuss.huggingface.co/t/wav2vec-how-to-run-decoding-with-a-language-model/6055)._
