# Cannot import name 'Wav2Vec2Processor'

**URL:** <https://discuss.huggingface.co/t/cannot-import-name-wav2vec2processor/163992>\
**Category:** 🤗Transformers\
**Created:** [July 21, 2025, 7:42pm UTC](https://discuss.huggingface.co/t/cannot-import-name-wav2vec2processor/163992 "2025-07-21T19:42:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rimoKR](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rimokr/32/51043_2.png) [@rimoKR](https://discuss.huggingface.co/u/rimoKR)\
**Post date:** [July 21, 2025, 7:42pm UTC](https://discuss.huggingface.co/t/cannot-import-name-wav2vec2processor/163992/1 "2025-07-21T19:42:48Z")

</div>

I am trying to use the `facebook/data2vec-audio-base-960h` model.  
As per their model card, this is how to load the model:

```python
 from transformers import Wav2Vec2Processor, Data2VecForCTC

 processor = Wav2Vec2Processor.from_pretrained("facebook/data2vec-audio-base-960h")
 model = Data2VecForCTC.from_pretrained("facebook/data2vec-audio-base-960h")

```

But I am getting this error:

```auto
ImportError Traceback (most recent call last)
/tmp/ipython-input-11-2185350118.py in <cell line: 0>()
----> 1 from transformers import Wav2Vec2Processor, Data2VecForCTC
      2 
      3 processor = Wav2Vec2Processor.from_pretrained("facebook/data2vec-audio-base-960h")
      4 model = Data2VecForCTC.from_pretrained("facebook/data2vec-audio-base-960h")

ImportError: cannot import name 'Wav2Vec2Processor' from 'transformers' (/usr/local/lib/python3.11/dist-packages/transformers/ __init__.py)

```

I looked up at stack-overflow: It suggested upgrading the Transformers version.  
I did that :

1. My current Transformers version is 4.53.2
2. That did not fix. I even upgraded sentence-transformers to 5.0.0
3. I restarted my session in google colab  
None of them worked.. even tried lowering the version of transformers, but It leads to further dependency conflicts.  
Plz help.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [July 22, 2025, 2:08am UTC](https://discuss.huggingface.co/t/cannot-import-name-wav2vec2processor/163992/2 "2025-07-22T02:08:39Z")

</div>

It seems that [the previous sample on the web was incorrect](https://github.com/huggingface/transformers/issues/16952), and now it works on my Colab.

```py
!pip install -U transformers accelerate huggingface_hub[hf_xet]

#from transformers import Wav2Vec2Processor, Data2VecForCTC
from transformers import Wav2Vec2Processor, Data2VecAudioForCTC

processor = Wav2Vec2Processor.from_pretrained("facebook/data2vec-audio-base-960h")
#model = Data2VecForCTC.from_pretrained("facebook/data2vec-audio-base-960h")
model = Data2VecAudioForCTC.from_pretrained("facebook/data2vec-audio-base-960h")

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](https://discuss.huggingface.co/u/system)\
**Post date:** [July 22, 2025, 2:08pm UTC](https://discuss.huggingface.co/t/cannot-import-name-wav2vec2processor/163992/3 "2025-07-22T14:08:56Z")

</div>

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
