Xing4.1-Preview

Workhorse capacity at a fraction of the cost — a 285B-total / 17B-active MoE model
purpose-built for agentic coding and long-horizon agent workflows, with a native 1M context.

🦉 GitHub • 🤗 Hugging Face Org • 🤖 ModelScope • 🪶 Modelers • 🅰️ AtomGit • ☁️ Tianyi AI Platform

Highlights

Xing 4 is developed by China Telecom Artificial Intelligence Technology Co., Ltd. It is the latest generation of the TeleChat model family, trained end-to-end on a fully in-house domestic compute stack, and designed for long-context reasoning, code generation, and agentic applications.

Xing4.1-Preview is a model in the Xing 4 family. It uses a sparse Mixture-of-Experts (MoE) architecture that combines Multi-head Latent Attention (MLA) and DeepSeek Sparse Attention (DSA) for long-context interaction, complex reasoning, and agent workflows.

  • Agent-oriented architecture: A 45-layer MoE backbone activates 8 routed experts per token.
  • MLA + DSA: Combines compressed key-value representations with sparse attention over long contexts.
  • Long context: Supports a configured maximum context length of 1M.

Model at a Glance

Configuration Xing4.1-Preview
Total parameters 285B
Activated parameters per token Approximately 17B
Transformer layers 45
Hidden size 4096
Attention heads 128
Dense FFN intermediate size 18432
Expert intermediate size 2048
Routed experts 256
Active routed experts per token 8
Shared experts 1
Dense / MoE FFN layers 3 / 42
Attention MLA + DSA
qk head dimension 192 (NoPE 128 + RoPE 64)
v head dimension 128
MLA q LoRA rank / kv LoRA rank 1536 / 512
DSA index heads / head dimension / top-k 64 / 128 / 2048
Normalization / activation RMSNorm (eps 1e-5) / SiLU
Tokenizer / vocabulary size BPE / 131072
Maximum context length 1M
RoPE / YaRN θ=100000 / factor=32
License Apache 2.0

Architecture

Xing4.1-Preview uses a 45-layer Transformer backbone. The first 3 layers use Dense FFNs, and the remaining 42 layers use MoE FFNs. Its attention design follows the DeepSeek-V3.2 lineage — MLA combined with DSA — which makes it a different architectural configuration from Xing4.0.

The MoE configuration includes 256 routed experts, with 8 routed experts activated per token, together with 1 shared expert.

The model was co-designed around the compute profile of the training cluster from the ground up, rather than merely ported onto it.

Benchmarks

Xing4.1-Preview is evaluated on agentic and reasoning benchmarks against same-class flash models:

Benchmark Xing4.1-Preview Hy4-flash GLM-5.3-Flash Deepseek-v4-flash-0731
Terminal-Bench 4.0 20.6† 19.2 35.4 7.0
AutomationBench v1.0.6 45.3 52.2 48.4 37.7
Apex-Agents v1.1 50.7 63.1 51.5 55.3
HLE w/ tools 45.7‡ 55.2 52.2 51.5
Claw-Eval (pass^3) 49.7 — — 49.3

Notes:

  1. For all models other than Xing4.1-Preview, each score is taken from that model's public report.
  2. † Terminal-Bench 4.0: GPU sandbox tasks were skipped for Xing4.1-Preview.
  3. ‡ HLE: Xing4.1-Preview was evaluated on text-only data only.

The comparison set covers agentic execution, tool use, and general reasoning, and results vary by task — we recommend judging fitness on the workloads that match your use case rather than on a single aggregate.

Model Files

Item Details
Weight format safetensors
Quantization Not quantized
Weight shards 261
Tensor count 33,108
Index file model.safetensors.index.json
Weight size Approximately 521.4 GiB
Precision BF16 weights, with some auxiliary tensors in FP32
Tokenizer files tokenizer.json, tokenizer_config.json
Chat template chat_template.jinja
Special tokens BOS <_start> (ID 0), EOS <_end> (ID 1), PAD <_pad> (ID 2)

Chat Template and Special Tokens

The chat template supports the <_system>, <_user>, <_bot>, and <_observation> role markers, <|thinking|> reasoning blocks, and tool calls formatted with <tool_call>, <param_key>, and <param_value>. It also supports the enable_thinking switch.

