# Running Xing4.1-Preview Locally: vLLM and SGLang Setup for the 285B MoE Model

> Source: <https://www.mindstudio.ai/blog/xing4-1-preview-local-deployment/>
> Published: 2026-12-01 00:00:00+00:00

**Recommendation:** Provision at least 8x80GB GPUs with tensor-parallel-size 8 for Xing4.1-Preview's BF16 weights, then cap --max-num-seqs and per-request context length to keep KV cache within memory as you scale toward 1M tokens.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

# Running Xing4.1-Preview Locally: vLLM and SGLang Setup for the 285B MoE Model

How to deploy Xing4.1-Preview's 285B MoE model with vLLM or SGLang, including GPU memory needs and 1M-token context support.

## What is Xing4.1-Preview and why does deployment need planning?

Xing4.1-Preview is a 285-billion-parameter Mixture-of-Experts (MoE) language model from China Telecom’s Xing series (formerly TeleChat), with 17B parameters activated per token. It was trained on 8,192 Ascend 910C chips using the MindSpore framework, but the released checkpoints are converted to PyTorch safetensors, making them usable on standard GPU serving stacks like vLLM and SGLang without needing the original Ascend/MindSpore training environment. Because the full weights are released in BF16, running this model locally means provisioning enough GPU memory to hold a 285B-parameter model, which in practice means a multi-GPU, multi-accelerator setup rather than anything that fits on a single card.

## TL;DR

- **Xing4.1-Preview** is a 285B-parameter MoE model (17B active per token) using Multi-head Latent Attention (MLA) combined with DeepSeek Sparse Attention (DSA), and it natively supports up to a**1M-token context window** .
- Serving the BF16 weights requires roughly **8x80GB GPUs** at minimum just to hold the parameters, with tensor-parallel-size set to 8 as the documented starting configuration.
- **vLLM support** comes through an official out-of-tree plugin (`xing4-vllm-plugin` ) rather than mainline vLLM, so you install that plugin alongside vLLM to serve the model.
- **SGLang support is native** on the project’s main branch as of November 2026, meaning no separate plugin is needed there.
- Longer context windows beyond the base setup require proportionally more GPU memory on top of the 8x80GB baseline, since KV cache scales with sequence length.
- The model reuses the **existing Xing4.0 serving ecosystem** for most frameworks, but llama.cpp and KTransformers integrations that worked for Xing4.0 do**not** work for Xing4.1-Preview because of its new MLA+DSA architecture.
- An Ascend NPU path exists via **vLLM-Ascend** , giving teams with Huawei accelerators a native deployment route distinct from the GPU-based vLLM plugin.

### Build a claims

triage app for

4,000 insurance

adjusters

One prompt. Role-based access, audit trail and SSO come built in.

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

The model card is explicit: as a 285B-parameter BF16 MoE model, the weights alone require approximately 8x80GB of GPU memory. That points to eight GPUs in the 80GB class (A100 80GB or H100 80GB territory) run with `--tensor-parallel-size 8`. This is a baseline for holding the parameters in memory; it doesn’t yet account for KV cache, activation memory, or the overhead of running longer contexts.

Since Xing4.1-Preview natively supports up to 1M tokens of context, anyone planning to actually use long-context mode needs to budget extra memory beyond the 8x80GB floor. KV cache size grows with sequence length and batch size, so a deployment serving near the 1M-token ceiling, especially with concurrent requests, will need either more GPUs, higher-memory GPUs, or careful limits on `--max-num-seqs` and context length per request to stay within hardware limits.

Because the model uses MLA (Multi-head Latent Attention), which compresses key-value representations, the memory cost of long context is lower than it would be with standard multi-head attention at the same scale. That’s part of the architectural rationale behind pairing MLA with DSA in the first place: it keeps long-context inference computationally and memory-wise more tractable than a naive attention mechanism would allow at 1M tokens.

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

vLLM support for Xing4.1-Preview isn’t built into mainline vLLM. Instead, it ships as an official out-of-tree plugin maintained at `XingChen-AGI/xing4-vllm-plugin` on GitHub. You install this plugin into your vLLM environment, then launch the server pointing at either a local model path or the Hugging Face repo identifier `XingChen-AGI/Xing4.1-Preview`.

A representative serving command looks like this:

```
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
```

A few things to note about this configuration:

- `--tensor-parallel-size 8` matches the 8x80GB GPU requirement, splitting the model across eight devices.
- `--trust-remote-code` is required because the model uses custom architecture code for MLA and DSA that isn’t part of stock Transformers.
- `--gpu-memory-utilization 0.90` tells vLLM to use up to 90% of each GPU’s memory, leaving headroom for CUDA overhead and KV cache allocation.
- `--max-num-seqs 4` caps concurrent sequences, a conservative setting given the model’s size and context length, which can be tuned up or down depending on available memory and expected request patterns.
- `--enable-auto-tool-choice` turns on function-calling/tool-use support, relevant since Xing4.1-Preview is built for agentic workloads.

