Skip to content

Releases

v1.4.0 — Hardware-Adaptive CMP 170HX (40–96 GiB, 70–128+ SMs) & 180 W FF-Unlock Benchmarks

Choose a tag to compare

@shanedertrain shanedertrain released this 29 Nov 05:18
v1.4.0

Hardware-adaptive release for heterogeneous FF-unlocked CMP 170HX silicon lotteries (40–96 GiB, 70–128+ SMs) — 100% lossless (0 differing bits).

What's new in v1.4.0

  • Dynamic SM scheduling (ink-model, ink-runtime): Queries CU_DEVICE_ATTRIBUTE_MULTIPROCESSOR_COUNT at startup and scales launch grids, SWA ring slots, global split-KV decode workers, and RustDFlash2 global splits (GLOBAL_ATTN_SPLITS=128) automatically (−14.0% latency on 4×45K decode attention at 124 SMs, 0 diff bits).
  • Auto-sized KV pool (PAGES=auto in start.sh): Probes each GPU's live VRAM & ECC state to size --kv-pages automatically (40 GiB -> 288, 48 GiB -> 512, 64 GiB -> 960, 80 GiB -> 1,408, 96 GiB -> 1,856 BF16 pages; 512–3,328 FP8) and sets CUDA_DEVICE_ORDER=PCI_BUS_ID for mixed-SM hosts.
  • Hardware-keyed cuBLASLt pin cache + safe ink-tune defaults: start.sh caches pins per (SM, VRAM, CHUNK) profile under flock; ink-tune now defaults to --prefill-m 8192 + G1 64,4608,decode,32,2 split-K (--no-default-split-k opts out).
  • Deterministic A/B runner (engine/rust/scripts/bench-ab.sh): Warm A/B ink-bench runner and JSONL summarizer.
  • 8× FF-unlocked CMP 170HX benchmarks & charts (140 W vs 180 W): Up to 474 tok/s single-user, 1,751 tok/s single-card (n=8), 13,638 / 8,076 / 7,242 tok/s across 8 cards (64 streams), 11,827 → 7,657 tok/s cold prefill (4K → 120K, 2.32× Config B), and 10.62M lossless BF16 KV tokens (19.07M FP8) at 180 W / ≤ 58 °C — beating 140 W on both speed and tok/J.

v1.3.0 — 1.04M BF16 / 1.83M FP8 KV, 262K Paged Speculation, Multi-Prefill Batching & Zero-Spill FAR Prefill

Choose a tag to compare

@shanedertrain shanedertrain released this 28 Nov 09:21
v1.3.0

Highlights (100% Lossless, kpack 46748cf1c41d, 393 launchers, 0 new spills)

  • 2× BF16 KV capacity & CHUNK=8K/12K unlocked: Compact convx commit tails (78 MiB fixed), decoupled 2-page persistent SWA rings + shared per-visit scratch (pglue::swa_ring_copy_kernel), exact arena sizing, tightened WEIGHTS_BYTES_ESTIMATE, and 4 lifetime-disjoint scratch overlays free 8.9–32.7 GiB of non-KV VRAM — lifting 64 GB CMP 170HX capacity to 1,015 BF16 pages (1.04M tokens) with out-of-the-box DSpark 262K (996 / 1.02M BF16 with DFlash2-Global, 1,789 / 1.83M with --kv-fp8, 7.0× @ 262K).
  • Full 262,144-token speculation (zero >102.4K cliff): Paged E4M3 global KV for DFlash2-Global (3.97 GiB arena) and pooled E4M3 global L1 + 4K SWA rings for DSpark (4.42 GiB, -8.1 GiB vs v1.2.1) sharing Engine::slots page tables lazily via page_gen(). Doubles 246K decode (68 -> 135.5 tok/s on 6D, 62 -> 133.1 tok/s on 67 at 180 W).
  • Multi-prefill batching & fused decode QKV post-op: ink-sched packs multiple prefill segments per step with a parked-KV free-page guard preserving 96% multi-turn prefix reuse — cutting 8u TTFT -45% to -51% (315–350 ms -> 168–207 ms), while fused_qkv_dec removes 48 proj_split launches per decode step.
  • Zero-spill pure-FAR global prefill attention & retuned Mixed GEMM pins: prefill_attn_far_kernel / prefill_attn_fp8_far_kernel (0 spills, 2 CTAs/SM) + CHUNK=12288 deliver 8,905–8,986 tok/s cold 8K, 8,242–8,289 32K, 6,156–6,203 131K, and 4,723–4,768 246K at 180 W (~15 s cold boot, 0 runtime JIT stalls), plus +8.0% to +11.7% on --kv-fp8 prefill.

