Blog
Xing4.1-Previewrun Xing4.1 locallyXing4.1 vLLM SGLang

How to Run Xing4.1-Preview Locally: Hardware and Setup

Xing4.1-Preview is a 285B MoE with 17B active and 1M context. See the 8×80GB hardware needs, vLLM and SGLang support, weight formats and settings.

Portrait of Luis Chavez-Mattos
Edited by Luis Chavez-Mattos, Director, Product··RSS

For Engineering and IT

A young woman with a messy bun rushes across a plain backdrop holding a large graphics card upright, her body a motion blur and the card sharp.

What do you need to run Xing4.1-Preview locally?

You need a multi-GPU server, not a desktop. The model card says the 285B-parameter BF16 weights alone require about 8×80 GB of GPU memory, served with tensor parallelism across 8 cards (--tensor-parallel-size 8). Longer contexts need proportionally more. For software, use vLLM with the official Xing4 plugin, or the main branch of SGLang. The released weights are standard safetensors files, so you do not need MindSpore. llama.cpp does not support this model.

TL;DR

  • Plan for a server with eight 80 GB GPUs. The model card puts the weights alone at about 8×80 GB, and that is before long-context memory.
  • Only 17B parameters are active per token, but all 285B must be loaded. The active count affects speed, not how much memory you need.
  • vLLM works through an out-of-tree plugin (XingChen-AGI/xing4-vllm-plugin), and SGLang supports it natively on its main branch.
  • You can skip MindSpore. The Hugging Face repository ships converted PyTorch weights as safetensors shards.
  • llama.cpp and KTransformers do not apply to Xing4.1-Preview. They only cover the older Xing4.0 series, so there is no laptop or small-GPU route from the model card.
  • The card's evaluation sampling defaults are temperature 0.8, top_p 0.95 and repetition penalty 1.05. These are benchmark settings, so treat them as a starting point.
  • If you only want to try the model, a hosted OpenAI-compatible API exists through the TeleAI Open Platform.

What is Xing4.1-Preview?

Xing4.1-Preview is an open-weight language model from China Telecom Artificial Intelligence Technology (Beijing) Co., Ltd. It is the latest in the Xing series, which was formerly called TeleChat. It uses a Sparse Mixture-of-Experts (MoE) design with 285B total parameters and 17B activated per token. It supports a native 1M-token context window.

"MoE" means the model is split into many specialist sub-networks, and each token only passes through a few of them. That keeps compute per token low. It does not shrink the model on disk or in memory.

Two attention techniques make the long context practical: Multi-head Latent Attention (MLA), which compresses the key-value cache, and DeepSeek Sparse Attention (DSA). The model was trained on 8,192 Ascend 910C chips with the MindSpore framework. It is aimed at agentic coding and long-running agent tasks.

The architecture differs from Xing4.0, which matters for tooling, as covered below.

How much GPU memory does Xing4.1-Preview need?

The model card gives one hard number: roughly 8×80 GB for the weights alone, in BF16. BF16 stores each parameter in 2 bytes, so 285 billion parameters comes to roughly 570 GB. Eight 80 GB cards give you 640 GB. Cards in that class include the Nvidia A100 and H100 80 GB models, though the card itself only specifies the memory amount.

That leaves little headroom. The vLLM example sets --gpu-memory-utilization 0.90, which lets vLLM claim about 576 GB across the eight cards. After roughly 570 GB of weights, almost nothing remains for the KV cache (the working memory that grows with every token of context) and runtime overhead. That is a back-of-envelope calculation, not a figure from the card, but it explains the card's warning that longer contexts need proportionally more resources. The 1M-token context is a native capability, "subject to available GPU memory and deployment configuration," in the card's words.

QuestionAnswer from the model card
Total parameters285B
Active per token17B
Weight precision in the main repoBF16
Minimum for weights aloneAbout 8×80 GB
Tensor parallel size in the example8
Native context length1M tokens, memory permitting

The Hugging Face organization also lists a separate repository named Xing4.1-Preview-NVFP4. The text available here does not say how much memory it needs, so check that repository's page before planning around it.

How do you serve Xing4.1-Preview with vLLM?

vLLM supports it through an official out-of-tree plugin, XingChen-AGI/xing4-vllm-plugin. Out-of-tree means the support lives in a separate package you install alongside vLLM rather than inside vLLM itself. The model card shows this command, with ${MODEL_PATH} set to a local folder or XingChen-AGI/Xing4.1-Preview:

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

The model card's version continues with tool-calling flags. The excerpt used for this article cuts off there, so copy the full command from the GitHub repository rather than from here. The card says parser identifiers and pre-built container image tags are in the official deployment documentation.

Notes on the flags:

  • --tensor-parallel-size 8 splits the model across eight GPUs.
  • --max-num-seqs 4 caps concurrent requests at four. That is a conservative setting, consistent with how tight memory is.
  • --trust-remote-code lets the server run the model's custom code. Read what you are trusting before you use it on a shared machine.

The card also notes that these commands follow the Xing4.0 deployment approach, since Xing4.1 reuses the Xing 4 serving stack.

How do you serve it with SGLang?

