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.

inclusionAI logo

Ling-3.1-flash-base

inclusionAI·Base model·released 25 Oct 2026

MIT572BA25.1BMoE256K ctx ≈358 GB
Your GPU
vllm serve inclusionAI/Ling-3.1-flash-base
All 2 runners ↓

We introduce Ling-3.1-flash-base, the base checkpoint of Ling-3.1-flash, released to support research and community-driven innovation.

Notify me when

How much VRAM does Ling-3.1-flash-base need?

At Q4_K_M Ling-3.1-flash-base needs about 358 GB with an 8K context (358 GB at Q4, 1137 GB at full precision). Pick your GPU to see what fits and how fast it runs.

--vram
any
--gpus
--quant

Needs: ≈358 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)

Quantisation8K16K32K64K128K256K
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 loss175 GB 18 GB≈202 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss260 GB 18 GB≈292 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss323 GB 18 GB≈358 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless379 GB 18 GB≈416 GB
Q6_KNear-losslessPractically losslessNear-lossless439 GB 18 GB≈479 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless566 GB 18 GB≈613 GB
FP16 / BF16LosslessFull precision, as releasedLossless1066 GB 18 GB≈1137 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 ≈358 GB(323 GB weights + 18 GB KV cache + 17 GB overhead). Pick a GPU above to see how much context fits.

020040060080010001K2K4K8K16K32K64K128K256KGB

Weights + overheadKV cache

Can the Apple M3 Ultra (512 GB) run Ling-3.1-flash-base? →

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 Ling-3.1-flash-base

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 Ling-3.1-flash-base locally

These commands load the original weights from Hugging Face.

Serve an OpenAI-compatible APIdocs
vllm serve inclusionAI/Ling-3.1-flash-base
Docker Compose (NVIDIA)docs
yaml
services:
  vllm:
    image: vllm/vllm-openai:latest
    command: inclusionAI/Ling-3.1-flash-base
    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 inclusionAI/Ling-3.1-flash-base --host 0.0.0.0 --port 30000
Docker Compose (NVIDIA)docs
yaml
services:
  sglang:
    image: lmsysorg/sglang:latest
    command: sglang serve inclusionAI/Ling-3.1-flash-base --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 Ling-3.1-flash-base

We introduce Ling-3.1-flash-base, the base checkpoint of Ling-3.1-flash, released to support research and community-driven innovation. With 560B total parameters and 25B active parameters per token, the model provides a foundation for continued pretraining, domain adaptation, and post-training research. Ling-3.1-flash-base shares the same hybrid-linear Mixture-of-Experts (MoE) architecture as Ling-3.1-flash, combining KDA with Gated MLA. As a base checkpoint, it is intended for further training and adaptation. The model was trained using FP8. This release provides the BF16 base checkpoint produced after Warmup-Stable and Merge (WSM) checkpoint merging. BF16 refers to the precision of the released weights, while FP8 refers to the precision used during training. • Sparse MoE architecture: 512 routed experts, with 8 routed experts and 1 shared expert activated per token, for a total of 25B active parameters per token. • Hybrid linear attention: 63 KDA layers and 9 Gated MLA layers combine linear attention with Gated MLA at a 7:1 ratio.

Full model card on Hugging Face →

Alternatives to Ling-3.1-flash-base

All alternatives →

For more details on how to deploy and use the model - see the Quick Start Guide below!

561BA55B256K ctx openmdw-1.1
918.3KJun 2026gguf
deepseek-ai logo

DeepSeek-V3.2

deepseek-ai·Chat

≈453 GB

We introduce DeepSeek-V3.2, a model that harmonizes high computational efficiency with superior reasoning and agent performance. Our approach is built upon three key technical breakthroughs:

685BA41B160K ctx MIT
10.8MDec 2025gguf
zai-org logo

GLM-5.3

zai-org·Chat

≈476 GB

GLM-5.3 uses the same base model as GLM-5.2 — every gain comes from post-training. Compared with GLM-5.2, it is much better at complex coding and long-horizon tasks:

753BA41.8B1M ctx glm-5.3
1.4MAug 2026ollama
zai-org logo

GLM-5.2

zai-org·Chat

≈476 GB

👋 Join our WeChat or Discord community. 📖 Check out the GLM-5.2 blog and GLM-5 Technical report . 📍 Use GLM-5.2 API services on Z.ai API Platform. 🔜 Try GLM-5.2 here .

753BA41.8B1M ctx MIT
1MJun 2026ollama
zai-org logo

GLM-5

zai-org·Chat

≈457 GB

👋 Join our WeChat or Discord community. 📖 Check out the GLM-5 technical blog . 📍 Use GLM-5 API services on Z.ai API Platform. 👉 One click to GLM-5 .

754BA42.4B198K ctx MIT
918.7KFeb 2026gguf
zai-org logo

GLM-5.1

zai-org·Chat

≈457 GB

👋 Join our WeChat or Discord community. 📖 Check out the GLM-5.1 blog and GLM-5 Technical report . 📍 Use GLM-5.1 API services on Z.ai API Platform. 🔜 GLM-5.1 will be available on chat.z.ai in the coming days.

754BA42.4B198K ctx MIT
576.5KApr 2026gguf

Ling-3.1-flash-base FAQ

How much VRAM does Ling-3.1-flash-base need?
About 358 GB at Q4_K_M with an 8K context. Q8_0 needs about 613 GB and full precision about 1137 GB. Longer contexts need more memory for the KV cache.
Can Ling-3.1-flash-base run on the Apple M3 Ultra (512 GB)?
Yes. It fits at Q4_K_M (about 358 GB), at an estimated 30 tokens/s.
Can I use Ling-3.1-flash-base commercially?
Yes. It is released under MIT. Permissive: do almost anything as long as you keep the copyright notice.
What is the context length of Ling-3.1-flash-base?
262,144 tokens (256K). The full window needs far more memory than an 8K context.
How do I run Ling-3.1-flash-base locally?
With vLLM: vllm serve inclusionAI/Ling-3.1-flash-base.

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.