Skip to content

feat(ray): fix ray gpu resource issue when get_device_name is not equal - #10751

Open
kahlun wants to merge 1 commit into
hiyouga:mainfrom
kahlun:xpu/ray-resource-fix
Open

feat(ray): fix ray gpu resource issue when get_device_name is not equal#10751
kahlun wants to merge 1 commit into
hiyouga:mainfrom
kahlun:xpu/ray-resource-fix

Conversation

@kahlun

@kahlun kahlun commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes the Ray resource device name mapping logic.

Ray's resource names for accelerators differ from PyTorch's device names:
https://docs.ray.io/en/latest/ray-core/scheduling/accelerators.html#id1

For example:

Intel XPU: Ray expects "GPU", but PyTorch uses "xpu"
MetaX GPU: Ray expects "GPU", but PyTorch uses "maca"

Fixes # (issue)

Before submitting

  • Did you read the contributor guideline?
  • Did you write any new necessary tests?
    tests_v1/trainers/test_ray_sft_trainer.py

@kahlun kahlun changed the title feat(ray): add support for XPU resources and implement Ray SFT traine… feat(ray): fix ray gpu resource issue when get_device_name is not equal Aug 13, 2026
@kahlun
kahlun marked this pull request as ready for review August 13, 2026 14:43
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.

1 participant