selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

XingChen-AGI logo

Xing4.1-Preview

XingChen-AGI·Instruct·released 22 Nov 2026

Apache 2.0280BA17.8BMoE1M ctx ≈200 GB
Your GPU
vllm serve XingChen-AGI/Xing4.1-Preview
All 2 runners ↓

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.

Notify me when

How much VRAM does Xing4.1-Preview need?

At Q4_K_M Xing4.1-Preview needs about 200 GB with an 8K context (200 GB at Q4, 582 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈200 GB · Q4_K_M · 8K context — Pick a GPU to check the fit.

Change quant, context or KV cache to compare
Advanced: context 8K · KV cache 16-bit
Context
KV cache

Smallest GPU for each quant and context (KV cache 16-bit)

Quantisation8K16K32K64K128K1M
Q3_K_M
Q4_K_M
Q5_K_M
Q6_K
Q8_0
FP16

≤16 GB card24–32 GB48–96 GBmore

QuantisationQualityWeightsKV cacheTotal
Q2_KHeavy lossSmallest, noticeably worse qualityHeavy loss86 GB 34 GB≈124 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss127 GB 34 GB≈168 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss158 GB 34 GB≈200 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless185 GB 34 GB≈229 GB
Q6_KNear-losslessPractically losslessNear-lossless215 GB 34 GB≈260 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless277 GB 34 GB≈325 GB
FP16 / BF16LosslessFull precision, as releasedLossless521 GB 34 GB≈582 GB

Estimates for 8K tokens of context: weights + KV cache + runtime overhead. All experts stay in memory, but only the active ones are read per token. Speed assumes memory-bound decoding at your GPU’s bandwidth. Pick a GPU above and the fit column checks every row against it.

How to pick a quant

Take the biggest quant that fits with room left for context. Q4_K_M is the usual sweet spot. Below Q4 quality drops fast, above Q6 you mostly pay memory for nothing. Big models (70B+, large MoE) tolerate low quants better than small ones.

  • LosslessF16, Q8_0
  • Near-losslessQ6_K, Q5_K_M
  • Small lossQ5_K_S, Q4_K_M, IQ4_NL, IQ4_XS, Q4_K_S
  • Noticeable lossQ4_0, Q3_K_L, Q3_K_M, IQ3_M
  • Heavy lossIQ3_XXS, Q3_K_S, IQ2_M, Q2_K

Typical quality loss, not measured per model. Tiers come from KL divergence against FP16 on Llama 3 8B: llama.cpp perplexity README: LLaMA 3 8B scoreboard (KLD and ΔPPL vs FP16, Wikitext-2); llama.cpp quantize tool: ΔPPL per quant type @ Llama-3-8B

How much context fits?

Model quant
KV cache

At 8K context, Q4_K_M needs ≈200 GB(158 GB weights + 34 GB KV cache + 8.4 GB overhead). Pick a GPU above to see how much context fits.

0100020003000400050001K2K4K8K16K32K64K128K256K512K1MGB

Weights + overheadKV cache

Can the Apple M3 Ultra (512 GB) run Xing4.1-Preview? →

Speed vs quality per quant

Smaller quants run faster and fit in less memory, but lose quality.

Q2_KQ3_K_MQ4_K_MQ5_K_MQ6_KQ8_0F16

Fits in VRAMTight fitCPU offload✕ won't runQuality is typical KL divergence vs FP16, not measured for this model.

Real-world speed of Xing4.1-Preview

Tokens per second measured by people running it at home. A GPU shows a median once 3 reports agree on the same setup. Reports far from our estimate wait for a review. Measure yours with llama-bench →

No medians yet. Be one of the first 3 to report a setup.

All reports

Run Xing4.1-Preview locally

These commands load the original weights from Hugging Face.

Serve an OpenAI-compatible APIdocs
vllm serve XingChen-AGI/Xing4.1-Preview
Docker Compose (NVIDIA)docs
yaml
services:
  vllm:
    image: vllm/vllm-openai:latest
    command: XingChen-AGI/Xing4.1-Preview
    ports:
      - "8000:8000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 8000.

Install vLLM

Serve an OpenAI-compatible APIdocs
sglang serve XingChen-AGI/Xing4.1-Preview --host 0.0.0.0 --port 30000
Docker Compose (NVIDIA)docs
yaml
services:
  sglang:
    image: lmsysorg/sglang:latest
    command: sglang serve XingChen-AGI/Xing4.1-Preview --host 0.0.0.0 --port 30000
    ports:
      - "30000:30000"
    ipc: host
    volumes:
      - ~/.cache/huggingface:/root/.cache/huggingface
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: all
              capabilities: [gpu]

API on port 30000.

Install SGLang

About 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 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. 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.

Full model card on Hugging Face →

Alternatives to Xing4.1-Preview

All alternatives →
deepseek-ai logo

DeepSeek-V4-Flash-0731

deepseek-ai·Chat

≈182 GB

DeepSeek-V4-Flash-0731 is the official release of DeepSeek-V4-Flash, superseding the preview version, with substantially enhanced agentic capabilities. It has the same model structure as DeepSeek-V4-Flash-DSpark, i.e. it comes with a speculative decoding module attached.

304BA27.4B1M ctx MIT
1.2MJul 2026gguf
deepseek-ai logo

DeepSeek-V4-Flash

deepseek-ai·Chat

≈174 GB

We present a preview version of DeepSeek-V4 series, including two strong Mixture-of-Experts (MoE) language models — DeepSeek-V4-Pro with 1.6T parameters (49B activated) and DeepSeek-V4-Flash with 284B parameters (13B activated) — both supporting a context length of one million tokens.

291BA14.1B1M ctx MIT
1MApr 2026gguf
tencent logo

Hy3

tencent·Chat

≈180 GB

Hy3 is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters, developed by the Tencent Hy Team. Following the Hy3 Preview launch in late April, we gathered feedback from 50+ products and scaled up post-training with higher quality data.

299BA21B256K ctx Apache 2.0
643.9KJul 2026gguf
poolside logo

Laguna-M.1

poolside·Chat

≈137 GB

Laguna M.1 is a 225B total parameter Mixture-of-Experts model with 23B activated parameters per token designed for agentic coding and long-horizon work.

226BA14.4B256K ctx Apache 2.0
427.1KJun 2026gguf
MiniMaxAI logo

MiniMax-M2.5

MiniMaxAI·Chat

≈138 GB

Extensively trained with reinforcement learning in hundreds of thousands of complex real-world environments, M2.5 is SOTA in coding, agentic tool use and search, office work, and a range of other economically valuable tasks, boasting scores of 80.2% in SWE-Bench Verified, 51.3% in Multi-SWE-Bench…

229BA11B192K ctx modified-mit
686.5KFeb 2026gguf
tencent logo

Hy3-preview

tencent·Chat

≈180 GB

Hy3 preview is a 295B-parameter Mixture-of-Experts (MoE) model with 21B active parameters and 3.8B MTP layer parameters, developed by the Tencent Hy Team. Hy3 preview is the first model trained on our rebuilt infrastructure, and the strongest we've shipped so far.

299BA21B256K ctx Custom licence
114.5KApr 2026

Xing4.1-Preview FAQ

How much VRAM does Xing4.1-Preview need?
About 200 GB at Q4_K_M with an 8K context. Q8_0 needs about 325 GB and full precision about 582 GB. Longer contexts need more memory for the KV cache.
Can Xing4.1-Preview run on the Apple M3 Ultra (512 GB)?
Yes. It fits at Q8_0 (about 325 GB), at an estimated 24 tokens/s.
Can I use Xing4.1-Preview commercially?
Yes. It is released under Apache 2.0. Permissive: use, modify and sell freely; keep the notice and licence text.
What is the context length of Xing4.1-Preview?
1,048,576 tokens (1M). The full window needs far more memory than an 8K context.
How do I run Xing4.1-Preview locally?
With vLLM: vllm serve XingChen-AGI/Xing4.1-Preview.

Data from Hugging Face, the model card and public leaderboards. Memory and speed figures are estimates; real numbers depend on the runtime, context length and drivers. Always check the licence yourself before commercial use.