Ling-3.1-flash-1019 — SAGE EXL3 1.51 bpw
Loadable ExLlamaV3 pack of inclusionAI/Ling-3.1-flash-1019.
Quantized by vcruz305 with SAGE, our own
mixed-precision quantization method for EXL3. Tensors use different EXL3 K
values; the kernels read K from each tensor at load.
Sized for a single 128 GB-class unified-memory device (~106.25 GiB
GPU-resident footprint including MTP NextN layer model.layers.72,
115.37 GB on disk), leaving ~14.5+ GiB of free unified memory on
a single DGX Spark for 262K–512K Gated MLA KV cache, 63-layer KDA recurrent
states, and an optional vision tower.
Fidelity vs. Unquantized Reference
Teacher-forced, full-vocabulary (157,184 tokens) float64 comparison against
inclusionAI/Ling-3.1-flash-1019 across 16,368 next-token predictions
(8,184 held-out calibration validation positions + 8,184 independent positions):
| Split / Pack | Top-1 Agreement | Top-5 Agreement | Mean KLD | Median / P95 KLD | Next-Token NLL | Perplexity (PPL) |
|---|---|---|---|---|---|---|
this pack — Combined (16,368 pos) |
91.67% | 99.18% | 0.1500 | 0.00146 / 0.84872 | 0.730678 |
2.0765 |
Held-Out Split (8,184 pos) |
91.17% | 99.06% | 0.1587 | 0.00222 / 0.86258 | 0.776937 |
2.1748 |
Independent Split (8,184 pos) |
92.18% | 99.30% | 0.1412 | 0.00094 / 0.82486 | 0.684419 |
1.9826 |
Official FP8 release (inclusionAI/Ling-3.1-flash-1019) |
100.00% | 100.00% | 0.0000 | 0.0000 / 0.0000 | 0.670674 |
1.9556 |
Single-Node 128 GB Unified Memory Budget (1× NVIDIA DGX Spark)
Because Ling-3.1-flash-1019 uses a 7:1 Hybrid Linear-Attention / Gated-MLA
architecture (63 Kimi Delta Attention layers + 9 trunk Gated MLA layers + 1
MTP NextN Gated MLA layer), only the 10 Gated MLA layers require a growing
per-token KV cache (576 elements/token/layer), while all 63 KDA layers use a
constant-size O(1) recurrent state (0.50 GiB total across all 63 layers):
| Component | Resident RAM (GiB) |
Notes |
|---|---|---|
GPU-Resident Model Weights (Trunk L00..L71 + MTP L72) |
106.25 GiB |
All 72 trunk layers + MTP NextN L72 + lm_head + BF16/FP32 control surfaces |
CPU-mmap model.word_embeddings.weight |
0.00 GiB GPU (1.20 GiB disk) |
Stored in Shard 1 and memory-mapped directly from disk |
63-Layer KDA Recurrent + Conv1d State |
0.50 GiB |
Constant O(1) size at any context length (1K to 1M tokens) |
10-Layer Gated MLA KV Cache @ 262K Context |
1.02 GiB (kvq4) / 2.81 GiB (fp16) |
9 trunk MLA layers (L7,15,23,31,39,47,55,63,71) + 1 MTP MLA layer (L72) |
Optional Vision Tower (Qwen3MoeVisionTransformer 27L) + Scratch |
0.75 – 1.27 GiB |
0.33 GiB or 0.85 GiB + 0.42 GiB activation scratch |
Total Active Footprint on 1× DGX Spark (262K + Vision) |
~108.52 – 110.83 GiB |
Fits inside 1× DGX Spark (118.80 GiB MemAvailable) with 9.2 – 11.5 GiB free headroom |
Pack
| Item | Value |
|---|---|
| Format | EXL3 |
| Profile | 1.51 bpw SAGE |
| Resident footprint | ~106.25 GiB GPU-resident (115.37 GB total on disk) |
| Shards | 24 (model-00001-of-00024.safetensors .. model-00024-of-00024.safetensors) |
| Index | model.safetensors.index.json |
quant_method |
exl3 |
About SAGE
SAGE is our own mixed-precision quantization method for EXL3. The method is not published.
Source model (inclusionAI, not this pack)
Ling-3.1-flash-1019 is inclusionAI's 560B-parameter (25B active) hybrid-linear MoE
model (BailingMoeV3ForCausalLM): 72 layers (63 KDA + 9 Gated MLA, 4 dense
MLP layers L00..L03 + 68 MoE layers L04..L71 with 512 routed experts + 1
shared expert, top-8 routing, plus 1 MTP NextN layer L72). Architecture,
sampling defaults, and benchmark rows on the upstream card
are inclusionAI's.
Upstream recommended sampling: temperature=1.0, top_p=0.95, top_k=20.
Load
ExLlamaV3, point at this repo (or a local snapshot):
from exllamav3 import Config, Model, Tokenizer
cfg = Config.from_directory("vcruz305/Ling-3.1-flash-1019-EXL3-SAGE-1.51bpw")
model = Model.from_config(cfg)
model.load()
tokenizer = Tokenizer.from_config(cfg)
License
MIT, same as inclusionAI/Ling-3.1-flash-1019. Cite inclusionAI for the base model. This repository is the EXL3 pack only.