Inkling-2-Mini-HTR-SO4

SO4-3.00 (3.000 bits-per-weight) HTR quantized checkpoint of thinkingmachines/Inkling-2-Mini (24 physical -> 48 logical looped layers, 128xTop-8 sparse MoE, BlockAttnRes, MessageGate, hybrid static/dynamic ShortConv + SWA/global GQA) built for zero-GPU inference on AMD XDNA2 (Strix Halo) NPUs + Zen 5 CPUs.

Measured Performance & Fidelity (AMD Strix Halo, Wave 6 Engine, Zero GPU)

Metric Value
Format HTR-XDNA-SO4-3.00 (L=11, 16 KiB vldb.4x32 LUT, 3.000 BPW, unified XDNA2 NPU + AVX-512 VNNI slab)
Architecture 24 physical / 48 logical looped layers, 128xTop-8 MoE (H=2304, I_moe=1152, V=200,704)
Total Checkpoint Size 10.6 GiB (weights_moe_L*.bin + weights_moe_tail_L*.bin + weights_dense_so4.bin + embed_tokens.bf16.bin + params_inkling2.npz)
Logit Fidelity vs BF16 Ref cos_sim = 0.996785, exact top-1 match (200001), 0.000000 NPU determinism
Cold Prefill (N = 1,879, HTTP) 722.0 tok/s (2,602.5 ms)
Cold Prefill (N = 919, HTTP) 669.8 tok/s (1,372.1 ms)
Warm Repeat TTFT (832/838 cached) 102.6 ms (14.8x faster via 16-token Radix Prefix Cache + ShortConv snapshots)
Single-User Decode (B = 1, SSE) 20.3 - 23.6 tok/s (0.0% idle CPU, zero GPU touch)
Lossless Speculative Decode (M = 8) 52.3 tok/s (verbatim / high-repetition workloads)
Concurrent Burst (B = 8, HTTP) 59.2 tok/s E2E aggregate, 734 ms max burst TTFT (2.26x faster 8x64 burst via Multi-Slot Batched Prefill)
Paged INT8 KV Cache (vpdpbusd) 3.14 GiB for 32,768 cached tokens across 48 logical layers (1.91x smaller than BF16 KV)
Features Native <think> reasoning toggle, tool calling, OpenAI /v1/chat/completions & /v1/completions SSE streaming, multi-slot batched prefill, continuous batching (B=1..8)

Checkpoint Contents

  • weights_dense_so4.bin (381 MiB): SO4-3.00 quantized dense projections (wq, gate_attn, wk, wv, wo_ud_top, lm_head_0, lm_head_1)
  • weights_moe_L00.bin .. weights_moe_L23.bin (24 x 336 MiB): SO4-3.00 quantized MoE top slabs (2048-row aligned for zero-copy XDNA2 NPU so4_pf256/so4_pf512 dispatch)
  • weights_moe_tail_L00.bin .. weights_moe_tail_L23.bin (24 x 42 MiB): SO4-3.00 quantized MoE tail rows (2048..2303)
  • scales_moe_L00.bin .. scales_moe_L23.bin, wsum_moe_L00.bin .. wsum_moe_L23.bin, wsum_dense.npz: Per-channel scales (su, sv, rs) and precomputed VNNI weight row sums
  • embed_tokens.bf16.bin (884 MiB), params_inkling2.npz (306 MiB): BF16 embeddings, norms, BlockAttnRes queries, MessageGate controllers, ShortConv weights, routers, and wo_ud_tail
  • lut_vldb4x32.bin (16 KiB), codebook_i8.npy, manifest_inkling2.json, config.json, tokenizer.json, chat_template.jinja

Quick Start

git clone https://github.com/HawgAuto/HTR-NPU-Engine-.git
cd HTR-NPU-Engine-

# 1. Build libxdna_hal.so and libinkling2_so4.so
bash scripts/build_hal.sh
bash scripts/build_inkling2.sh

# 2. Download this checkpoint (~10.6 GiB)
hf download hstolte/Inkling-2-Mini-HTR-SO4 --local-dir models/Inkling-2-Mini-HTR-SO4

# 3. Serve on :8101 (zero GPU, 16 Zen 5 threads + 32-core XDNA2 NPU)
ROCR_VISIBLE_DEVICES="" HIP_VISIBLE_DEVICES="" CUDA_VISIBLE_DEVICES="" \
OMP_NUM_THREADS=16 OPENBLAS_NUM_THREADS=1 \
python3 src/inkling2_server.py \
  --host 0.0.0.0 --port 8101 \
  --model-dir models/Inkling-2-Mini-HTR-SO4 \
  --repo-root . \
  --max-seq 8192 --kv-blocks 2048 --max-batch 8

License

Quantized derivative of thinkingmachines/Inkling-2-Mini, distributed under the Apache License 2.0.

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

Model tree for hstolte/Inkling-2-Mini-HTR-SO4

Quantized
(480)
this model