Verified 180 W Head-to-Head vs snailbrainx/inkling-2-mini-sm80 (v3) (Same 6D & 67 Cards)

  • v1.3.0 (DFlash2-Global s3_l13, 950K BF16 KV): Wins 24/24 MiaAI-Lab throughput cells (+6.3% to +40.7%) and 24/24 TTFT cells — 1u 396.0 / 250.0 / 214.7 tok/s, 4u 1,081.8 / 608.2 / 577.6, 8u 1,575.3 / 852.9 / 835.7 tok/s (dec 1,823.1, 169–204 ms TTFT), 246K dec 135.5 tok/s.
  • v1.3.0 (DSpark-E4M3 262K out-of-the-box, 967K–1.04M BF16 KV): 8K prefill 8,986 tok/s, 246K dec 133.1 tok/s, 8u lists 1,394.6 tok/s, 8u TTFT 168–207 ms.
  • Lossless gates: E0 385/390 unchanged SASS bit-identical + 0 new spills; ink-inv BF16 8K/12K & FP8 12K 0 diff bits (including multi_prefill_vs_single); ink-spec greedy 0/8,000, sampled 20/20, sdist 0 zero-prob draws.

Optional Pre-Trained Drafter Weights (Apache-2.0, 945 MB)

v1.2.1

Choose a tag to compare

@shanedertrain shanedertrain released this 28 Nov 02:50
v1.2.1

Highlights (100% Lossless, sm_80, 140 W Verified)

  • Eliminated N=8 T=65..128 decode glue/router cliff (kpack 8c5c60dd42ee, 390 kernels, 0 new spills):
    • Under --lookup 8, N=8 multi-user speculative decode steps average ~77–88 rows, previously crossing hardcoded 64-row cutoffs into SM-starved prefill glue (glue_end 3.44–3.53 ms, glue_mid 3.00–3.29 ms) and double-launched routers (1.77–2.10 ms).
    • Raised PGLUE_ROWS & decode glue cutoffs 64 → 128, instantiated MT=8 router_gemm_dec_kernel<8> + mg_down_dec_kernel<8> for 65..=128 rows, raised rlog floor (9 * 128 * NEXP), and bumped ink-server t_max = max_chunk + 128.
    • Decode microbenchmarks (6D, 140 W): glue_end 5.7× faster (3.44–3.53 → 0.60–0.69 ms), router 1.46× faster (1.77–2.10 → 1.21–1.27 ms), 8×9..8×16 decode steps −1.61% to −3.22% (dec-8x9-16k 55.49 → 53.71 ms, dec-8x10-45k 69.05 → 67.94 ms).
    • Canonical same-card B1 → V2 → B2 M1 Replay (140 W, DSpark + --lookup 8, CHUNK=3072, 504 pages):
      • 67 (recorded): rec-t1-n8 371.91 → 375.78 tok/s (+1.04%, beats both B1 & B2), decode step 47.65 → 46.8 ms (−1.78%), p99 TTFT 5.50 → 5.19 s (−5.6%), 0.371 J/tok.
      • 6D (self): self-t1-n8 376.24 → 382.23 tok/s (+1.59%, beats both B1 & B2), 0.365 J/tok, p99 5.73 → 5.61 s.
  • Stage-3 DFlash2-Global benchmarks (--draft-dflash2, zero Rust/CUDA changes for 2 or 3 global layers):
    • L1+L3 hits 532.89 tok/s (+28.3% vs DSpark, +13.5% vs Stock DFlash2) on 4×45K tf-agent-120k.
    • L1+L3+L4 hits 5.238 tok/rd (223.96 tok/s, +18.4% vs Stock, beating gated DSpark) at 1×75K, 4.428 tok/rd live sampled on held-out 45K+ val_long, and 380.3 / 328.6–335.0 / 372.5 tok/s on 6D M1 while saving ~4.5–6.4 GiB VRAM (100K draft ctx).
  • Lossless verification (6D, 140 W): ink-inv BF16 (1,055/1,055) & --kv-fp8 (1,054/1,054) 0 diff bits; greedy --lookup 8 0/8,000 (gap 0.0); sampled --lookup 8 20/20 (flags_or=0); sdist --lookup 8 4/4 PASS (65,536 draws, 0 zero-prob); cargo fmt, cargo clippy --locked --workspace --all-targets -- -D warnings, and workspace unit tests PASS.

