Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python version in docker is not compatible with latest transformers #730

Open
LiGuo12 opened this issue Feb 7, 2025 · 2 comments
Open

Comments

@LiGuo12
Copy link

LiGuo12 commented Feb 7, 2025

Hi everyone,

Your work is truly impressive! I encountered a python version compatibility issue while deploying Qwen 2.5 VL. The provided Docker image defaults to Python 3.8.10, but when installing git+https://github.com/huggingface/transformers, I received the following error:
Package 'transformers-4.49.0.dev0' requires a different Python: 3.8.10 not in '>=3.9.0'.

Could you share the python and transformers versions you are using? Also, would it be possible to update the python version in the Docker image?

Thanks!

@vefalun
Copy link

vefalun commented Feb 7, 2025

Me too!
ImportError: cannot import name 'Qwen2_5_VLForConditionalGeneration' from 'transformers' (/opt/conda/lib/python3.8/site-packages/transformers/init.py)😭

@ghntd
Copy link

ghntd commented Feb 7, 2025

The new versions of transformers and torch have deprecated Python 3.8. I think using version 3.9 or above can solve all problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants