Inkling-2-FlashPin-26B-GGUF

Unlooped 1-Pass + Hot-40 Pinned Cache-Aware Streaming + ARM64 i8mm quantization of a 26.4B-parameter, 128-expert MoE model โ€” running at 21โ€“23.4 tok/s sustained (18.4 tok/s under 3-topic domain switching) on an iPhone 15 Pro CPU, with all 128/128 experts intact, 8K Q8_0 context, exact 200K vocabulary, < 4.4 GB peak RAM, and nominal โ†’ nominal thermals.

Important Model Lineage & Scope Notes:

  1. This checkpoint is derived from thinkingmachines/TML-d24-varloop-research (the variable-loop 26.4B research sibling of Inkling 2), not the fixed 3-pass Inkling 2 Mini checkpoint.
  2. It is distilled and calibrated for 1 loop pass, top-4 experts (-passes 1 -k 4), while retaining all 128/128 experts (zero experts pruned).
  3. Experts are reordered per layer so the top-40 hot experts live at indices 0..39 for permanent RAM pinning (GGML_MMID_PIN_N=36..40), while cold experts 40..127 stream from NVMe flash on demand.
  4. Requires the opt-in llama.cpp patch in kevindechang/inkling-ios (against llama.cpp @ 8a97fa98 / b12628) for 1-pass override, Hot-40 expert pinning, paired-down async overlap, CECAR, and custom ARM64 NEON/i8mm kernels.

Files

File Size SHA-256 Quant Mix (128/128 Experts Intact)
inkling2-26b-flashpin-1p-hot40-q2k-i8mm.gguf 10,080,548,288 B (9.39 GiB) 6d856056c0ff323711a487233dc5c63425f1896547803c38aac6c5f39d2acf09 gate_up: 23ร— Q2_K + L23 Q4_K; down: 11ร— Q2_0 + 10ร— Q4_0 + 3ร— IQ4_NL; routers: Q8_0; attention: Q4_K/Q5_K/Q6_K/Q8_0; output: Q4_K; token_embd: IQ4_XS
inkling2-26b-flashpin-v2-1p-hot40-q2k-i8mm.gguf (v2 quality update) 10,080,548,288 B (9.39 GiB) 9b6b87fdb8fa01deb3b69ffbee6e59b98ecea65b1f3305d5fbb9db3d3bebc351 Same exact tensor layout, 128/128 experts intact, Hot-40 order preserved; retrained with QAT working-set distillation (qat40pareto, 220 steps)

(Optional zero-repack layout: run tools/prerepack_exps --pack from inkling-ios locally to rewrite the 48 expert tensors in-place at the exact same file size for GGML_MMID_PREREPACKED=1; reversible via --unpack back to the exact SHA-256 above.)


iPhone 15 Pro Speed (v35, Exact 200K Head, 8K Q8_0 KV)

Prepack=0 rows (v35a, v35d, v35_mix) run directly on this published byte-exact GGUF (SHA-256: 6d856056...2acf09); Prepack=1 rows (v35f, v35f_mix, v35g) run on its logically equivalent, bit-reversible offline-repacked layout (tools/prerepack_exps --pack, exact same file size, reverses cleanly back to 6d856056...2acf09). Measured on an iPhone 15 Pro (A17 Pro, 6 GiB increased-memory-limit entitlement, -t 2 -tb 4 -ub 64 -passes 1 -k 4 -c 8192 -ctk q8_0 -ctv q8_0, GGML_SITU_FAST=accel, LLAMA_LM_HEAD_SHORTLIST=off). Note: [warm_ttft] times warm 40-token prompt prefill through computing the final prompt token's greedy logit (llama_batch_get_one) on a warm expert cache; it excludes ~0.1 ms detokenization and cold load. All raw per-token logs and prompt files are published in inkling-ios/eval/results/iphone15pro_v35/.

