Hygon DCU
Use the Hygon DCU backend when running xLLM on Hygon DCU hardware.
Image and Container Startup
Section titled “Image and Container Startup”Pull the Hygon DCU development image:
docker pull harbor.sourcefind.cn:5443/dcu/admin/base/custom:xllm-dev-dcu-x86-20260602Start the container:
docker run -it \--ipc=host \-u 0 \--name xllm-dcu \--privileged \--network=host \--shm-size 256g \--device=/dev/kfd \--device=/dev/dri \--device=/dev/mkfd \--security-opt seccomp=unconfined \--group-add video \-v /opt/hyhal:/opt/hyhal \-v $HOME:$HOME \-w $HOME \<docker_image_name> \/bin/bashServer Startup Command
Section titled “Server Startup Command”#!/bin/bashset -e
rm -rf core.*
export HIP_VISIBLE_DEVICES=0
MODEL_PATH="/path/to/model/Qwen3-8B"MASTER_NODE_ADDR="127.0.0.1:9748"START_PORT=18000START_DEVICE=0LOG_DIR="log"NNODES=1
mkdir -p $LOG_DIR
for (( i=0; i<$NNODES; i++ ))do PORT=$((START_PORT + i)) DEVICE=$((START_DEVICE + i)) LOG_FILE="$LOG_DIR/node_$i.log" xllm \ --model $MODEL_PATH \ --devices="dcu:$DEVICE" \ --port $PORT \ --nnodes=$NNODES \ --master_node_addr=$MASTER_NODE_ADDR \ --block_size=128 \ --node_rank=$i \ > $LOG_FILE 2>&1 &doneFor a single-device run, <device-id> usually starts from 0. For multi-worker deployments, keep device ids, --node_rank, --nnodes, and service ports aligned.
- The current docs list a pre-built Hygon DCU development image in Quick Start.
- The Hygon DCU container startup command requires device mounts such as
/dev/kfd,/dev/dri, and/dev/mkfd; the command above includes these mounts. - Check the Model Support List before choosing a Hygon DCU deployment target.