Skip to content

Conversation

@jiqing-feng
Copy link
Contributor

Hi @SunMarc . I ran the transformers tests for XPU and found that the _run_third_party_device_tests blocks me from setting XPU as the device unless I set the parameter. I cannot see any reason to keep this parameter. There is no limitation for CUDA, so I suppose we should not have limitations for other devices like XPU.

@github-actions github-actions bot marked this pull request as draft April 11, 2025 06:59
@github-actions
Copy link
Contributor

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@jiqing-feng jiqing-feng marked this pull request as ready for review April 11, 2025 07:06
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.

Yeah, not sure if this is really needed cc @ji-huazhong
It was introduced here #25327

@yao-matrix
Copy link
Contributor

@SunMarc, do we need more people to discuss on this from Hugging Face side. From our side, we think it's great that we remove _run_third_party_device_tests to let the UTs auto detect the accelerator in the platforms and run test.

@SunMarc
Copy link
Member

SunMarc commented Apr 18, 2025

yeah should be safe to merge, looks like @ji-huazhong is fine with the change

@SunMarc SunMarc merged commit 14b3dbc into huggingface:main Apr 18, 2025
18 checks passed
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
@jiqing-feng jiqing-feng deleted the test_device branch July 2, 2025 05:22
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.

3 participants