Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

make models and pipeline docs device agnostic, to cover accelerators other than CUDA #12161

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

Open
yao-matrix wants to merge 4 commits into huggingface:main
base: main
Choose a base branch
Loading
from yao-matrix:docs-device-agnostic

Conversation

Copy link
Contributor

@yao-matrix yao-matrix commented Aug 15, 2025

As PyTorch are supporting more accelerators like XPU other than CUDA, and diffusers already device-agnostic, update model and pipeline docs to device agnostic.

@stevhliu , @sayakpaul pls help review, thx very much.

Copy link
Member

I will defer to @stevhliu for taking the final call, but my 2 cents is that we shouldn't be updating with this level of granularity for devices we don't ourselves test.

So, it might be easier to mention that the same code might run on other accelerators such as NPU without any changes.

Copy link
Contributor Author

@stevhliu , pls share you insights. My thought is to make data scientist can work on any accelerator which is compatible w/ HF ecosystem(means added device support and passed ci test cases) using the example codes in docs w/o changes, i suppose it's a smooth first-touch experience.

Copy link
Member

Thanks for your PR @yao-matrix! I understand where you're coming from to try and make the experience easier for users who are working with other accelerators besides CUDA and thats awesome 😄

In this case, I agree with @sayakpaul that it might be a bit aggressive to change at the moment without having tested on these devices ourselves. Instead of making it the default, I would add a note similar to what Sayak suggested.

Copy link
Contributor Author

Thanks for your PR @yao-matrix! I understand where you're coming from to try and make the experience easier for users who are working with other accelerators besides CUDA and thats awesome 😄

In this case, I agree with @sayakpaul that it might be a bit aggressive to change at the moment without having tested on these devices ourselves. Instead of making it the default, I would add a note similar to what Sayak suggested.

@stevhliu, understand your concern on ci success rate validated by HF. I'll pending it to a more mature time.

As a side note, for Intel XPU, diffusers UT pass rate collected by us is 95.4% (9955 pass over 10435 cases)
w/ PT 2.7 now(same level of data compared w/ the data we collected on A100 machine).

stevhliu reacted with heart emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /