# Domestic GPU recognition and adaptation

**URL:** <https://discuss.ray.io/t/domestic-gpu-recognition-and-adaptation/23345>\
**Category:** Kubernetes\
**Created:** [December 1, 2025, 11:55am UTC](https://discuss.ray.io/t/domestic-gpu-recognition-and-adaptation/23345 "2025-12-01T11:55:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hxinyue](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/hxinyue/32/7661_2.png) [@Hxinyue](https://discuss.ray.io/u/Hxinyue)\
**Post date:** [December 1, 2025, 11:55am UTC](https://discuss.ray.io/t/domestic-gpu-recognition-and-adaptation/23345/1 "2025-12-01T11:55:35Z")

</div>

For domestic Gpus such as the K100 of Sugon DCU, when the ray cluster is started through k8s, the autoscaler of Ray-head cannot automatically recognize it as a GPU. Therefore, resources=“{“DCU”:1}” is configured in the ray cluster. When conducting training tests using the ray train interface and setting resources\_per\_worker={“NPU”:1}, how should backend and use\_gpu in TorchConfig be configured at this time?

---

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [December 1, 2025, 11:55am UTC](https://discuss.ray.io/t/domestic-gpu-recognition-and-adaptation/23345/2 "2025-12-01T11:55:57Z")

</div>

It seems likely that for non-NVIDIA accelerators like Sugon DCU (using a custom resource such as “DCU”), Ray’s autoscaler and Ray Train do not natively recognize these as GPUs. The official Ray documentation and code only mention “GPU”, “TPU”, and “HPU” as supported accelerator types, and the use\_gpu flag is specifically for NVIDIA GPUs. There is no explicit mention in the data sources of support for “DCU” or “NPU” as accelerator types in Ray Train or TorchConfig. Therefore, setting use\_gpu=True would not have the intended effect for DCU/NPUs, and backend selection (e.g., NCCL, Gloo) is only documented for PyTorch with NVIDIA GPUs or CPUs.

My understanding is that you should not set use\_gpu=True in ScalingConfig or TorchConfig for DCU/NPUs, and you should not expect Ray Train to automatically handle device placement or backend selection for these accelerators. You may need to manage device selection and distributed backend manually in your training function, and use resources\_per\_worker={“DCU”: 1} to schedule Ray actors on nodes with DCU resources. There is no data source indicating that Ray Train or TorchConfig supports a “backend” argument for DCU/NPUs, nor that use\_gpu can be used for non-NVIDIA devices. Would you like more detail on how to manually handle device placement and distributed training in this scenario?

Sources:

- [Ray PR: Add hpu resource description in ray train related docs](https://github.com/ray-project/ray/pull/47241)

Hint: Mention @RunLLM in the post for followups.

---

<div class="post-metadata">

**Author:** ![Hxinyue](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/hxinyue/32/7661_2.png) [@Hxinyue](https://discuss.ray.io/u/Hxinyue)\
**Post date:** [December 1, 2025, 11:59am UTC](https://discuss.ray.io/t/domestic-gpu-recognition-and-adaptation/23345/3 "2025-12-01T11:59:23Z")

</div>

DCU should also belong to the category of ROCm similar to AMD GPU. Can this be adapted to such devices?