The tokenizer configuration uses padding_side=left and add_bos_token=false.

Quickstart

Xing4.1-Preview is available through an OpenAI-compatible API on the Tianyi AI open platform.

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api-maas.teleai.com.cn/v1",
)

response = client.chat.completions.create(
    model="Xing4.1-Preview",
    messages=[
        {"role": "user", "content": "Write a single-file HTML page for a team-building cost estimator with live totals."}
    ],
)

print(response.choices[0].message.content)

Notes:

  • Context window: the public API serves the full 1M context (up to 896K input / 128K output per request).
  • Thinking mode: supported as an on/off toggle (no effort tiers) for complex reasoning tasks.
  • Structured output & function calling: supported through the OpenAI-compatible interface.

Serving & Ecosystem

Xing4.1-Preview is built on a different architecture from Xing4.0 — an MLA + DSA design — yet it stays compatible with the Xing 4 family's upstream interfaces, so the fine-tuning and serving integrations already merged for Xing4.0 carry over directly to Xing4.1 (llama.cpp and KTransformers apply to the Xing4.0 series only):

Stack Xing4.1 support Since / Version How to run
ms-swift Native — v4.6.0+ 2026-10-01 Fine-tuning via the merged ms-swift support
SGLang Native — main branch 2026-11-05 Install from a recent main build
LLaMA-Factory Native — main branch 2026-10-29 Fine-tuning via the merged LLaMA-Factory support
vLLM Official out-of-tree plugin — XingChen-AGI/xing4-vllm-plugin
TensorRT-LLM PR under upstream review — See the GitHub README for the PR branches

Prebuilt container images and step-by-step deployment guides are listed in the GitHub repository.

Multi-Chip Deployment with FlagOS

The FlagOS community provides Day0 support for Xing4.1-Preview with W8A8 versions for eight chip platforms: T-Head, NVIDIA, Moore Threads, Huawei Ascend, MetaX, Hygon, Iluvatar, and Kunlunxin. See the FlagOS multi-chip deployment guide for model downloads and installation instructions.

Serving examples

Xing4.1-Preview uses the Xing 4 family's serving stack. The commands below follow the Xing4.0 reference deployment — replace ${MODEL_PATH} with a local path or the hub id XingChen-AGI/Xing4.1-Preview. As a 285B BF16 MoE (~521 GiB), the weights alone need roughly 8×80 GB GPUs at --tensor-parallel-size 8, and longer contexts need proportionally more. The native context is 1M — set the context flags (--max-model-len / --context-length) to what your hardware can hold. Parser identifiers and prebuilt image tags follow the official deployment guide in the GitHub repository.

vLLM — official out-of-tree plugin (XingChen-AGI/xing4-vllm-plugin):

vllm serve ${MODEL_PATH} \
    --host 0.0.0.0 \
    --port 8000 \
    --served-model-name Xing4.1-Preview \
    --tensor-parallel-size 8 \
    --trust-remote-code \
    --gpu-memory-utilization 0.90 \
    --max-num-seqs 4 \
    --enable-auto-tool-choice \
    --reasoning-parser xing4_0 \
    --tool-call-parser xing4_0

SGLang — native support in the main branch:

sglang serve --model-path ${MODEL_PATH} \
    --trust-remote-code \
    --host 0.0.0.0 \
    --port 8000 \
    --served-model-name Xing4.1-Preview \
    --tp-size 8 \
    --mem-fraction-static 0.90 \
    --max-running-requests 4 \
    --reasoning-parser xing4_0 \
    --tool-call-parser xing4_0

Once started, the OpenAI-compatible endpoint is available at http://localhost:8000/v1.

Recommended Parameters

Parameter Value
temperature 0.8
top_p 1.0
context_window 1M tokens
max_tokens 128K

Use Cases

  • Agentic collaborative work — multi-step office workflows, cross-tool orchestration, and report generation that reconciles multiple conflicting sources into one auditable deliverable.
  • Deep research — sustained, multi-source investigation with structured outputs.
  • Agentic coding — full-featured frontend generation (single-file, zero-dependency, offline-runnable web apps), 3D and creative coding, and data-analysis pipelines.
  • Document-heavy back-office — schema-guided structured extraction for business systems.