v1.2.0 — Longest-Back Lookup & Hybrid Global-Attention DFlash2

Choose a tag to compare

@shanedertrain shanedertrain released this 27 Nov 16:34
v1.2.0

Highlights (100% Lossless, sm_80, 140 W Verified)

  • Longest-back n-gram lookup (MAX_CHAIN=32) & SWA far-anchor rescue:
    • Deep chain walk (MAX_CHAIN=32) selects the longest backward verbatim match (+1.45% DSpark self-t1-n4, +1.30% self-t1-n8 on 6D 140 W, lower J/tok).
    • Drafter::is_swa_only() enables far-anchor verbatim rescue (dist > 2048) strictly for SWA-2048 drafters (+1.92% Stock DFlash2 self-t0-n4) while keeping global drafters (DSpark and DFlash2-Global) on post-draft lookup (+3.16% over anchor override on DFlash2-Global).
  • Hybrid full_attention E4M3 RustDFlash2 CUDA kernel & runtime (388 kernels, 0 new spills):
    • Config-driven layer_types (sliding_attention / full_attention) and global_rope_theta (1e6) from config.json.
    • Design-A df2::global_attn_e4m3_split_kernel (REG: 239, 0 spills, 646–715 GB/s E4M3): 2.653 ms at 4×45K (1 global layer), 3.214 ms (2 global layers), 3.447 ms at 4×100K, ~8–9 GiB lower VRAM than DSpark (52.8 GiB used / 12.1 GiB free at 8 slots / 504 pages / 100K ctx).
    • Stock 5× SWA checkpoints stay 100% bit-identical (0.00 ms regression).
    • With a Stage-2 frozen-SWA 2-global-layer (L1+L3) DFlash2-Global checkpoint: 526.05 tok/s (5.738 tok/rd, +26.7% over DSpark, +12.1% over Stock DFlash2) on 4×45K tf-agent-120k, 3.851 tok/rd (+20.8% over DSpark) at 75K, and 327.8 tok/s (-0.63% vs DSpark, +1.33% over Stock DFlash2) on 6D N=4, T=1.0 M1.
  • Target-tap extractor (ink-taps):
    • Streams native [5, 23, 41, 48] BF16 target features at ~6K tok/s per GPU for distilling custom lossless drafters.
  • Lossless verification: ink-inv 0 diff bits; greedy 0/8,000 bad argmax; sampled 20/20 exact (flags_or=0); sdist 0 zero-prob draws; cargo fmt, cargo clippy -- -D warnings, and workspace tests PASS.

v1.1.0 — Virtual-Message Prefill Fusion & Zero-Stall Spec Round

Choose a tag to compare

@shanedertrain shanedertrain released this 26 Nov 22:34

