Views
No views yet
| Usage | kunlunxin | |
|---|---|---|
| Basic Image | basic software environment that supports model running | kunlunxin-support@baidu.com Contact by email,please indicate the unit/contact person/contact information/equipment source/specific requirements |
| Model | model weight and configuration files | kunlunxin-support@baidu.com Contact by email,please indicate the unit/contact person/contact information/equipment source/specific requirements |
| Metrics | DeepSeek-R1-H100-CUDA | DeepSeek-R1-FlagOS-Kunlunxin-INT8 |
|---|---|---|
| GSM8K (EM) | 95.75 | 95.38 |
| MMLU (Acc.) | 85.34 | 84.80 |
| CEVAL | 89.00 | 88.86 |
| AIME 2024 (Pass@1) | 23/30 | 23/30 |
| GPQA-Diamond (Pass@1) | 70.20 | 72.73 |
| MATH-500 pass@1 | 93.20 | 94.20 |
docker pull iregistry.baidu-int.com/${PROJECT}/${REPO}:${TAG}1#Container Name Setting
2CONTAINER_NAME=$1
3CONTAINER_NAME=${CONTAINER_NAME:Flagrelease-Kunlunxin}
4#Image Configuration
5readonly PROJECT="xmlir"
6readonly REPO="xmlir_ubuntu_2004_x86_64"
7readonly TAG=${TAG:Flagrelease-DeepSeek-R1}
8#XPU Device Configuration
9XPU_NUM=8
10DOCKER_DEVICE_CONFIG=" "
11if [ $XPU_NUM -gt 0 ]; then
12for ((idx=0; idx<=$XPU_NUM-1; idx++)); do
13 DOCKER_DEVICE_CONFIG+=" --device=/dev/xpu${idx}:/dev/xpu${idx} "
14done
15DOCKER_DEVICE_CONFIG+=" --device=/dev/xpuctrl:/dev/xpuctrl "
16fi
17#Docker run command
18docker run -it ${DOCKER_DEVICE_CONFIG} \
19 --privileged \
20 --net=host \
21 --uts=host \
22 --ipc=host \
23 --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
24 --tmpfs /dev/shm:rw,nosuid,nodev,exec,size=64g \
25 --cap-add=SYS_PTRACE \
26 -v /ssd1/:/ssd1/ \
27 -v /ssd2/:/ssd2/ \
28 -v /ssd3/:/ssd3/ \
29 -v /ssd4/:/ssd4/ \
30 -v /share/:/share/ \
31 --name ${CONTAINER_NAME} \
32 -w /workspace \
33 -e CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
34 -e XPU_FORCE_SHARED_DEVICE_CONTEXT=1 \
35 -e BKCL_ENABLE_XDR=1 \
36 -e BKCL_USE_RDMA=1 \
37 -e BKCL_RDMA_FORCE_TREE=1 \
38 -e BKCL_TREE_THRESHOLD=0 \
39 -e BKCL_FORCE_L3_RDMA=0 \
40 -e BKCL_RDMA_NICS=eth1,eth1,eth2,eth2,eth3,eth3,eth4,eth4 \
41 -e BKCL_SOCKET_IFNAME=eth0 \
42 -e GLOO_SOCKET_IFNAME=eth0 \
43 iregistry.baidu-int.com/${PROJECT}/${REPO}:${TAG} /bin/bashUSE_FLAGGEMS=1 GEMS_VENDOR=kunlunxin flagscale serve deepseek_r1