-
Notifications
You must be signed in to change notification settings - Fork 31.4k
Protect get_default_device for torch<2.3
#38376
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
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
need push an empty commit. The circleci has some issue that I have to fix. |
* Update modeling_utils.py * CIs
* Update modeling_utils.py * CIs
* Update modeling_utils.py * CIs
* Update modeling_utils.py * CIs
|
I'm on Seems I can't upgrade |
|
I'm sorry, but if you don't need this fix (i.e. this PR), what's the motivation to update transformers? I must misunderstand something |
|
Hey @peter-crist! There are no hard requirements on torch 2.6 unless you try to use |
What does this PR do?
As per the title! It was reported in #38329!
set_default_devicehas been around for a long time, but notget_default_deviceinterestingly!