8000 Remove deprecated PyTorch/XLA APIs by zpcore · Pull Request #3484 · huggingface/accelerate · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove deprecated PyTorch/XLA APIs #3484

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

Merged
merged 1 commit into from
Apr 15, 2025

Conversation

zpcore
Copy link
Contributor
@zpcore zpcore commented Apr 4, 2025

What does this PR do?

PyTorch/XLA has deprecated bunch of APIs (pytorch/xla#8915) for the upcoming 2.7 release. This PR integrates the change into accelerate package.

@zpcore
Copy link
Contributor Author
zpcore commented Apr 4, 2025

cc @SunMarc see if anyone can take a review. Thanks

Copy link
Member
@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates ! Just a small question

@@ -22,6 +22,7 @@

if is_torch_xla_available():
import torch_xla.core.xla_model as xm
import torch_xla.runtime as xr
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we require a specific version of torch_xla to use xr.world_size() 8000 or xr.global_ordinal() ?

@SunMarc
Copy link
Member
SunMarc commented Apr 7, 2025

Could you also do the same to transformers library as we had an issue that the deprecation ?

@HuggingFaceDocBuilderDev

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.

@SunMarc SunMarc merged commit 34c1779 into huggingface:main Apr 15, 2025
25 checks passed
@jeffhataws
Copy link
jeffhataws commented May 15, 2025

@SunMarc
Copy link
Member
SunMarc commented May 15, 2025

What needs to be changed @jeffhataws ?

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

Successfully merging this pull request may close these issues.

4 participants
0