Update Notice (V2): Replaced the earlier V1
2.5 bpwbuild (10.10 GB,0.0591KLD) with this higher-fidelity V22.67 bpwall-in build (10.08 GB,0.0520KLD,-11.9%lower distortion) featuringK=3on all 12 non-loopeddown_projlayers,EXL3-K4embeddings,NVFP4-4/6vision, mixed-length1K/4K/8KKL healing, and a smaller297.7 MBNVFP4-4/6DFlash2 r4drafter. Existing users should re-download and update to the latest TensorFoldinkling2-exl3/inkling2-exl3-speedupsbranch.
Inkling-2-Mini-EXL3
High-quality V2 2.67 bpw EXL3 quantization of thinkingmachines/Inkling-2-Mini with a bundled NVFP4-4/6 DFlash2 r4 speculative drafter (10.08 GB / 9.39 GiB all-in): full VLM built for exact 0-ULP Apple Silicon Metal execution 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.67 bpwall-mcgEXL3 experts → exact128x128Block-FP8 dense/unembed,EXL3-K4embeddings, &NVFP4-4/6vision → mixed-length (1K/4K/8K) KL healing against the official release - Bundled Drafter: incoai/Inkling-2-Mini-DFlash2 →
NVFP4-4/6QATDFlash2 r4fine-tuned on this V2 trunk +32Kvocabulary shortlist (297.7 MBweights /284 MiBbundled inside this repo)
At a Glance
| All-In Size | Params | Std 6-Dom KLD | Top-1 / Top-5 | Context |
|---|---|---|---|---|
10.08 GB (9.39 GiB) |
26.4B (5.4B eff.) |
0.0520 (-11.9%) |
93.42% / 99.52% | 76.8K (1M win.) |
Decode (M5 Ultra 64c, Think ON, 0-ULP, tok/s) |
Code | Prose | Chat | Pooled |
|---|---|---|---|---|
| 1-Stream Decode (excl. TTFT) | 251.7 | 170.6 | 151.7 | 184.2 |
| 8-Stream Aggregate (total / wall) | 667.3 | 518.5 | 513.5 | 561.4 |
| 8-Stream / Stream (median / user) | 99.8 | 82.0 | 75.2 | 85.5 |
| Cold Prefill (Zero Cache, 0-ULP) | 2K (2,048 tok) |
8K (8,192 tok) |
32K (32,768 tok) |
|---|---|---|---|
Prompt Speed (tok/s) |
5,462 (6,001 @ 2,571) |
6,214 | 5,708 |
Model Specs
| Property | Value |
|---|---|
| All-In Footprint | 10.08 GB (9.39 GiB): 8.14 GB EXL3 experts + 1.42 GB Block-FP8 dense & EXL3-K4 embeddings + 0.18 GB NVFP4-4/6 vision encoder + 0.30 GB (297.7 MB weights + 32K shortlist) bundled DFlash2 r4 + 0.04 GB tokenizer/config (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.67 bpw effective (2.64 bpw nominal trellis) single-codebook mcg EXL3 (5,888 K=3 including all 12 non-looped down_proj layers + all looped L07..17; 3,328 K=2; 24/24 layers share suh rotation scales) |
| Dense, Embed & Vision | 145 exact 128x128 Block-FP8 dense/unembed linears + EXL3-K4 mcg embeddings (23.44 dB SQNR) + 140 NVFP4-4/6 vision linears (>= 21.16 dB SQNR), KL-healed against the official checkpoint |
| Speculative Drafter | Bundled NVFP4-4/6 DFlash2 r4 (297.7 MB model.safetensors, 37 NVFP4 linears + NVFP4-4/6 codebooks) + 32,768-token shortlist, auto-loaded with zero flags |
| Context Window | 1,048,576 tokens configured (76,884-token needle-in-a-haystack verified passing; automatic RAM-aware sizing for 16 GB, 24 GB, 36 GB, and 96+ GB Macs) |
| Runtimes | TensorFold v1.3.8+ official release on Apple Silicon Metal (M1-M6, zero env vars); universal EXL3 format compatible with NVIDIA |
How This Build Was Made
- Zero-Bandwidth Reallocation (
-531.7 MBinto2.67 bpwEXL3 Experts): Converting lookup-only embeddings toEXL3-K4 mcg(-245.6 MB), vision linears toNVFP4-4/6(-138.1 MB), andDFlash2 r4codebooks toNVFP4-4/6(-148.0 MB) freed over half a gigabyte with zero decode bandwidth tax. That budget upgraded all1,536non-loopeddown_projexpert matrices (L00..05,L18..23) fromK=2toK=3 mcg, raising experts to2.67 bpw(5,888K=3,3,328K=2) while shrinking all-in disk size to10.08 GB. - Exact Native
128x128Block-FP8 Dense & Unembed: All145dense attention projections andunembed.weightexecute in exact128x128OCP E4M3FN Block-FP8 with FP32 accumulation in Metal (zero lossy dense Q8 fallback, zero BF16 expansion). - Mixed-Length (
1K/4K/8K) KL Healing +24/24Sharedsuh: Teacher-forced KL distillation against the official checkpoint on a zero-eval-overlap1K/4K/8Kcurriculum (65%1K6-domain + 35%4K/8Kmulti-turn agentic/tool trajectories) cut Standard 6-Domain KLD-11.9%vs V1 (0.0591 -> 0.0520, Top-192.58% -> 93.42%) and Agentic131KKLD-6.2%(0.1508 -> 0.1413), while keeping24/24sharedsuhinput rotation scales intact. - Student-Aligned
297.7 MBNVFP4-4/6DFlash2 r4Drafter: QAT fine-tuned directly on this V2 trunk from incoai/Inkling-2-Mini-DFlash2 with a refreshed32Kshortlist (3.79 tok/rndholdout,4.93on code). Strictly lossless (0unequal tokens vs--drafter noneacross greedy and keyed Gumbel-coupled sampled decoding). - Strictly 0-ULP Apple Silicon Metal Kernels (Default-On): Shipped in TensorFold
v1.3.8(PRs#5610+#5882) with hoisted EXL3 decode/prefill, native exact Block-FP8 NAX kernels, bundled DFlash2, and automatic 16/24/36/96+ GB sizing with zeroTF_*flags; follow-on 0-ULP speed and-2.01 GBprompt scratch RAM PRs (#5791,#5897,#5905) are queued forv1.3.9.
Speed Benchmarks (Apple M5 Ultra, 64-Core GPU)
Measured on an isolated Apple Mac Studio M5 Ultra (64-core GPU, 96 GiB) running tensorfold-native (#5610 + #5791; v1.3.8 ships #5610 + #5882 out of the box and #5791 is queued for v1.3.9) with zero TF_* environment variables, exact 0-ULP Block-FP8 NAX (9.72 GiB text RSS, 10.48 GiB --vision, 0 unequal vs --drafter none).
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 tok/rnd |
|---|---|---|---|---|---|
Decode (n=1) & System Aggregate (n=2..8) |
|||||
| Code | 251.7 | 343.2 | 483.9 | 667.3 | 4.70 |
| Prose | 170.6 | 221.6 | 343.5 | 518.5 | 3.15 |
| Chat | 151.7 | 214.4 | 349.1 | 513.5 | 2.84 |
| Pooled | 184.2 | 250.5 | 385.5 | 561.4 | 3.43 |
Per-Stream Decode (median tok/s / user) |
|||||
| Code | 232.6 | 184.9 | 140.4 | 99.8 | 8/8 exact |
| Prose | 163.8 | 135.9 | 107.0 | 82.0 | 8/8 exact |
| Chat | 152.1 | 119.4 | 95.9 | 75.2 | 8/8 exact |
| Pooled (24-req median) | 167.9 | 142.2 | 110.6 | 85.5 | 24/24 exact |
Cold Prefill (tok/s, Fresh Server, Zero Prompt Cache)
| Bucket | Actual Tokens | Cold Prefill (tok/s) |
Decode (tok/s) |
|---|---|---|---|
| 2K | 2,048 (2,571) |
5,462 (6,001) |
181.1 (307.7) |
| 8K | 8,192 |
6,214 | 121.1 |
| 32K | 32,768 |
5,708 | 90.7 |
| 64K | 65,536 |
5,015 | 89.3 |
Additional Speed Receipts: Concurrent Serve (`1,213 tok/s`), `76.8K` Needle, and Live `--vision`
Standard Concurrent Serve (bench_concurrent.py, T=0.0, 12/12 Cells, 0 Unequal vs Plain)
| Prompt | S=1 (tok/s) |
S=4 Agg |
S=8 Agg |
S=8 Per-Stream |
|---|---|---|---|---|
| Code | 227.8 | 693.9 | 1,029.6 | 137.1 |
| Chat | 206.0 | 739.3 | 1,213.4 | 151.8 |
76.8K Needle & Live --vision (140 NVFP4-4/6 Vision Linears)
| Benchmark | Mode | Prefill / TTFT | Decode (tok/s) |
Verification |
|---|---|---|---|---|
Needle 76.8K |
76,884 tok |
4,661 tok/s | 138.9 | Exact needle PASS |
Live --vision |
Greedy T=0.0 |
0.45s |
206.9 (2.42x) |
Bit-exact vs plain |
Live --vision |
Sampled T=0.8 |
0.49s |
160.9 (1.95x) |
Bit-exact vs plain |
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.0520 | 93.42% | 99.52% |
Agentic Medium (4 × 8K) |
32,768 | 0.0391 | 94.53% | 99.66% |
Agentic Long (2 × 16K + 2 × 32K) |
98,304 | 0.1754 | 92.88% | 98.88% |
Agentic Pooled (8K / 16K / 32K) |
131,072 | 0.1413 | 93.30% | 99.07% |
| Full 8-Domain Token-Weighted | 229,376 | 0.1031 | 93.35% | 99.26% |
Standard 6-Domain student perplexity is 4.789 (official reference 4.773); Agentic 131K student perplexity is 2.662 (official reference 2.722); Full 8-Domain student perplexity is 3.424 (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.0127 | 96.76% | 99.98% |
| Wiki | 18,432 | 0.0331 | 92.83% | 99.78% |
Agentic Medium (8K) |
32,768 | 0.0391 | 94.53% | 99.66% |
| Multilingual | 12,288 | 0.0472 | 90.68% | 99.72% |
| Code | 24,576 | 0.0500 | 96.09% | 99.60% |
| Chat | 24,576 | 0.0714 | 92.28% | 99.20% |
| Self / Identity | 6,144 | 0.1281 | 87.87% | 98.44% |
Agentic Long (16K / 32K) |
98,304 | 0.1754 | 92.88% | 98.88% |
How to Run
Quick Start on Apple Silicon (TensorFold v1.3.8+)
- Official TensorFold Release (
v1.3.8+, ready out of the box, zero env vars): ashhart/TensorFoldv1.3.8(ships#5610+#5882; follow-onv1.3.9speed/RAM PRs:#5791,#5897,#5905) - Quantization, KL Healing & Float64 Eval Repo: grantoverton/Inkling-2-Mini-EXL3
# 1. Install or upgrade TensorFold v1.3.8+ (prebuilt Apple Silicon binary; no Zig/Xcode/Python required)
brew install ashhart/tensorfold/tensorfold # or: brew upgrade tensorfold
# 2. Download the all-in V2 checkpoint (10.08 GB, includes bundled NVFP4-4/6 DFlash2 r4 + 32K shortlist)
hf download grant-ai/Inkling-2-Mini-EXL3 --local-dir ~/models/Inkling-2-Mini-EXL3
# 3. Serve on an OpenAI-compatible endpoint (DFlash2 + Metal fast paths load automatically)
tensorfold serve ~/models/Inkling-2-Mini-EXL3 --port 8080 --vision
Automatic sizing across 16-96+ GB Macs: Zero
TF_*environment variables are required. TensorFoldv1.3.8+automatically sizes prefill chunks (128/512/4096), KV margins, and stream-state lane caps to available host RAM (omit--visionon 16 GB Macs for maximum context, or pass--parallel 8on 24 GB+ Macs). Prebuiltmacos-arm64archives are also available directly on the v1.3.8 release page.
NVIDIA / Universal EXL3 Compatibility
Expert weights use standard EXL3 trellis encoding (exl3-layer-*.safetensors) alongside 128x128 Block-FP8 dense tensors (dense-00001.safetensors) and NVFP4-4/6 vision weights (dense-00002.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 bundledNVFP4-4/6DFlash2 r4drafter.
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
- 1,500
