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

inclusionAI·Instruct·released 27 Oct 2026

MIT572BA25.1BMoE256K ctx ≈358 GB
Your GPU
llama-server -hf bartowski/Ling-3.1-flash-1019-GGUF:Q4_K_M
All 3 runners ↓

Ling-3.1-flash-1019 is an instruct model from inclusionAI for chat and text generation. It has 572.1B total parameters, with 25.1B active per token through a mixture-of-experts design. It accepts text input and produces text output, with a context length of 262,144 tokens. The model is released under the MIT licence, which permits commercial use.

Notify me when

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

At Q4_K_M Ling-3.1-flash-1019 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: ≈369 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 loss204 GB file18 GB≈233 GB
Q3_K_MNoticeable lossSmall, some quality lossNoticeable loss256 GB file18 GB≈287 GB
Q4_K_MrecommendedSmall lossRecommended default for local useSmall loss333 GB file18 GB≈369 GB
Q5_K_MNear-losslessNear-lossless for most tasksNear-lossless406 GB file18 GB≈445 GB
Q6_KNear-losslessPractically losslessNear-lossless467 GB file18 GB≈509 GB
Q8_0LosslessLossless in practice, twice the size of Q4Lossless567 GB file18 GB≈613 GB
FP16 / BF16LosslessFull precision, as releasedLossless1066 GB est.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. Weights marked “file” use the real GGUF download size; “est.” rows are computed from the parameter count.

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 ≈369 GB(333 GB weights + 18 GB KV cache + 17 GB overhead). Pick a GPU above to see how much context fits.

020040060080010001K2K4K8K16K32K64K128K256KGB

Weights + overheadKV cache

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

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-1019 locally

--quantQ4_K_Mdefault; pick your GPU to tailor itbartowski/Ling-3.1-flash-1019-GGUF

OpenAI-compatible server with a web UIdocs
llama-server -hf bartowski/Ling-3.1-flash-1019-GGUF:Q4_K_M

Downloads the GGUF on first run. Installed through llama.app? The same flags work with `llama serve`.

Install llama.cpp

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

Quantised versions and downloads

RepositoryFormatQuantSizeDownloads
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ1_S131 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ1_M145 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ2_XXS171 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ2_XS177 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ2_S188 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ2_M213 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFQ2_K219 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ3_XXS247 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFIQ3_XS260 GB7.7K
bartowski/Ling-3.1-flash-1019-GGUFGGUFQ3_K_S262 GB7.7K

About Ling-3.1-flash-1019

We introduce Ling-3.1-flash-1019, an upgraded version of Ling-3.1-flash, with 560B total parameters, 25B active parameters per token, and a 1M-token context window. With further post-training optimizations, Ling-3.1-flash-1019 demonstrates significant improvements in reasoning and real-world agentic capabilities. Its AA-Briefcase score rises from approximately 1400 to 1524 Elo, while performance on AutomationBench-AA increases from 62% to 68%. The model also makes gains on scientific benchmarks, including CritPt (18% → 26%) and SciCode (54% → 57%). Overall, it scores 44 on the Artificial Analysis Intelligence Index v4.3.2, up from 41 for its predecessor. These gains highlight the model's improved capabilities in complex reasoning, multi-step task execution, and agentic workflows across diverse real-world scenarios. The table and diagram below summarize the model’s specifications and architecture. The day-0 SGLang image includes Ling-3.1-flash support, MTP (NEXTN) speculative decoding, and Hopper decode optimizations: Server (8 × H200, TP8 + EP8): On 4 × GB300, use --tp 4 --ep 4 instead. Hopper decode optimizations (optional, ~10% faster batch-1 decode) can be enabled with SGLANG_ENABLE_FP8_BLOCK_GEMV=1 and SGLANG_ENABLE_FUSED_KDA_OUTPUT_QUANT=1. Client Verified recipes for H200, GB300, H800, H100, and B200, plus HiCache (Mooncake L3), reasoning on/off, tool calling, and measured accuracy/speed numbers, are in the SGLang Ling-3.1-flash cookbook. Server

Full model card on Hugging Face →

Alternatives to Ling-3.1-flash-1019

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-1019 FAQ

How much VRAM does Ling-3.1-flash-1019 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-1019 run on a consumer GPU?
Not comfortably on a single one: it needs about 358 GB at Q4. Split it over several GPUs, use a large unified-memory machine, or offload part of it to system RAM.
Can I use Ling-3.1-flash-1019 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-1019?
262,144 tokens (256K). The full window needs far more memory than an 8K context.
How do I run Ling-3.1-flash-1019 with llama.cpp?
Run llama-server -hf bartowski/Ling-3.1-flash-1019-GGUF:Q4_K_M. It downloads the GGUF and starts an OpenAI-compatible server.

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.