Downloads · 30 days
60
38% of all-time downloads
FlagRelease/Xing4.0-29B-A4B-BF16-nvidia-FlagOS
Xing4.0-29B-A4B-BF16-nvidia-FlagOS 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. The card lists the license as apache-2.0.
China Telecom Artificial Intelligence Technology Co., Ltd. has officially released Xing4.0-29B-A4B, a new-generation Xingchen large model built for the AI agent era. The FlagOS open-source community completed Day-0 mu…
Downloads · 30 days
60
38% of all-time downloads
All-time downloads
156
Public
Parameters
31.2B
62.4 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors62.4 GB · 100%
How the weights are stored.
BF1631.2B · 100%
From the Hugging Face model README
China Telecom Artificial Intelligence Technology Co., Ltd. has officially released Xing4.0-29B-A4B, a new-generation Xingchen large model built for the AI agent era. The FlagOS open-source community completed Day-0 multi-chip adaptation in parallel. Xing4.0-29B-A4B has finished multi-chip adaptation, accuracy alignment and deployment verification on nine chip platforms, including T-Head, NVIDIA, Moore Threads, Huawei Ascend, MetaX, Hygon, Iluvatar CoreX, Tsingmicro and ARM, based on the unified FlagOS open-source technology stack. Seven of these AI chips operate at BF16 precision, while the ARM platform offers a W4A8 quantized version. The multi-chip variants have been published on ModelScope and Hugging Face, allowing developers to obtain ready-to-use deployment solutions for respective hardware platforms.
Built upon the TeleChat1-3 series, Xing4.0-29B-A4B is a comprehensively upgraded Xingchen large model. It features a total parameter count of 29B with only 4B activated parameters, adopting the mHC+MLA+MTP architecture. It natively supports a 256K context window, which can be extended to 512K. As China’s first tens-of-billion-parameter large model fully trained on domestic computing power and domestic frameworks, it is deeply optimized for complex engineering tasks. Designed for Agent scenarios, it can efficiently handle long-horizon tasks, support multi-step planning, tool invocation and the execution of complex reasoning chains, delivering powerful agent capabilities at a relatively small parameter scale.
| Metrics | Xing4.0-29B-A4B-Nvidia-Origin | Xing4.0-29B-A4B-Nvidia-FlagOS |
|---|---|---|
| GPQA_Diamond | 62.63 | 69.70 |
| Math-500 | 84.80 | 83.80 |
Environment Setup
| Item | Version |
|---|---|
| Docker Version | Docker version 24.0.0 |
| Operating System | 22.04.4 LTS |
docker pull harbor.baai.ac.cn/flagrelease-public/xing4_0-nvidia003-gems5.4.0-tree0.6.2-cxnone-plugin0.0.0-vllm0.24.0-cp312-pt211-cu129-x64-580.105.08:202609211737
pip install modelscope
modelscope download --model FlagRelease/Xing4.0-29B-A4B-BF16-nvidia-FlagOS --local_dir /data/Xing4.0-29B-A4B
docker run -dit \
--name xingchen4 \
--entrypoint /bin/bash \
--hostname "$(hostname)" \
--network host \
--ipc host \
--shm-size 512g \
--security-opt label=disable \
--ulimit memlock=-1:-1 \
--cap-add IPC_LOCK \
--device /dev/nvidia0 \
--device /dev/nvidia1 \
--device /dev/nvidia2 \
--device /dev/nvidia3 \
--device /dev/nvidia4 \
--device /dev/nvidia5 \
--device /dev/nvidia6 \
--device /dev/nvidia7 \
--device /dev/nvidiactl \
--device /dev/nvidia-uvm \
--device /dev/nvidia-uvm-tools \
--device /dev/nvidia-modeset \
-v /usr/lib/x86_64-linux-gnu/libcuda.so.1:/usr/lib/x86_64-linux-gnu/libcuda.so.1 \
-v /data:/data \
-v /public:/public \
-v /etc/localtime:/etc/localtime:ro \
-v /etc/timezone:/etc/timezone:ro \
-v /opt/nvidia/nsight-systems/2025.3.2:/opt/nsight-systems:ro \
-v /usr/bin/nvidia-smi:/usr/bin/nvidia-smi \
-v /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 \
harbor.baai.ac.cn/flagrelease-public/xing4_0-nvidia003-gems5.4.0-tree0.6.2-cxnone-plugin0.0.0-vllm0.24.0-cp312-pt211-cu129-x64-580.105.08:202609211737
VLLM_FL_USE_FLAGGEMS_ATTN=1 vllm serve /data/Xing4.0-29B-A4B \
--served-model-name xing4.0-flagos \
--host 0.0.0.0 \
--port 8000 \
--dtype bfloat16 \
--reasoning-parser xing4_0 \
--tensor-parallel-size 4 \
--gpu-memory-utilization 0.85 \
--trust-remote-code \
--max-model-len 100000
curl http://127.0.0.1:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [{"role": "user", "content": "请给我介绍一下GPQA"}],
"max_tokens": 1024,
"temperature":1.0,
"top_p":0.95,
"repetition_penalty":1.05
}'
FlagOS is a fully open-source system software stack designed to unify the "model–system–chip" layers and foster an open, collaborative ecosystem. It enables a "develop once, run anywhere" workflow across diverse AI accelerators, unlocking hardware performance, eliminating fragmentation among vendor-specific software stacks, and substantially lowering the cost of porting and maintaining AI workloads. With core technologies such as the FlagScale, together with vllm-plugin-fl, distributed training/inference framework, FlagGems universal operator library, FlagCX communication library, and FlagTree unified compiler, the FlagRelease platform leverages the FlagOS stack to automatically produce and release various combinations of <chip + open-source model>. This enables efficient and automated model migration across diverse chips, opening a new chapter for large model deployment and application.
FlagGems is a high-performance, generic operator libraryimplemented in Triton language. It is built on a collection of backend-neutralkernels that aims to accelerate LLM (Large-Language Models) training and inference across diverse hardware platforms.
FlagTree is an open source, unified compiler for multipleAI chips project dedicated to developing a diverse ecosystem of AI chip compilers and related tooling platforms, thereby fostering and strengthening the upstream and downstream Triton ecosystem. Currently in its initial phase, the project aims to maintain compatibility with existing adaptation solutions while unifying the codebase to rapidly implement single-repository multi-backend support. Forupstream model users, it provides unified compilation capabilities across multiple backends; for downstream chip manufacturers, it offers examples of Triton ecosystem integration.
Flagscale is a comprehensive toolkit designed to supportthe entire lifecycle of large models. It builds on the strengths of several prominent open-source projects, including Megatron-LM and vLLM, to provide a robust, end-to-end solution for managing and scaling large models. vllm-plugin-fl is a vLLM plugin built on the FlagOS unified multi-chip backend, to help flagscale support multi-chip on vllm framework.
FlagCX is a scalable and adaptive cross-chip communication library. It serves as a platform where developers, researchers, and AI engineers can collaborate on various projects, contribute to the development of cutting-edge AI solutions, and share their work with the global community.
FlagEval is a comprehensive evaluation system and open platform for large models launched in 2023. It aims to establish scientific, fair, and open benchmarks, methodologies, and tools to help researchers assess model and training algorithm performance. It features:
We warmly welcome global developers to join us:
The model weights are derived from XingChen-AGI/Xing4.0-29B-A4B and are open‑sourced under the Apache License 2.0: https://www.apache.org/licenses/LICENSE-2.0.txt