jakemannix's picture
Add model card
ae85d86 verified
|
Raw History Blame Contribute Delete
5.77 kB
metadata
base_model: thinkingmachines/Inkling-2-Mini
tags:
  - gguf
  - inkling2
  - moe
  - looped-transformer
  - quantization
  - pruning
  - apple-silicon
  - metal
license: apache-2.0

Inkling-2-Mini Compressed GGUF Collection

Compressed GGUF builds of thinkingmachines/Inkling-2-Mini (26B looped MoE: 24 physical layers = 48 logical passes via 3× looping on layers 6–17, 128 experts, FF=1152) targeting 16 GB Apple Silicon Macs (M1–M5) and < 12 GiB / < 8 GiB VRAM GPUs, with native Metal support in both llama.cpp and our fork jakemannix/erisinky (feat/m1-m4-and-compressed-models, including M1–M4 support, native Q2_K/Q3_K kernels, DSpark speculative decoding, and Kv256kPool .ikv long-context cartridges).

Recommended Picks

  • Best Sub-8 GiB / 16 GB Mac Champion (7.74 GiB) ⭐: Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf
    • 87.19% 4-task screen (82.92% 3-task macro: 87.5% HE+, 72.9% MBPP+, 88.3% xLAM, 12/12 AgentBench with only 1 tool error) — outscores 8.36 GiB GSQ-RCO-IQ2_S (87.03%, 8 err) and virtually ties 9.88 GiB GSQ-RCO-IQ3_XXS (87.29%, 7 err) while running natively in erisinky at ~77 tok/s on M4 Max (~8.4 GiB total RAM with Kv256kPool WHT-KV4 sparse 256K).
  • Best Sub-10 GiB (9.80 GiB) ⭐: Inkling-2-Mini-FF1024-ZS-imatrix-Q3_K.gguf (or Healed-imatrix-Q3_K.gguf)
    • 83.51% / 83.11% full 308-task shootout (within 0.2–0.6 pp of stock 16.28 GiB Q4_K_M's 83.74%), ~71 tok/s standalone (~85+ tok/s with DSpark) on M4 Max.
  • Experimental QAD Coding/DSpark Build (7.74 GiB): Inkling-2-Mini-FF1024-QAD-Q2_K.gguf
    • $5.36 (565K-token) Quantization-Aware Distillation pilot exported with unweighted make_qkx2_quants (matching the QAD STE grid). Sets the highest coding average (83.1%: 89.1% HE+, 77.1% MBPP+) of any Q2_K build and lifts DSpark acceptance on code_avl by +45% (2.86 → 4.16), with a minor trade-off on tool/agentic (83.3% xLAM, 11/12 AgentBench) vs the imatrix-calibrated champion above.

Method

  1. SwiGLU Neuron Width Slicing (FF: 1152 → 1024): Removes the least salient 11.1% of per-expert SwiGLU neurons using activation-weighted down-projection saliency (|act| * ||W_down||), keeping all 24 physical layers and all 128 experts intact and aligning FF = 1024 = 4 × 256 for native Q2_K/Q3_K super-blocks (-11.1% expert parameters, zero-shot KL = 0.0176 vs BF16 teacher).
  2. Targeted ImMatrix Quantization: Preserves sensitive dense attention projections (Q4_K, attn_v at Q6_K), embeddings (Q4_K), and lm_head (Q6_K) while quantizing MoE experts with importance-matrix calibration (Q3_K or Q2_K).
  3. Frozen-Dense Expert-Only Healing (Healed): On-policy Forward-KL distillation (0.72M tokens, all dense layers/norms/routers/convs frozen to avoid any regression on short-conv/loop gates).

Available Files & Benchmarks

Full 308-Task Shootout (164 HE+, 64 MBPP+, 80 xLAM, 12 AgentBench; effort="low", temp=0)

File Size Architecture Experts HE+ (164) MBPP+ (64) xLAM (80) 3-Task Mean AgentBench (12) M4 Max erisinky
Stock Q4_K_M (reference) 16.28 GiB 24L × 128E × FF1152 Q4_K / Q5_0 88.4% 82.8% 80.0% 83.74% 12/12 (0 err) 85.5 tok/s
Inkling-2-Mini-FF1024-ZS-imatrix-Q3_K.gguf ⭐ 9.80 GiB 24L × 128E × FF1024 Q3_K 90.8% 79.7% 80.0% 83.51% 12/12 70.9 tok/s
Inkling-2-Mini-FF1024-Healed-imatrix-Q3_K.gguf 9.80 GiB 24L × 128E × FF1024 Q3_K 89.6% 79.7% 80.0% 83.11% 11/12 (0 err) 70.0 tok/s

Sub-8 GiB Screen (64 HE+, 48 MBPP+, 60 xLAM, 12 AgentBench; effort="low", temp=0, 0 server cancels)

File Size Architecture Experts HE+ (64) MBPP+ (48) xLAM (60) 3-Task Macro AgentBench (12) 4-Task Composite M4 Max erisinky
Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf ⭐ 7.74 GiB 24L × 128E × FF1024 Q2_K (imatrix) 87.5% 72.9% 88.3% 82.92% 12/12 (1 err) 87.19% 77.0 tok/s
Inkling-2-Mini-FF1024-QAD-Q2_K.gguf (exp. QAD) 7.74 GiB 24L × 128E × FF1024 Q2_K (QAD uncal) 89.1% 77.1% 83.3% 83.16% 11/12 (3 err) 85.28% 77.0 tok/s
Inkling-2-Mini-FF1024-ZS-imatrix-Q2_K.gguf 7.74 GiB 24L × 128E × FF1024 Q2_K (imatrix) 92.2% 64.6% 86.7% 81.15% 11/12 (5 err) 83.78% 77.0 tok/s
Inkling-2-Mini-96E-FF1024-Healed-imatrix-Q3_K.gguf 7.62 GiB 24L × 96E × FF1024 Q3_K (imatrix) 85.9% 60.4% 81.7% 76.00% 12/12 (1 err) 82.01% 71.3 tok/s

Running Locally

With llama.cpp

llama-server -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf --jinja -c 16384 -ngl 99

With erisinky (M1 / M2 / M3 / M4 / M5, native Q2_K/Q3_K + Tree-DSpark + Kv256kPool)

Use jakemannix/erisinky branch feat/m1-m4-and-compressed-models:

# Single-stream with native Q2_K kernels (~77 tok/s standalone on M4 Max; fits 16 GB M1-M4 Macs!)
./target/release/inkling run \
  -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf \
  -c 16384 --effort low -p "Write a Rust ring buffer."

# Long-context sparse 256K pool (WHT-KV4, ~8.4 GiB total RAM on 16 GB M1-M4 Macs)
./target/release/inkling bench-256k \
  -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf