Inkling-2-Mini-Q3 (18×Q3_G64 + 6×Q2_G64 for warpgrid)

A compact, native 3.25-bpw hybrid (18×Q3_G64 + 6×Q2_G64) quantization of thinkingmachines/Inkling-2-Mini engineered for 16 GB Apple Silicon Macs (e.g., Apple M4 Mac mini, 11.84 GiB GPU working set) using the standalone C++20/Metal warpgrid inference engine — achieving 90.0% HumanEval Pass@1 (93.8% coding retention vs the 18 GiB original) and token-for-token identical Canary 323 reasoning.

Quantization Scheme (18×Q3_G64 + 6×Q2_G64 + Activation imatrix)

  • 18 MoE Layers (L0–L6, L11–L12, L15–L23): Quantized to 3.5-bpw asymmetric group-64 3-bit (Q3_G64) using a bit-split 2+1 layout (16 B low-2b + 8 B high-1b + 2 B FP16 scale + 2 B FP16 min = 28 B / 64 weights), weighted by an 8,192-token coding+docs activation imatrix (w13) via alternating Lloyd-Max refinement.
    • Protects the entire prelude (L0–L5), loop entry/mid/exit (L6, L11–12, L15–17), and full coda (L18–L23, originally MXFP8 on L20–L23).
  • 6 Interior Loop MoE Layers (L7–L10, L13–L14): Quantized to 2.5-bpw asymmetric group-64 2-bit (Q2_G64) with the same 8,192-token w13 activation imatrix + Lloyd-Max solver.
  • Vision tower (model.vision.*): Dropped (~1.1 GiB saved on disk) since warpgrid is a text-only inference engine.
  • Attention, Loop Controllers, Embeddings, Norms & Router: Preserved in original precision (dense projections quantized on-the-fly to W8A16 FP8 E4M3 at load time; BF16 dense copies and unembed_w automatically released on < 24 GiB GPUs).

Capability Benchmarks (HumanEval Pass@1 — Coding)

Evaluated on the first 50 problems of openai/openai_humaneval with greedy decoding (temperature=0.0, max_tokens=2048), executed against OpenAI's official unit tests:

Model Size on Disk HumanEval Pass@1 (50) Coding Retention Canary 323
Original (NVFP4/MXFP8) 18.0 GiB 48 / 50 (96.0%) 100.0% Baseline
Q3 (18×Q3_G64 + 6×Q2_G64, this model) 12.85 GiB 45 / 50 (90.0%) 93.8% Token-for-token identical

Performance on Apple M4 Mac mini (16 GB, 99.22 GB/s)

Uncontended measurements on a 16 GB Apple M4 Mac mini (--max-slots 1 --max-chunk 256 \ --max-seq-len 16384):

Configuration Throughput Peak Footprint Notes
llama-server (UD-IQ2_XXS.gguf, 7.9 GiB) 16.1 tok/s — Baseline (14 GGML formats)
warpgrid Q3 (Raw) 20.64 tok/s 13.40 GiB Canary 323 token-exact (48.46 ms/tok)
warpgrid Q3 + DFlash 2 (k=6, Canary 323) 20.65 tok/s 13.76 GiB mean_a = 4.00, ~2.19 GiB free pages
warpgrid Q3 + DFlash 2 (k=6, Python coding) 25.45 tok/s 13.76 GiB +58% vs llama-server, mean_a = 4.65 tok/step (61.3% accept)

Quick Start (warpgrid)

Download the prebuilt macOS Apple Silicon binary from GitHub Releases (v0.2.4) (or build from source via git clone https://github.com/cglab-public/warpgrid.git && cd warpgrid && make -j):

# Download prebuilt warpgrid binary (macOS 15+, Apple Silicon arm64, zero Python/PyTorch/MLX)
curl -fL https://github.com/cglab-public/warpgrid/releases/download/v0.2.4/warpgrid-v0.2.4-macos-arm64.tar.gz | tar -xz

# Download and serve on a 16 GB Apple Silicon Mac
hf download cglab-org/Inkling-2-Mini-Q3-warpgrid --local-dir ./Inkling-2-Mini-Q3
./warpgrid \
  --model ./Inkling-2-Mini-Q3 \
  --max-slots 1 \
  --max-chunk 256 \
  --max-seq-len 16384 \
  --port 8888

# With DFlash 2 speculative decoding (fits on 16 GB Macs at ~13.76 GiB peak)
hf download incoai/Inkling-2-Mini-DFlash2 --local-dir ./Inkling-2-Mini-DFlash2
./warpgrid \
  --model ./Inkling-2-Mini-Q3 \
  --dflash2 ./Inkling-2-Mini-DFlash2 \
  --draft-k 6 \
  --max-slots 1 \
  --max-chunk 256 \
  --max-seq-len 16384 \
  --port 8888

Tensor Layout

  • Q3_G64 layers (w13 & w2): *_q3_lo (U8, 4×2b/byte), *_q3_hi (U8, 8×1b/byte), *_q3_scale (F16, group-64), *_q3_min (F16, group-64). Dequant: w = ((lo | (hi << 2)) * scale) + min.
  • Q2_G64 layers (w13 & w2): *_q2_weight (U8, 4×2b/byte), *_q2_scale (F16, group-64), *_q2_min (F16, group-64). Dequant: w = (q * scale) + min.
Downloads last month
88
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for cglab-org/Inkling-2-Mini-Q3-warpgrid

Quantized
(349)
this model