# How to convert wav2vec2 checkpoint to Huggingface processor and model?

**URL:** <https://discuss.huggingface.co/t/how-to-convert-wav2vec2-checkpoint-to-huggingface-processor-and-model/7844>\
**Category:** 🤗Transformers\
**Created:** [July 1, 2021, 2:08pm UTC](https://discuss.huggingface.co/t/how-to-convert-wav2vec2-checkpoint-to-huggingface-processor-and-model/7844 "2021-07-01T14:08:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bayinah20](https://avatars.discourse-cdn.com/v4/letter/b/c57346/32.png) [@bayinah20](https://discuss.huggingface.co/u/bayinah20)\
**Post date:** [July 1, 2021, 2:08pm UTC](https://discuss.huggingface.co/t/how-to-convert-wav2vec2-checkpoint-to-huggingface-processor-and-model/7844/1 "2021-07-01T14:08:05Z")

</div>

Hi, I have a finetuned checkpoint.pt, which I trained using fairseq repo’s CLI tools. Now I want to infer this model with Huggingface Transformers library. Like this example from [here](https://github.com/pytorch/fairseq/tree/master/examples/wav2vec) -

```auto
processor = Wav2Vec2Processor.from_pretrained("facebook/wav2vec2-base-960h")
model = Wav2Vec2ForCTC.from_pretrained("facebook/wav2vec2-base-960h")

```

How can I do that? Any help appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![ahmedlone123](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ahmedlone123](https://discuss.huggingface.co/u/ahmedlone123)\
**Post date:** [July 25, 2021, 6:11am UTC](https://discuss.huggingface.co/t/how-to-convert-wav2vec2-checkpoint-to-huggingface-processor-and-model/7844/2 "2021-07-25T06:11:15Z")

</div>

did u figure this out ? i am stuck at the same problem
