Ling-3.1-flash-UNCENSORED — EXL3 3.05 bpw
inclusionAI Ling-3.1-flash · Hybrid KDA + Gated MLA MoE (72 layers, 512 routed + 1 shared per MoE) · Built-in MTP Drafter
Uncensored · 2× DGX Spark Ready · ExLlamaV3 Native (BailingMoeV3ForCausalLM) · Built-in MTP L72 Drafter · 1M YaRN Extended Context · Full Reasoning & Tool Calling
An uncensored, reasoning- and coding-calibrated EXL3 3.05 bpw quantization of inclusionAI/Ling-3.1-flash, built specifically to fit comfortably across 2× NVIDIA DGX Sparks (256 GB unified memory / ~243 GiB usable) with generous headroom for extended context (256K–1M YaRN) and the built-in MTP (Multi-Token Prediction) draft layer.
- Base model: inclusionAI/Ling-3.1-flash — 72 transformer layers (
L0–L3 dense + L4–L71 MoE with 512 routed + 1 shared expert per layer; 63 KDA linear-attention + 9 Gated MLA attention layers) + 1 MTP draft layer (L72).
- Format: EXL3 trellis (
mul1 codebook, exllamav3 1.6.7), 3.05 bits per weight average (--hq 1), 208 GiB across 35 shards.
- Calibration: 256 × 2048 tokens (
523,348 tokens) combining in-domain reasoning, wide coding, agentic tool-calling, multilingual, technical, and full-vocabulary coverage directly from the uncensored FP8 master.
- Context: 262,144 tokens native / 1,048,576 (1M) tokens with YaRN (
factor=4.0). Because Ling-3.1-flash uses only 9 Gated MLA layers (kv_lora_rank=512 + qk_rope_head_dim=64), KV cache footprint is minimal (~1.3 GB per 128K tokens, ~10.4 GB at 1M tokens; 216.9 GiB total VRAM measured with a full 1M KV cache).
- MTP Draft Layer: Bundled natively at 4–6 bpw (
bailing_hybrid_mtp) for speculative decoding in ExLlamaV3.
Footprint — 2× DGX Spark Memory Budget
| Component |
Size |
| Pack on disk (35 shards) |
208 GiB (~223 GB) |
| Weights resident (total across 2× DGX Sparks) |
~206.9 GiB (~103.5 GiB per Spark) |
| Weights + full 1M-token KV cache (measured) |
~216.9 GiB (~108.5 GiB per Spark) |
| Usable unified RAM (2× DGX Sparks) |
~243.4 GiB (~121.7 GiB per Spark) |
| Free headroom for runtime + KV cache + MTP |
~26–36 GiB (~13–18 GiB per Spark) |
Precision Layout (3.05 bpw avg, --hq 1)
| Component |
Bitrate |
Tensors |
Routed experts (L4–L71, 512 experts/layer) |
3 bpw |
104,244 tensors (zero 2-bit experts) |
Dense MLPs (L0–L3) & MTP routed experts (L72) |
4 bpw |
1,548 tensors |
| All KDA (63) + Gated MLA (9) attention & all 68 shared experts |
5 bpw |
697 tensors |
lm_head + MTP attention & MTP shared expert |
6 bpw |
8 tensors |
word_embeddings, layer norms, router gates |
BF16 |
Unquantized |
Showcase Cards
Benchmarks & Fidelity
Quantization Fidelity vs Uncensored FP8 Master (50 × 2048 = 102,400 tokens)
| Metric |
EXL3 3.05 bpw |
Uncensored FP8 Master |
| Top-1 Token Agreement |
92.56% |
reference |
KL Divergence (EXL3, FP8) |
0.0825 (median 0.00464, p90 0.2342) |
— |
KL Divergence (FP8, EXL3) |
0.0880 |
— |
High-Confidence Tokens (p ≥ 0.95, 63.3% of tokens) |
mean KLD 0.0118, median 0.00049 |
— |
| Perplexity |
2.0521 (+0.037 / +1.83%) |
2.0151 |
| Label in Top-1 / Top-5 |
82.41% / 94.73% |
83.05% / 94.91% |
Capabilities, Reasoning, Compliance & Long Context
| Evaluation |
Result |
| MMLU-570 (Logit) |
87.54% (499/570, +0.35 pp vs base) |
| MMLU-570 (Uncapped Thinking) |
90.88% (518/570, 537/570 clean stops) |
GSM8K-500 (thinking=True) |
98.00% (490/500, 494/500 clean stops, med 343 tok) |
HarmBench-240 (Non-Copyright, Strict, thinking=True) |
98.33% (236/240, 0 hard refusals, 1 loop; ALL 320: 309/320 = 96.56%) |
Tool Calling (<tool_call>) |
PASS (verified with full <think> + MTP L72) |
MTP Speculative Decoding (L72) |
PASS (1.33x–1.66x speedup, 0.80–0.99 acc/draft across 8 workloads; 0.97 Agentic Code, 0.94 Coding) |
| Extended Long Context (1M YaRN NIAH) |
PASS (4/4 PASS (256K → 1000K tokens, 1M YaRN)) |
MMLU-570 Per-Subject Breakdown (57 Subjects: Base FP8 vs EXL3 3.05 bpw)
| Subject |
Base FP8 (Logit) |
EXL3 3.05 bpw (Logit) |
Δ Logit |
EXL3 3.05 bpw (Thinking) |
abstract_algebra |
60.0% |
70.0% (7/10) |
+10.0 pp |
80.0% (8/10) |
anatomy |
80.0% |
60.0% (6/10) |
-20.0 pp |
80.0% (8/10) |
astronomy |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
business_ethics |
80.0% |
80.0% (8/10) |
+0.0 pp |
80.0% (8/10) |
clinical_knowledge |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
college_biology |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
college_chemistry |
70.0% |
90.0% (9/10) |
+20.0 pp |
90.0% (9/10) |
college_computer_science |
90.0% |
100.0% (10/10) |
+10.0 pp |
100.0% (10/10) |
college_mathematics |
70.0% |
80.0% (8/10) |
+10.0 pp |
100.0% (10/10) |
college_medicine |
100.0% |
90.0% (9/10) |
-10.0 pp |
100.0% (10/10) |
college_physics |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
computer_security |
90.0% |
80.0% (8/10) |
-10.0 pp |
80.0% (8/10) |
conceptual_physics |
100.0% |
100.0% (10/10) |
+0.0 pp |
90.0% (9/10) |
econometrics |
70.0% |
70.0% (7/10) |
+0.0 pp |
90.0% (9/10) |
electrical_engineering |
90.0% |
80.0% (8/10) |
-10.0 pp |
90.0% (9/10) |
elementary_mathematics |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
formal_logic |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
global_facts |
70.0% |
70.0% (7/10) |
+0.0 pp |
60.0% (6/10) |
high_school_biology |
90.0% |
90.0% (9/10) |
+0.0 pp |
90.0% (9/10) |
high_school_chemistry |
90.0% |
80.0% (8/10) |
-10.0 pp |
90.0% (9/10) |
high_school_computer_science |
90.0% |
100.0% (10/10) |
+10.0 pp |
100.0% (10/10) |
high_school_european_history |
90.0% |
90.0% (9/10) |
+0.0 pp |
90.0% (9/10) |
high_school_geography |
80.0% |
80.0% (8/10) |
+0.0 pp |
80.0% (8/10) |
high_school_government_and_politics |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
high_school_macroeconomics |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
high_school_mathematics |
30.0% |
40.0% (4/10) |
+10.0 pp |
100.0% (10/10) |
high_school_microeconomics |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
high_school_physics |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
high_school_psychology |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
high_school_statistics |
90.0% |
100.0% (10/10) |
+10.0 pp |
100.0% (10/10) |
high_school_us_history |
90.0% |
90.0% (9/10) |
+0.0 pp |
90.0% (9/10) |
high_school_world_history |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
human_aging |
100.0% |
90.0% (9/10) |
-10.0 pp |
100.0% (10/10) |
human_sexuality |
90.0% |
90.0% (9/10) |
+0.0 pp |
90.0% (9/10) |
international_law |
90.0% |
90.0% (9/10) |
+0.0 pp |
90.0% (9/10) |
jurisprudence |
80.0% |
90.0% (9/10) |
+10.0 pp |
90.0% (9/10) |
logical_fallacies |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
machine_learning |
80.0% |
80.0% (8/10) |
+0.0 pp |
70.0% (7/10) |
management |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
marketing |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
medical_genetics |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
miscellaneous |
100.0% |
100.0% (10/10) |
+0.0 pp |
90.0% (9/10) |
moral_disputes |
90.0% |
90.0% (9/10) |
+0.0 pp |
80.0% (8/10) |
moral_scenarios |
70.0% |
60.0% (6/10) |
-10.0 pp |
80.0% (8/10) |
nutrition |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
philosophy |
80.0% |
80.0% (8/10) |
+0.0 pp |
80.0% (8/10) |
prehistory |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
professional_accounting |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
professional_law |
70.0% |
70.0% (7/10) |
+0.0 pp |
50.0% (5/10) |
professional_medicine |
80.0% |
90.0% (9/10) |
+10.0 pp |
100.0% (10/10) |
professional_psychology |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
public_relations |
90.0% |
90.0% (9/10) |
+0.0 pp |
80.0% (8/10) |
security_studies |
100.0% |
100.0% (10/10) |
+0.0 pp |
100.0% (10/10) |
sociology |
90.0% |
90.0% (9/10) |
+0.0 pp |
100.0% (10/10) |
us_foreign_policy |
100.0% |
90.0% (9/10) |
-10.0 pp |
90.0% (9/10) |
virology |
40.0% |
40.0% (4/10) |
+0.0 pp |
30.0% (3/10) |
world_religions |
70.0% |
80.0% (8/10) |
+10.0 pp |
80.0% (8/10) |
HarmBench-240 Per-Category Breakdown (6 Non-Copyright Categories, Strict Grader, thinking=True)
| Category |
N |
Clean Comply |
Soft Redirect |
Disclaimer |
Hard Refusal |
True Loop |
chemical_biological |
42 |
42/42 (100.0%) |
0 |
0 |
0 |
0 |
cybercrime_intrusion |
52 |
52/52 (100.0%) |
0 |
0 |
0 |
0 |
harassment_bullying |
21 |
21/21 (100.0%) |
0 |
0 |
0 |
0 |
harmful |
18 |
18/18 (100.0%) |
0 |
0 |
0 |
0 |
illegal |
53 |
50/53 (94.3%) |
1 |
2 |
0 |
0 |
misinformation_disinformation |
54 |
53/54 (98.1%) |
0 |
0 |
0 |
1 |
MTP L72 Speculative Decoding Breakdown (8 Workloads, ExLlamaV3 spec_decode.py)
| Workload |
Baseline (t/s) |
MTP Greedy (t/s) |
Speedup |
Accepted / Draft |
| Agentic, code |
40.63 |
59.56 |
1.47x |
0.97/1.00 |
| Agentic, curl |
40.53 |
56.64 |
1.40x |
0.88/1.00 |
| Coding |
41.33 |
60.42 |
1.46x |
0.94/1.00 |
| Creative |
41.54 |
60.33 |
1.45x |
0.91/1.00 |
| Creative (reasoning) |
41.34 |
55.13 |
1.33x |
0.80/1.00 |
| Translation |
40.82 |
61.03 |
1.50x |
0.93/1.00 |
| Translation (reasoning) |
40.81 |
59.87 |
1.47x |
0.93/1.00 |
| Trivial repetition |
34.20 |
56.90 |
1.66x |
0.99/1.00 |
Extended 1M YaRN Needle-in-a-Haystack Breakdown (256K → 1,000,038 Tokens)
| Target Context |
Exact Prompt Tokens |
Found |
Finish |
Completion Tokens |
Prefill Speed |
| 256K |
256,048 |
PASS |
stop |
108 |
2,150 tok/s |
| 512K |
512,067 |
PASS |
stop |
86 |
1,913 tok/s |
| 768K |
768,036 |
PASS |
stop |
144 |
1,692 tok/s |
| 1000K |
1,000,038 |
PASS |
stop |
116 |
1,498 tok/s |
Quick Start (ExLlamaV3)
Requires exllamav3 >= 1.6.7 (with native BailingMoeV3ForCausalLM + BailingHybridMTPModel support):
from exllamav3 import Config, Model, Cache, Tokenizer, Generator
model_dir = "/path/to/Ling-3.1-flash-UNCENSORED-EXL3-3.05bpw"
config = Config.from_directory(model_dir)
tokenizer = Tokenizer.from_config(config)
model = Model.from_config(config, component="text")
cache = Cache(model, max_num_tokens=131072, max_history=2)
model.load()
# Optional: enable built-in MTP L72 speculative drafter
draft_model = Model.from_config(config, component="mtp")
draft_cache = Cache(draft_model, max_num_tokens=131072, max_history=2)
draft_model.load()
generator = Generator(
model=model,
cache=cache,
tokenizer=tokenizer,
draft_model=draft_model,
draft_cache=draft_cache,
)
Multi-Turn Agentic / Tool-Calling Best Practices (CRITICAL)
Ling-3.1-flash's chat template enables preserved_thinking = true (interleaved <think>...</think> across tool-calling turns). To avoid multi-turn quality degradation in agentic harnesses (CyberGym, SWE-bench, OpenHands, Claude Code, Codex, custom loops):
- Preserve
reasoning_content across tool-call turns: Always copy message["reasoning_content"] back into the assistant turn in messages before appending the tool response. Dropping reasoning_content causes the chat template to emit <think></think> before every prior tool call, wiping the model's reasoning state between steps (in our CyberGym Level-1 A/B tests, dropping reasoning_content caused a -25 pp drop on multi-turn tasks).
- Use a generous
max_tokens (>= 16384, recommended 32768) when thinking is ON: Complex code/binary/math turns can exceed 8,192 tokens inside <think>...</think>. If a turn hits finish_reason == "length" before closing </think>, some OpenAI-compatible parsers place the unclosed thought into content with reasoning_content = None and tool_calls = []. Setting max_tokens >= 32768 prevents mid-thought truncation; as an extra client safeguard, if finish_reason == "length" and reasoning_content is empty while tool_calls is empty, move content into reasoning_content instead of feeding raw truncated reasoning back as content.
- Recommended sampling (official
inclusionAI/Ling-3.1-flash defaults): temperature = 1.0, top_p = 0.95, top_k = 20 with enable_thinking = true (stored in generation_config.json; use temperature = 0.0 only for deterministic logit/eval runs).
License
Released under the dealignai Community Model License v0.3 (see LICENSE).