SGLang lists native support on its main branch (dated 2026-11-05 in the card's table), so you use the upstream main branch instead of a plugin. The exact SGLang launch command is not in the excerpt this article draws on. Take it from the GitHub repository at XingChen-AGI/Xing4.1-Preview, along with the pre-built images.

Other supported tools, per the card's table:

FrameworkStatus
SGLangNative, main branch
vLLMOfficial out-of-tree plugin
vLLM-AscendAscend NPU deployment guide in the GitHub repo
ms-swiftNative, v4.6.0 or later
LLaMA-FactoryNative, main branch
TensorRT-LLMUpstream pull request under review

ms-swift and LLaMA-Factory are fine-tuning tools. If you want to adapt the model rather than only run it, those are the listed routes.

Which weight format should you download?

Download the Hugging Face repository (XingChen-AGI/Xing4.1-Preview). Its weights are in PyTorch (Hugging Face Transformers) format, stored as safetensors shards. The model's native format is MindSpore, which is what it was trained in. A separate Xing4.1-Preview-MindSpore repository holds those weights.

Unless you run Huawei's MindSpore stack, you do not need the MindSpore version. The card says the PyTorch checkpoints work with Transformers, SGLang and vLLM, "without depending on the original MindSpore training environment." Safetensors is a file format that stores model weights safely and loads quickly. Files are also published on ModelScope, Modelers and AtomGit if Hugging Face is slow from your location.

Can you run Xing4.1-Preview with llama.cpp?

No. The model card is explicit: llama.cpp and KTransformers only apply to the Xing4.0 series, not Xing4.1-Preview. The new MLA and DSA architecture is different from Xing4.0, so support built for the older model does not carry over.

llama.cpp is the engine behind many popular "run a model on your laptop" tools. The card does not mention those wrappers, but if they depend on llama.cpp, expect the same limit. Quantized community builds that fit on consumer hardware are not something the model card offers. If one appears later, check what it was built with before trusting it.

What sampling settings should you use?

The card does not publish a standalone "recommended settings" list. It does give the parameters used for its own evaluations, which are a sensible starting point:

  • Default: temperature=0.8, top_p=0.95, repetition_penalty=1.05
  • MMLU-Pro: temperature=0.6
  • GPQA Diamond and AIME 2026: temperature=1.0
  • Agent's Last Exam: temperature=1.0, repetition_penalty=1.0

Temperature controls randomness. Lower values give steadier, more repeatable answers. Higher values give more varied ones. Benchmark settings are tuned to score well on tests, so adjust for your own work. If you run code generation or structured output, try lower temperature first and compare.

The hosted API also offers thinking mode as an on/off switch with no tiered levels, plus structured output and function calling through the OpenAI-compatible interface.

Is running it locally worth it?

It depends on why you want it. The card's results show a model that is competitive but not ahead everywhere. On SWE-Bench Pro V2 (Hard51), it scores 74.5 against 60.8 for DeepSeek-V4-Flash-0731, but 88.2 for DeepSeek-V4.1-Flash-1017 and 84.3 for GLM-5.3. Unmarked scores in the table are self-evaluated by the developers, so treat them as claims to check on your own tasks.

Self-hosting makes sense if you have a privacy requirement that keeps data in-house, need to fine-tune, or already own eight-GPU servers. It makes less sense if you only want to see how the model behaves. For that, the TeleAI Open Platform serves it through an OpenAI-compatible API at https://api-maas.teleai.com.cn/v1. You use the standard openai Python client, set model="Xing4.1-Preview", and supply an API key from the platform.

What does this mean for you?

If you work in IT or data science, the practical test is simple: do you have, or can you rent, a node with eight 80 GB GPUs? If not, use the hosted API for evaluation and revisit local serving later. If you do, start with vLLM or SGLang, keep concurrency low, and measure memory at your real context lengths before promising anyone 1M tokens.

If you are a manager or buyer, treat "open weights" as "possible to host," not "cheap to host." A model this size is an infrastructure project with its own hardware budget.

If you are a curious non-engineer, you do not need any of this to benefit from the model. Try it through a hosted interface, and leave the servers to the people who run them.

Do you need to host a model to build a tool on top of it?

Often not. If the reason you are reading about a 285B model is to power something practical, such as a document-review queue, a team request form or a research dashboard, the model is only one part. You also need a database, logins and hosting. Remy builds and deploys full-stack business apps from a plain-English description, with those pieces included. It offers a catalog of 433 AI models with no API keys to manage, so you can test an idea with a hosted model before committing to hardware. Pricing starts at $99 per month, with AI tokens billed at cost.

Frequently Asked Questions

5 questions

Can I run Xing4.1-Preview on a single consumer GPU?

Not from anything in the model card. The weights alone need about 8×80 GB of GPU memory, and llama.cpp, the usual route to small-GPU setups, does not support this model. Use the hosted API if you do not have a multi-GPU server.

Do I need Huawei Ascend chips to run it?

No. The model was trained on Ascend 910C chips, but the released PyTorch weights work with Transformers, SGLang and vLLM on other hardware. The card also provides a vLLM-Ascend guide if you do have Ascend NPUs.

Does it really support a 1M-token context?

Natively, yes, but the card says this is subject to available GPU memory and your deployment configuration. On a minimal 8×80 GB setup, weights take most of the memory. Test your real context lengths before relying on the maximum.

What is the difference between Xing4.0 and Xing4.1-Preview for serving?

Xing4.1-Preview uses a different architecture (MLA plus DSA) but keeps upstream API compatibility with the Xing 4 series. Most serving and fine-tuning integrations carry over, except llama.cpp and KTransformers, which only apply to Xing4.0.

Where do I find the exact commands and container images?

The GitHub repository at XingChen-AGI/Xing4.1-Preview has the deployment documentation, parser identifiers, pre-built images and the SGLang and vLLM-Ascend guides. Use it as the source of truth, because Preview releases change quickly.

How we source, write, and correct our articles. Editorial standards

Related articles

Straight to your inbox.
New pieces as they publish. No noise.