Disclaimer

Do not use Xing4 or its derivative models for any activities that endanger national or social security, or violate applicable laws and regulations. Do not use it for internet services that have not undergone security review and filing.

We have made every effort to ensure the compliance of the training data, but due to the complexity of models and data, unforeseen issues may still arise. We assume no liability for any issues arising from the use of this open-source model — including but not limited to data security risks, public opinion risks, and risks arising from the model being misled, misused, disseminated, or improperly utilized.

Like all generative language models, Xing4.1-Preview can produce inaccurate or unexpected outputs. Outputs are generated automatically and do not represent the views of China Telecom.

Citation

@misc{lab2026telechatxing4advancingfrontier,
      title={TeleChat to Xing4: Advancing Frontier Agentic Models on Domestic Chips and Frameworks}, 
      author={Xingchen AGI Lab and Baotian Hu and Bingkai Yang and Boyang Wang and Changzai Pan and Chao Lyu and Chao Wang and Chen Li and Chenshuo Pan and Chenyu Lin and Chenyuan Zhang and Chongming Liu and Dawei Fan and Di Wu and Dong Guo and Dong Li and Dongfang Li and Enlin Liu and Fanye Xiao and Fengkai Li and Fubei Yao and Gang Lin and Han Gao and Hanming Wu and Haowei He and Huapeng Liu and Hua Wang and Huinan Xu and Jiahong Xiong and Jiaxin Peng and Jianxiang Ma and Jianxing Zhuge and Jie Zhang and Ji Xiong and Jinglin Chen and Jingqi Li and Jingxuan Li and Jiwang Ye and Junchen Li and Junbiao Li and Junyang Wu and Kaidong Yu and Kaipeng Jia and Kehai Chen and Kuai Li and Laobin Liu and Lei Li and Libo Qin and Lingling Shi and Luwen Pu and Menghao Xu and Mengjiao Bao and Mengqi Chen and Min Zhang and Mingrui Wang and Naying Wang and Peicong Han and Peiming Guo and Pengfei Li and Qiang Feng and Qi Wang and Qingjun Zhu and Qingli Li and Qitai Ding and Qiyi Xie and Quanchao Zhao and Rongbao Han and Rui Xue and Ruiyu Fang and Ruiting Song and Shijie Li and Shiquan Wang and Shuangyong Song and Sishi Xiong and Teng Su and Wankang Bao and Weijie Zhang and Wei Mao and Weiwei Fu and Weiyang Huang and Wenmin Deng and Wenqing Hu and Wujie Zhong and Xi Yu and Xiaohui Hu and Xiaomin Fang and Xiaomeng Huang and Xiaoqiong Shi and Xiaotong Shang and Xiaoyu Li and Xinglei Xu and Xin Jiang and Xin Wang and Xin Zhang and Xinzhang Liu and Xue Liu and Xuefeng Bai and Xuewei He and Yahan Li and Yanhan Zhang and Yanlei Xue and Yanzhang Wu and Yang Yu and Yi Liu and Yin Zhang and Yingyan Li and Yitong Yao and Yixuan Li and Yongqiang Xia and Yongxiang Li and Yinzhou Zhu and Yu Zhao and Yuhao Jiang and Yunpeng Zhang and Yuting Lin and Yuxuan Wu and Yuyao Huang and Yuyi Wang and Zebo Peng and Zhenwu Pei and Zhenxiong Li and Zhao Wang and Zhaoxi Zhang and Zhihao Yang and Zhiqiang Dong and Zhiwei Yan and Zhilong Lu and Zhonghao Guo and Zhongheng Wu and Zhongjiang He and Zhongqiu Li and Zhu Yuan and Zhuoru Jiang and Zhuoyi Wei and Zijia Guo and Zilu Huang and Zhipeng Guo and Zirui Li and Zihan Wang},
      year={2026},
      eprint={2611.22115},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2611.22115}, 
}

Built by China Telecom Artificial Intelligence Technology Co., Ltd.

Downloads last month
672
Safetensors
Model size
280B params
Tensor type
BF16
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Paper for XingChen-AGI/Xing4.1-Preview