Highlights (100% Lossless, 0 Diff Bits, 140 W Verified)

  • Prefill virtual messages & glue fusion: vmsg_weights_kernel cuts msgs 7.50× (eliminating ~87 GB HBM traffic per 32K prefill), fused multi-query AttnRes (−25.2%), fast __match_any_sync prefill moe_build, and fixed --prefill-chunk clamping with default chunk=3072.
    • Cold 32K prefill (140 W, 6D): 7,009 tok/s (+8.0% vs v1.0.0, +43.6% vs vLLM Config B).
    • Cold 120K prefill (140 W, 6D): 5,248 tok/s (+58.7% vs vLLM Config B).
  • Zero-stall spec round, fast graph retargeting & single-pass decode moe_build:
    • Single-pass __match_any_sync decode moe_build: −41.9% (4×8) and −50.1% (4×16).
    • Cached CUgraphExec retargeting: cuts verify_us >= 200 µs stalls from 36.0% → 3.5% (p90 −70%).
    • Coalesced 1-sync verify_widths_and_drafts, lazy lookup H2D upload, vectorized softcap, and opt-in early-exit Markov drafting (INK_DSPARK_EARLY_TAU=0.70 for N=1/ragged).
  • Canonical M1 Agent Replay (140 W, 343 reqs, 0 errors):
    • 6D card: N=4 T=1.0 328.0 tok/s (+27.2% vs Config B, TTFT p99 −15.3%), N=4 T=0 373.3 tok/s (+23.2%), N=8 T=1.0 360.9 tok/s (TTFT p99 −23.7%).
    • 67 card: N=4 T=1.0 338.1 tok/s (+3.90% vs v1.0.0, +26.8% vs Config B, TTFT p99 −25.1%), N=4 T=0 355.4 tok/s (+21.0%), N=8 T=1.0 366.9 tok/s (+4.10% vs v1.0.0, TTFT p99 −26.8%).
  • Lossless verification (kpack 9af3241f6232, 386 launchers, 0 new spills): ink-inv BF16 & --kv-fp8 0 diff bits, ink-spec greedy 0/8,000, sampled 20/20, sdist 4/4 (0 zero-prob draws).

v1.0.0 — Pure-Rust + CUDA sm_80 Inkling-2-Mini Engine for CMP 170HX

Choose a tag to compare

@shanedertrain shanedertrain released this 25 Nov 07:41

Initial open-source release of inkling-cmp-engine (v1.0.0, Apache-2.0) — a custom pure-Rust + CUDA (sm_80) single-model inference engine serving Thinking Machines Lab's Inkling-2-Mini on 1–8× NVIDIA CMP 170HX (64 GB, fixed 140 W power cap).

Highlights

  • 100% lossless by default (+25% over vLLM Config B on multi-turn agent workloads): 323.8–333.7 tok/s (N=4, T=1.0, ~45K median context, TTFT p99 2.94–3.56 s), 347.6–360.6 tok/s at T=0, and 358.9–380.2 tok/s at N=8 on a single 140 W card.
  • MiaAI-Lab decode & cold prefill wins across the board: +25.8% to +32.2% single-user decode, up to 1,026.9 tok/s aggregate at 8 users, and +33.4% (7,665 tok/s at 4K) to +52.8% (5,052 tok/s at 120K) cold prefill vs Config B.
  • Zero weight modification: native NVFP4 + MXFP8 weights mounted read-only (18.98 GB on GPU via 1-byte NVFP4_N1S1 scales), leaving 504 BF16 global KV pages (516K tokens/card; 4.13M across 8 cards).
  • Exact speculative decoding: fused DSpark Markov drafter (top_p=0.90) + lossless verbatim lookup (--lookup 8 --lookup-min 8) + 128-bit exact Leviathan rejection/residual sampling (0/8,000 greedy mismatches, 13/13 sdist pass).
  • Opt-in switches: --kv-fp8 (KV_FP8=1, 2× global KV capacity: 1.03M+ tokens/card, 4×8 120K decode −16.6%) and --draft-dflash2 (Inco AI DFlash2 parallel drafter, −3.3 GiB VRAM).
  • One-command setup: cp scripts/local.sh.example scripts/local.sh && ./start.sh (includes standalone Dockerfile and pure-PyTorch scripts/fold-dspark.py).