-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
[BUG] Fail to import is_torch_greater_or_equal_than_1_13 since transformers v4.48.0 for all deepseek models #290
Comments
@yuxianq hi can you provide your python version please? |
@enochkan I have the same problem: An error occurred: cannot import name 'is_torch_greater_or_equal_than_1_13' from 'transformers.pytorch_utils' (/Users/username/.pyenv/versions/myenv/lib/python3.9/site-packages/transformers/pytorch_utils.py) Python 3.9.20 |
|
Only python 3.10 working? I have python 3.12 and tried transformers 4.37.2 and 4.48.0, but still pops with the same error. |
Sorry that I am still on vocation. One way to fix it is removing the usage of is_torch_greater_or_equal_than_1_13 from your model checkpoints. Another way is to integrate deepseek models into HF. There is an ongoing effort: huggingface/transformers#35425 , it would help a lot if you can provide official support for them. |
3.10 as far i can remember |
Describe the bug
Fail to import
is_torch_greater_or_equal_than_1_13
since transformers v4.48.0 for all deepseek modelsTo Reproduce
Install transformers v4.48.0 and run any deepseek model.
Expected behavior
Can run deepseek models with transformers v4.48.0.
Additional context
is_torch_greater_or_equal_than_1_13
has been removed since transformers v4.48.0, it is necessary to remove all usage ofis_torch_greater_or_equal_than_1_13
from all deepseek models, not only this one. Can the maintainers help to fix all the models? It is important for us to provide deepseek model support in TensorRT-LLM. Thanks~The text was updated successfully, but these errors were encountered: