Downloads · 30 days
0
FlagRelease/DeepSeek-R1-FlagOS-Kunlunxin-INT8
DeepSeek-R1-FlagOS-Kunlunxin-INT8 is a machine learning model from FlagRelease. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
DeepSeek-R1-FlagOS-Kunlunxin-INT8 provides an all-in-one deployment solution, enabling execution of DeepSeek-R1 on Kunlunxin GPUs. As the first-generation release for the Kunlunxin, this package delivers two key featu…
Downloads · 30 days
0
Access
Public
Updated Jul 21, 2025
Repo size
777 KB
Likes
1
Public
Click a slice to open those files.
.png62.1 KB · 89%
From the Hugging Face model README
DeepSeek-R1-FlagOS-Kunlunxin-INT8 provides an all-in-one deployment solution, enabling execution of DeepSeek-R1 on Kunlunxin GPUs. As the first-generation release for the Kunlunxin, this package delivers two key features:
We use FlagScale as the serving engine to improve the portability of distributed inference.
FlagScale is an end-to-end framework for large models across multiple chips, maximizing computational resource efficiency while ensuring model effectiveness. It ensures both ease of use and high performance for users when deploying models across different chip architectures:
We validate the execution of DeepSeek-R1 model with a Triton-based operator library as a PyTorch alternative.
We use a variety of Triton-implemented operation kernels to run the DeepSeek-R1 model. These kernels come from two main sources:
Most Triton kernels are provided by FlagGems (https://github.com/FlagOpen/FlagGems). You can enable FlagGems kernels by setting the environment variable USE_FLAGGEMS.
Also included are Triton kernels from vLLM, such as fused MoE.
Requested by kunlunxin, the file of docker image and model files should be applied by email.
| Usage | kunlunxin | |
|---|---|---|
| Basic Image | basic software environment that supports model running | [email protected] Contact by email,please indicate the unit/contact person/contact information/equipment source/specific requirements |
| Model | model weight and configuration files | [email protected] 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}
#Container Name Setting
CONTAINER_NAME=$1
CONTAINER_NAME=${CONTAINER_NAME:Flagrelease-Kunlunxin}
#Image Configuration
readonly PROJECT="xmlir"
readonly REPO="xmlir_ubuntu_2004_x86_64"
readonly TAG=${TAG:Flagrelease-DeepSeek-R1}
#XPU Device Configuration
XPU_NUM=8
DOCKER_DEVICE_CONFIG=" "
if [ $XPU_NUM -gt 0 ]; then
for ((idx=0; idx<=$XPU_NUM-1; idx++)); do
DOCKER_DEVICE_CONFIG+=" --device=/dev/xpu${idx}:/dev/xpu${idx} "
done
DOCKER_DEVICE_CONFIG+=" --device=/dev/xpuctrl:/dev/xpuctrl "
fi
#Docker run command
docker run -it ${DOCKER_DEVICE_CONFIG} \
--privileged \
--net=host \
--uts=host \
--ipc=host \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
--tmpfs /dev/shm:rw,nosuid,nodev,exec,size=64g \
--cap-add=SYS_PTRACE \
-v /ssd1/:/ssd1/ \
-v /ssd2/:/ssd2/ \
-v /ssd3/:/ssd3/ \
-v /ssd4/:/ssd4/ \
-v /share/:/share/ \
--name ${CONTAINER_NAME} \
-w /workspace \
-e CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7 \
-e XPU_FORCE_SHARED_DEVICE_CONTEXT=1 \
-e BKCL_ENABLE_XDR=1 \
-e BKCL_USE_RDMA=1 \
-e BKCL_RDMA_FORCE_TREE=1 \
-e BKCL_TREE_THRESHOLD=0 \
-e BKCL_FORCE_L3_RDMA=0 \
-e BKCL_RDMA_NICS=eth1,eth1,eth2,eth2,eth3,eth3,eth4,eth4 \
-e BKCL_SOCKET_IFNAME=eth0 \
-e GLOO_SOCKET_IFNAME=eth0 \
iregistry.baidu-int.com/${PROJECT}/${REPO}:${TAG} /bin/bash
【Verifiable on four machine】
USE_FLAGGEMS=1 GEMS_VENDOR=kunlunxin flagscale serve deepseek_r1
We warmly welcome global developers to join us:
Scan the QR code below to add our WeChat group send "FlagRelease"

This project and related model weights are licensed under the MIT License.