For teams running on Huawei Ascend hardware instead of NVIDIA GPUs, there’s a separate path: vLLM-Ascend, with its own deployment guide in the model’s GitHub tutorial directory. This is distinct from the GPU plugin and targets NPU-based inference directly.

## How do you serve Xing4.1-Preview with SGLang?

### Build a purchaseapproval app for2,000 storemanagers

One prompt. Role-based access, audit trail and SSO come built in.

SGLang support is simpler in one respect: it’s native on the SGLang main branch as of November 5, 2026, with no separate plugin required. You pull the upstream SGLang main branch and point it at the model weights the same way you would for any natively supported model, using the equivalent tensor-parallel configuration to spread the 285B parameters across your 8x80GB (or larger) GPU pool.

Because SGLang’s integration is upstream rather than a plugin, it’s likely to track future SGLang releases more smoothly than the out-of-tree vLLM plugin, though both are officially documented and maintained by the model’s publisher.

## What else needs to be true before you deploy this model?

Beyond raw GPU memory, a few architectural details affect how Xing4.1-Preview behaves in production:

- **Different architecture from Xing4.0.** Xing4.1-Preview uses MLA plus DSA attention, a departure from the prior Xing4.0 generation. This means some tools built for Xing4.0 don’t carry over. Specifically, llama.cpp and KTransformers integrations only work with Xing4.0, not Xing4.1-Preview. If your deployment pipeline depends on either of those, you’ll need to switch to vLLM, SGLang, or one of the fine-tuning frameworks instead.
- **API compatibility is preserved.** Despite the architecture change, Xing4.1-Preview maintains upstream API compatibility with the rest of the Xing 4 series, so request/response formats and most integration code written for Xing4.0 should still work.
- **Thinking mode is binary.** The model supports turning “thinking” (extended reasoning) on or off, but there are no intermediate reasoning-effort tiers, unlike some competitor models that expose multiple reasoning levels.
- **Fine-tuning frameworks are ready too.** ms-swift (v4.6.0+) and LLaMA-Factory (main branch) both added native support in late October 2026, so teams planning to fine-tune rather than just serve the base model have established tooling available.
- **A TensorRT-LLM path is pending.** An upstream pull request for TensorRT-LLM support was under review at time of writing, so NVIDIA’s own inference stack isn’t yet a first-class option, though that may change.

## Is self-hosting Xing4.1-Preview worth it compared to the hosted API?

The model is also available through an OpenAI-compatible API on the TeleAI Open Platform, which removes the hardware burden entirely: you just call `https://api-maas.teleai.com.cn/v1` with a standard OpenAI client and your API key. For teams without existing multi-GPU infrastructure in the 8x80GB class, this hosted route is clearly the lower-friction option.

Self-hosting makes sense when data residency, latency control, or heavy customization (fine-tuning on proprietary agent trajectories or codebases) matter enough to justify running a 285B-parameter model on dedicated hardware. Given the model’s stated focus on agentic coding and long-horizon tasks, organizations building custom agent harnesses on top of it, similar to the Codex, OpenCode, Claude Code, and WorkBuddy harnesses it was evaluated against, are the likeliest candidates for local deployment rather than relying solely on the hosted API.

## Frequently Asked Questions

### How many GPUs do I need to run Xing4.1-Preview?

The documented baseline is 8 GPUs with 80GB of memory each, used with `--tensor-parallel-size 8`. This covers holding the BF16 weights; longer context windows or higher concurrency require additional memory on top of that.

### Can I use llama.cpp to run Xing4.1-Preview?

No. llama.cpp and KTransformers support only applies to the earlier Xing4.0 series. Xing4.1-Preview’s MLA+DSA architecture requires vLLM (via the official plugin), SGLang (native), or vLLM-Ascend for NPU hardware.

### Does Xing4.1-Preview really support 1 million tokens of context?

### ›Build a purchase approval app for 2,000 store managers

One prompt. Role-based access, audit trail and SSO come **built in**.

Yes, it natively supports up to a 1M-token context window, enabled by its MLA and DSA attention design. Actually serving requests at that length requires GPU memory well beyond the 8x80GB baseline needed just to hold the model weights.

### Is vLLM support for Xing4.1-Preview official?

Yes, but it’s delivered as an out-of-tree plugin (`xing4-vllm-plugin`) maintained by the model’s publisher, rather than being merged into mainline vLLM. You install the plugin alongside a standard vLLM installation.

### What’s the difference between Xing4.0 and Xing4.1-Preview for deployment purposes?

Xing4.1-Preview changes the underlying attention architecture to MLA plus DSA, which breaks compatibility with llama.cpp and KTransformers. Most other serving and fine-tuning tools (vLLM plugin, SGLang, ms-swift, LLaMA-Factory) carry over or have been updated to support the new architecture, and the upstream API remains compatible with Xing4.0 clients.
