ImportError: cannot import name 'Qwen3VLMoeForConditionalGeneration' from 'transformers'
Author: EIIvy
Pull request: no

I download the latest transformers==4.57.0, the code get this error :
from transformers import Qwen3VLMoeForConditionalGeneration

ImportError: cannot import name 'Qwen3VLMoeForConditionalGeneration' from 'transformers'

Comments:
Working on it...

@EIIvy Importing process is working fine, Python=3.12.9 and transformers=4.57.0 with uv venv as virtual env

@EIIvy yeah works for me too

> [@EIIvy](https://github.com/EIIvy) Importing process is working fine, Python=3.12.9 and transformers=4.57.0 with uv venv as virtual env

However, I got a new error: 
 model = Qwen3VLMoeForConditionalGeneration.from_pretrained
ValueError: You current version of `autoawq` does not support module quantization skipping, please upgrade `autoawq` package to at least 0.1.8.
when I pip install autoawq, I get:
from transformers.activations import NewGELUActivation, PytorchGELUTanh, GELUActivation
ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'   

my package:
transformers == 4.57.0
python == 3.12.9
autoawq==0.2.9
 

Hi @EIIvy  I’d love to contribute to this issue for Hacktoberfest. Could you please assign it to me?

> Hi [@EIIvy](https://github.com/EIIvy) I’d love to contribute to this issue for Hacktoberfest. Could you please assign it to me?

Of course, what should I do next?

i also meet this problem, have you fix this issue, thank you!

from transformers.activations import NewGELUActivation, PytorchGELUTanh, GELUActivation
ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'

> > [@EIIvy](https://github.com/EIIvy) Importing process is working fine, Python=3.12.9 and transformers=4.57.0 with uv venv as virtual env
> 
> However, I got a new error: model = Qwen3VLMoeForConditionalGeneration.from_pretrained ValueError: You current version of `autoawq` does not support module quantization skipping, please upgrade `autoawq` package to at least 0.1.8. when I pip install autoawq, I get: from transformers.activations import NewGELUActivation, PytorchGELUTanh, GELUActivation ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'
> 
> my package: transformers == 4.57.0 python == 3.12.9 autoawq==0.2.9

Same problem.

same =>`ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'`
```sh
transformers 4.57.0
```

> i also meet this problem, have you fix this issue, thank you!
> 
> from transformers.activations import NewGELUActivation, PytorchGELUTanh, GELUActivation ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'

sorry, I don't

+1 transformers 4.57.1

```shell
pip install transformers autoawq -U
```

How to reproduce this issue:
```python
import awq
```



> same =>`ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'`
> 
> transformers 4.57.0

Same. In the source code of transformers==4.57.0, PytorchGELUTanh is deleted.

> same =>`ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'`
> 
> transformers 4.57.0



> > same =>`ImportError: cannot import name 'PytorchGELUTanh' from 'transformers.activations'`
> > transformers 4.57.0
> 
> Same. In the source code of transformers==4.57.0, PytorchGELUTanh is deleted.

Add PytorchGELUTanh = GELUTanh in /usr/local/lib/python3.11/site-packages/transformers/activations.py solves this.

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.

哈喽，您的邮件我已收到~~~~~~谢谢您~~~~~~祝您生活愉悦

fixed in  217ff1e

I ran into the same issue today. In my case, the problem was that I had **manually copied** my old Qwen2.5-VL environment to create a “Qwen3” env, instead of using `conda create --name qwen3 --clone ...`. Because of that, even after I installed the latest `transformers==4.57.0`, Python was still picking up an **older transformers** from the copied environment.

So the fix for me was to create a clean/proper Conda environment (or correctly clone with Conda) and then reinstall `transformers>=4.57.0` there.


This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.

哈喽，您的邮件我已收到~~~~~~谢谢您~~~~~~祝您生活愉悦

I believe this is fixed now, feel free to comment if you're still affected (and you're *sure* it's not just a local environment issue!)

哈喽，您的邮件我已收到~~~~~~谢谢您~~~~~~祝您生活愉悦