Update Notice: This repository was previously
grant-ai/Inkling-2-Mini-EXL3-4bpw. It has been replaced with this smaller, faster2.5 bpwall-in build (10.10 GB) with a bundled NVFP4 DFlash2 drafter; existing users should re-download.
Inkling-2-Mini-EXL3
High-quality 2.5 bpw EXL3 quantization of thinkingmachines/Inkling-2-Mini with a bundled NVFP4 DFlash2 speculative drafter (10.10 GB / 9.41 GiB all-in): full VLM built for Apple Silicon Metal in a universal EXL3 format that runs on NVIDIA too.
Lineage:
- Base Model: thinkingmachines/Inkling-2-Mini (
26.4Btotal;3.4Bactive;5.4Beffective active across 3 loop passes) → sensitivity- & loop-aware2.49 bpwEXL3 experts → Block-FP8 dense & vision weights → KL healing against the official release - Bundled Drafter: incoai/Inkling-2-Mini-DFlash2 → NVFP4 quantization-aware fine-tuning on this trunk + refreshed
32Kvocabulary shortlist (425 MiBbundled inside this repo)
At a Glance
| All-In Size | Params | Std 6-Dom KLD | Top-1 / Top-5 | Context |
|---|---|---|---|---|
10.10 GB (9.41 GiB) |
26.4B (5.4B eff.) |
0.0591 | 92.58% / 99.49% | 76.8K (1M win.) |
Decode (M5 Ultra 64c, Think ON, tok/s) |
Code | Prose | Chat | Pooled |
|---|---|---|---|---|
| 1-Stream Decode (excl. TTFT) | 259.8 | 156.5 | 154.3 | 182.7 |
| 8-Stream Aggregate (total / wall) | 692.7 | 510.4 | 489.5 | 556.3 |
| 8-Stream / Stream (median / user) | 103.9 | 79.8 | 75.2 | 83.3 |
| Cold Prefill (Zero Cache) | 2K (2,278 tok) |
8K (11,524 tok) |
32K (35,660 tok) |
|---|---|---|---|
Prompt Speed (tok/s) |
6,030.9 | 6,297.9 | 5,727.7 |
Model Specs
| Property | Value |
|---|---|
| All-In Footprint | 10.10 GB (9.41 GiB): 7.67 GB EXL3 experts + 1.98 GB Block-FP8 dense & full 562-tensor vision encoder + 0.45 GB bundled NVFP4 DFlash2 & 32K shortlist (mtp.safetensors removed; 2.10x smaller than official 20.19 GB + 0.99 GB DFlash2) |
| Parameters | 26.4B total (3.4B active per pass; 5.4B effective active across 3 looped passes of layers 6..17) |
| Architecture | inkling2_loop: 24 unique MoE layers (48 effective layer applications, 8 of 128 experts active, hybrid local/global attention) |
| Expert Quantization | 2.49 bpw sensitivity- & loop-aware single-codebook mcg EXL3 trellis (24 / 24 layers share suh rotation scales for hoisted Metal decode/prefill) |
| Dense & Vision Weights | Block-FP8 (128x128 attention, projections, and 140 vision linears; 1x128 embeddings and lm_head), KL-healed against the official checkpoint |
| Speculative Drafter | Bundled NVFP4 DFlash2 (425 MiB) + 32,768-token shortlist (99.31% holdout top-1 coverage), auto-loaded with zero flags |
| Context Window | 1,048,576 tokens configured (76,790-token needle-in-a-haystack verified passing on both default BF16 KV and opt-in FP8 KV) |
| Runtimes | TensorFold fork on Apple Silicon Metal (zero env vars required); universal EXL3 format compatible with NVIDIA |
How This Build Was Made
- Sensitivity- & Loop-Aware
2.49 bpwEXL3 Experts: Inkling-2-Mini loops layers6..17three times per token, so quantization error compounds unevenly across layers and projections. Loop-visit-aware Hessians allocate2.4931 bpwstrictly under the single-codebookmcgschedule (4,864matrices atK=2,4,352atK=3). - Block-FP8 Dense & Vision Weights: Attention projections, embeddings,
lm_head, and vision linears stay in Block-FP8 (128x128linears,1x128embeddings/unembed) instead of low-bit quantization, preserving routing and attention precision at half BF16 memory. - KL Healing (
-15.4%KLD) +24/24Shared Rotation Scales: Teacher-forced KL distillation against the official checkpoint cut standard 6-domain KLD from0.0698to0.0591(with student perplexity4.764below reference4.773). Per-layergate_proj/up_projHadamardsuhscales were mean-reconciled across all 128 experts so all24/24layers retain single-rotation input hoisting in Metal. - Bundled NVFP4
DFlash2Drafter: Replaced the636 MiBmtp.safetensorshead with a425 MiBNVFP4 QATDFlash2drafter fine-tuned directly on this quantized trunk from incoai/Inkling-2-Mini-DFlash2, paired with a refreshed32Kvocabulary shortlist. Verification is strictly lossless (24/24bit-exact SHAs on greedy and3/3seeded bit-exact SHAs atT=1.0, top_p=0.95vs--drafter none). - Custom Apple Silicon Metal Kernels (Default-On): Built end-to-end in our TensorFold fork with hoisted EXL3 decode/prefill, fused Q8 dense projections, 8-SG NAX prompt attention, 2-SG NAX long-context tree attention, and keyed Gumbel-coupled sampled DFlash2 drafting, all active automatically with zero environment flags.
Speed Benchmarks (Apple M5 Ultra, 64-Core GPU)
Measured on an isolated Apple Mac Studio M5 Ultra (64-core GPU) running our TensorFold fork (inkling2-exl3) out of the box with zero TF_* environment variables and verified clean CPU/GPU isolation.
Greedy Decode, Thinking ON (tok/s)
n=1 reports pure decode speed (excluding prompt prefill TTFT); n=2, 4, 8 report multi-stream system aggregate throughput (total output tokens / batch wall time).
| Domain | n=1 |
n=2 |
n=4 |
n=8 |
n=1 vs Plain |
|---|---|---|---|---|---|
Decode (n=1) & System Aggregate (n=2..8) |
|||||
| Code | 259.8 | 365.4 | 500.7 | 692.7 | 2.53x (8/8) |
| Prose | 156.5 | 225.7 | 341.1 | 510.4 | 1.72x (8/8) |
| Chat | 154.3 | 223.3 | 331.8 | 489.5 | 1.71x (8/8) |
| Pooled | 182.7 | 257.0 | 382.2 | 556.3 | 1.92x (24/24) |
Per-Stream Decode (median tok/s / user) |
|||||
| Code | 259.8 | 197.0 | 143.4 | 103.9 | 2.53x (5.03 t/r) |
| Prose | 156.5 | 136.4 | 108.1 | 79.8 | 1.72x (3.04 t/r) |
| Chat | 154.3 | 121.8 | 96.5 | 75.2 | 1.71x (2.84 t/r) |
| Pooled (24-req median) | 164.7 | 139.6 | 110.3 | 83.3 | 1.80x (24/24) |
Creative Sampled (T=1.0, top_p=0.95, Thinking ON, tok/s)
Losslessly verified with keyed Gumbel-coupled stochastic DFlash2 drafting (3/3 seeded bit-exact SHAs at seed=42 vs --drafter none). n=1 is pure decode (excl. TTFT); n=2..8 are multi-stream aggregate.
| Domain | n=1 |
n=2 |
n=4 |
n=8 |
|---|---|---|---|---|
| Code | 219.2 | 302.2 | 424.2 | 575.1 |
| Prose | 142.0 | 217.0 | 313.2 | 497.2 |
| Chat | 137.7 | 209.5 | 306.1 | 457.0 |
| Pooled | 161.2 | 234.4 | 341.5 | 506.0 |
Cold Prefill (tok/s, Fresh Server, Zero Prompt Cache)
| Bucket | Actual Tokens | Cold Prefill (tok/s) |
|---|---|---|
| 2K | 2,278 |
6,030.9 (6,029.6 SSE) |
| 8K | 11,524 |
6,297.9 |
| 32K | 35,660 |
5,727.7 (5,618.9 canon) |
Additional Speed Receipts: Greedy Thinking OFF, Long-Context 0.5K..76.8K, and llmprobe v0.6.18 --bench-only --full
Greedy Decode, Thinking OFF (n=1 Pure Decode, n=2..8 Aggregate, tok/s)
| Domain | n=1 |
n=2 |
n=4 |
n=8 |
|---|---|---|---|---|
| Code | 249.8 | 305.8 | 418.9 | 577.0 |
| Prose | 157.1 | 203.7 | 316.7 | 472.5 |
| Chat | 153.9 | 227.0 | 325.9 | 475.3 |
| Pooled | 178.6 | 242.3 | 351.8 | 508.8 |
Long-Context Decode (0.5K..64K) & 76.8K Needle (tok/s, BF16 KV)
| Context | Greedy Decode | Creative Decode | Cold Prefill |
|---|---|---|---|
0.5K (719) |
168.2 | 201.0 | 3,411.4 |
4K (5,477) |
140.3 | 169.6 | 6,060.6 |
8K (10,396) |
142.1 | 135.2 | 6,241.0 |
16K (20,805) |
147.2 | 125.5 | 6,001.2 |
32K (41,476) |
117.7 | 123.4 | 5,557.7 |
64K (81,373) |
103.5 | 109.2 | 4,793.3 |
76.8K Needle (76,790) |
PASS (149.3) |
PASS | 4,797.1 |
76.8K needle also passes with opt-in TF_INK_GLOBAL_KV_FP8=1 (125.6 tok/s decode / 4,427.3 tok/s prefill).
ddalcu/llmprobe v0.6.18 --bench-only --full (~882K Tokens, 85 Reqs)
| Metric | Greedy --full |
Creative --full |
|---|---|---|
| Total Runtime | 2m 45s | 3m 04s |
| TTFT | 99 ms | 101 ms |
Prefill / Unseen (tok/s) |
6,007.5 / 6,017.6 | 6,056.7 / 6,127.8 |
Decode (tok/s) |
166.9 | 163.7 |
| Speculative (Pred / Nov) | 251.5 / 141.7 (4.82 t/s) |
239.6 / 133.9 (4.63 t/s) |
Quality Benchmarks (Float64 Teacher-Forced KLD)
Evaluated in float64 across all 200,058 unpadded vocabulary logits against the official thinkingmachines/Inkling-2-Mini release checkpoint (unpacked losslessly to BF16, KLD = 0.0000) on 229,376 zero-overlap held-out tokens across 8 domains.
Summary vs Official thinkingmachines/Inkling-2-Mini
| Split | Tokens | KLD | Top-1 | Top-5 |
|---|---|---|---|---|
Standard 6-Domain (48 × 2K) |
98,304 | 0.0591 | 92.58% | 99.49% |
Agentic Medium (4 × 8K) |
32,768 | 0.0401 | 94.46% | 99.70% |
Agentic Long (2 × 16K + 2 × 32K) |
98,304 | 0.1877 | 92.27% | 98.70% |
| Full 8-Domain Token-Weighted | 229,376 | 0.1115 | 92.71% | 99.18% |
Standard 6-Domain student perplexity is 4.764 (official reference 4.773); Full 8-Domain student perplexity is 3.393 (official reference 3.463).
Per-Domain Quality Breakdown (All 8 Domains, 229,376 Tokens)
| Domain | Tokens | KLD | Top-1 | Top-5 |
|---|---|---|---|---|
| Tools | 12,288 | 0.0173 | 95.89% | 99.96% |
Agentic Medium (8K) |
32,768 | 0.0401 | 94.46% | 99.70% |
| Wiki | 18,432 | 0.0456 | 91.59% | 99.64% |
| Code | 24,576 | 0.0504 | 95.94% | 99.65% |
| Multilingual | 12,288 | 0.0655 | 88.96% | 99.62% |
| Chat | 24,576 | 0.0776 | 91.43% | 99.18% |
| Self / Identity | 6,144 | 0.1301 | 87.24% | 98.40% |
Agentic Long (16K / 32K) |
98,304 | 0.1877 | 92.27% | 98.70% |
How to Run
Quick Start on Apple Silicon (TensorFold)
- TensorFold Fork (ready to build today, zero env vars): grantoverton/TensorFold-pr (
inkling2-exl3) - Upstream TensorFold: ashhart/TensorFold (PR: ashhart/TensorFold#5610, gate: #4475)
- Quantization, KL Healing & Float64 Eval Repo: grantoverton/Inkling-2-Mini-EXL3
# 1. Download the all-in checkpoint (10.10 GB, includes bundled NVFP4 DFlash2 + 32K shortlist)
hf download grant-ai/Inkling-2-Mini-EXL3 --local-dir ~/models/Inkling-2-Mini-EXL3
# 2. Build TensorFold from the release branch
git clone -b inkling2-exl3 https://github.com/grantoverton/TensorFold-pr.git TensorFold
cd TensorFold
zig build native -Doptimize=ReleaseFast
# 3. Serve on an OpenAI-compatible endpoint (DFlash2 + Metal fast paths load automatically)
./zig-out/native/bin/tensorfold-native serve ~/models/Inkling-2-Mini-EXL3 --port 8080 --parallel 8
Tip for 16–32 GB Macs at long context: Set
TF_INK_GLOBAL_KV_FP8=1beforeserveto cut global KV cache memory in half (verified passing on76.8Kneedle retrieval).
NVIDIA / Universal EXL3 Compatibility
Expert weights use standard EXL3 trellis encoding (exl3-layer-*.safetensors) alongside Block-FP8 dense tensors (dense-00001.safetensors), allowing the same universal checkpoint format to target both Apple Silicon Metal and NVIDIA EXL3/ExLlamaV3 ecosystems.
Credits
Built on open repos, kernels, and quantization work from across the local AI community. The goal here is additive: pushing universal EXL3 support across Apple Silicon and NVIDIA in a fast, compact footprint.
Models
- Thinking Machines Lab: thinkingmachines/Inkling-2-Mini base model (
Apache-2.0). - INCO AI: incoai/Inkling-2-Mini-DFlash2 speculative draft model (
Apache-2.0), the starting point for our bundled NVFP4 DFlash2 drafter.
Individuals, Engines & Tooling
- vcruz305 (GitHub): Float64 teacher-forced KLD & top-k evaluation methodology (
Top-and-KLD) and SAGE REXL3 inspiration. - ashhart/TensorFold: Native Apple Silicon Metal inference engine hosting our EXL3, Block-FP8, and DFlash2 kernels.
- ddalcu/mlx-serve: Open-source Apple Silicon serving ecosystem,
llmprobebenchmark harness, and DFlash2 serving insights. - jundot/omlx: Open-source Apple Silicon serving and mixed-precision quantization tooling.
- turboderp-org/exllamav3: EXL3 trellis quantization format and codec foundations.
- 0xSero (sybil-solutions/inference-optimisation-skill): Inference optimization methodology.
- Blackfrost-AI (GitHub): Technical advisory.
Licence
Inherited from thinkingmachines/Inkling-2-Mini and incoai/Inkling-2-Mini-DFlash2: Apache 2.0.
- Downloads last month
- 717
Model tree for grant-ai/Inkling-2-Mini-EXL3
Base model
thinkingmachines/Inkling-2-Mini