Run Prompt / Gen Cache / Pin / Route Prepack Zero-Miss Med / Mean Sustained tok/s Warm Prefill / 1st-Logit (40t) Peak / Steady RAM Thermal
v35a p_math (66t) / 200 2700 / 36 / OPT ฮป=0.95 0 31 ms 39 / 43 ms 23.43 0.978 s 4,081 / 3,945 MB nominal โ†’ nominal
v35d p_math (66t) / 200 2950 / 40 / CECAR=0.35 0 34 ms 42 / 46 ms 21.78 0.761 s 4,334 / 4,187 MB nominal โ†’ nominal
v35f p_math (66t) / 375 (EOG) 2700 / 36 / OPT ฮป=0.95 1 34 ms 43 / 47 ms 21.20 1.133 s 4,062 / 3,927 MB nominal โ†’ nominal
v35f_mix v34_mix (127t, 3 topics) / 400 2700 / 36 / OPT ฮป=0.95 1 36 ms 52 / 54 ms 18.36 1.126 s 3,975 / 3,922 MB nominal โ†’ nominal
v35_mix v34_mix (127t, 3 topics) / 200 2700 / 36 / OPT ฮป=0.95 0 34 ms 55 / 57 ms 17.46 1.038 s 3,990 / 3,933 MB nominal โ†’ nominal
v35g (opt lossy head) p_math (66t) / 200 2700 / 36 / OPT ฮป=0.95, margin (26,1) 1 26 ms 37 / 42 ms 23.62 1.131 s 4,094 / 3,954 MB nominal โ†’ nominal

Quality (N=80 Deterministic Subset โ€” Raw Predictions Published)

Measured on this exact published GGUF (prepack=0) across 80 deterministic code-scored items (15 GSM8K-Hard, 10 MATH-500, 10 Logic, 10 GPQA Diamond, 20 BFCL, 15 IFEval; coding and obscure trivia excluded). Aggregate JSONs and all 480 raw per-example predictions (*_replies.jsonl) live in inkling-ios/eval/results/quality_80item/. (Reference 3-pass row only reports matched per-task scores for GSM8K, BFCL, and IFEval.)

Routing Mode (prepack=0 GGUF) Think Cap / Effort GSM8K-Hard MATH-500 Logic GPQA BFCL IFEval 6-Task Mean (N=80) Avg Think Cache Hit (3000 MB)
CECAR=0 (c000_sc320, max quality) cap=320, e=0.20 60.0% (9/15) 30.0% (3/10) 10.0% (1/10) 10.0% (1/10) 80.0% (16/20) 66.7% (10/15) 59.3% 245 75.3%
OPT ฮป=0.95 (opt95_e045, v35a route) uncapped, e=0.45 73.3% (11/15) 30.0% (3/10) 20.0% (2/10) 20.0% (2/10) 75.0% (15/20) 46.7% (7/15) 53.9% 761 90.6%
OPT ฮป=0.95 (opt95_e020, v35a route) uncapped, e=0.20 80.0% (12/15) 40.0% (4/10) 20.0% (2/10) 0.0% (0/10) 60.0% (12/20) 60.0% (9/15) 53.3% 774 91.8%
OPT ฮป=0.85 (opt85_sc320) cap=320, e=0.20 60.0% (9/15) 30.0% (3/10) 10.0% (1/10) 30.0% (3/10) 60.0% (12/20) 60.0% (9/15) 51.9% 250 90.2%
OPT ฮป=0.95 (opt95_sc320, concise) cap=320, e=0.20 73.3% (11/15) 30.0% (3/10) 10.0% (1/10) 30.0% (3/10) 60.0% (12/20) 46.7% (7/15) 48.9% 249 92.2%
CECAR=0.35 (v35d route) cap=384 73.3% (11/15) 30.0% (3/10) 6.7% (1/15) 26.7% (4/15) 70.0% (21/30) 55.0% (11/20) โ€” 351โ€“381 95.3โ€“96.5%

Honest Quality Note: Quality on multi-step Logic (10โ€“20%, N=10), GPQA (0โ€“30%, N=10), and MATH-500 (30โ€“40%, N=10) remains the primary gap from cutting 3 loop passes โ†’ 1 pass + Q2_K quantization, and small N=10 subsets carry wide variance. CECAR routing bias cuts NVMe flash misses by ~3ร— (enabling 21โ€“23.4 tok/s on iPhone 15 Pro), but reduces strict tool-call JSON accuracy (BFCL 80% โ†’ 60โ€“75%). On short tool-calling turns (20โ€“50 output tokens), disabling CECAR (GGML_MMID_CECAR_BONUS=0) recovers 80.0% BFCL and 66.7% IFEval on the exact same file.


v2 Quality Update (inkling2-26b-flashpin-v2-1p-hot40-q2k-i8mm.gguf, Mac-measured, iPhone pending)

v2 keeps the exact v1 file size, tensor layout, Hot-40 ordering, and runtime, and retrains on top of the shipped quantized weights via QAT working-set distillation (qat40pareto, 220 steps, $12.51 Spot). Full details, training curves, Mac logs, and raw per-example predictions live in inkling-ios/docs/V2.md.

Scope note: Every iPhone 15 Pro speed row above was measured on v1 (6d856056...). v2 has not been benchmarked on the iPhone yet; all v2 numbers below were measured on a Mac (Apple M4 Pro, CPU-only, patched llama.cpp).

Model / Arm (N=80, effort 0.45, uncapped) Route (cache / pin) GSM8K-Hard MATH-500 Logic GPQA Reas (45) BFCL IFEval Mean Cache Hit
v1 opt95_e045 OPT ฮป=0.95 (3000 / 32) 73.3% (11/15) 30.0% (3/10) 20.0% (2/10) 20.0% (2/10) 40.0% 75.0% (15/20) 46.7% (7/15) 53.9% 90.6%
v2 v2_c000_e045 CECAR=0 (2950 / 40) 80.0% (12/15) 40.0% (4/10) 50.0% (5/10) 20.0% (2/10) 51.1% 65.0% (13/20) 53.3% (8/15) 56.5% 80.8%
v2 v2_opt95_e045 OPT ฮป=0.95 (2700 / 36, v35a route) 73.3% (11/15) 40.0% (4/10) 40.0% (4/10) 10.0% (1/10) 44.4% 55.0% (11/20) 66.7% (10/15) 55.4% 95.9%
  • Sample sizes are small (N=10 each for MATH-500, Logic, GPQA); full N=236 eval and live iPhone 15 Pro v36 telemetry on v2 are still pending.
  • On Mac under identical OPT ฮป=0.95 settings (2700 / 36), v2 reads 11.3 / 11.9 expert slices/tok on p_math / v34_mix vs 10.8 / 13.1 for v1.

Method Summary (FlashPin-1P)

  1. 1-Pass K=4 Self-Distillation: LoRA + router co-adaptation against the 3-pass K=8 BF16 teacher, merged cleanly from streamed BF16 via HTTP Range + official imatrix (zero double-quantization).
  2. KL-Optimal Latency-Aware Quantization + i8mm Upgrades: Mixed Q2_K/Q4_K gate_up, Q2_0/Q4_0/IQ4_NL down, Q8_0 routers, and Q4_Kโ€“Q8_0 attention tailored to the A17 Pro i8mm roofline.
  3. Hot-40 Pinning + Paired-down Async Overlap + Per-Layer CECAR: Top-40 experts pinned at indices 0..39; cold safety-net experts stream via F_NOCACHE parallel pread overlapped with gate_up compute.
  4. Lossless ARM64 NEON / Accelerate Kernels: Zero-bloat NEON 4ร—4 repacking/GEMV, tiled 64-tok GQA Q8_0 Flash-Attention, batched repacked MoE GEMM, IEEE zero-ULP row-broadcast NEON ADD/SUB/MUL/DIV, Apple Accelerate fused SiTU, and -ub 64 compute-buffer halving (242.7 โ†’ 121.4 MiB).

Quickstart

Full build instructions, llama.cpp patch (8a97fa98), and iPhone devicectl runner scripts are in https://github.com/kevindechang/inkling-ios:

# Example macOS / iOS CLI flags (requires patched llama.cpp from kevindechang/inkling-ios):
INKLING_ALLOW_ONE_PASS=1 INKLING_GREEDY_SKIP_SOFTCAP=1 GGML_SITU_FAST=accel \
GGML_MMID_CACHE_MB=2700 GGML_MMID_PIN_N=36 GGML_MMID_OVERLAP=1 GGML_MMID_REPACK=1 \
GGML_MMID_LRU=1 GGML_MMID_IO_THREADS=4 GGML_MMID_CECAR_PREFILL=1 GGML_MMID_CECAR_BONUS=1.0 \
GGML_MMID_CECAR_LAYERS="0.18,0.29,0.29,0.33,0.33,0.44,0.12,0.21,0.21,0.21,0.25,0.15,0.18,0.12,0.15,0.21,0.44,0.00,0.38,0.29,0.21,0.25,0.50,0.18" \
LLAMA_LM_HEAD_SHORTLIST=off \
  gen -m inkling2-26b-flashpin-1p-hot40-q2k-i8mm.gguf \
  -ngl 0 -t 2 -tb 4 -ub 64 -passes 1 -k 4 -lm none -lzm on -c 8192 -ctk q8_0 -ctv q8_0 -n 200

License

Apache 2.0 (matching thinkingmachines/TML-d24-varloop-research).

Downloads last month
735
GGUF
Model size
26B params
Architecture
inkling2_loop
Hardware compatibility
Log In to add your hardware

We're not able to determine the quantization variants.

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for kevinexus/Inkling-2-FlashPin-26B-GGUF

Quantized
(7)
this model