Skip to content

0.2.20-poly.5

Latest

Choose a tag to compare

@VecSzn VecSzn released this 25 Nov 15:19

Inkling 2 Mini writes up to 2.6x faster on Apple Silicon and up to +61% faster on NVIDIA with its DSpark drafter now on by default, AMD cards read prompts on int8 kernels by default, and tool calls at temperature 0 no longer drop tokens on small cards.

Faster

Every number below is 0.2.20-poly.4-hotfix → this version, in tokens/s, greedy decoding (the same greedy tokens as before).

On an Apple M5 Ultra (256 GB, Metal, beta), Inkling 2 Mini UD-Q3_K_XL (--metal-optimize --metal-memory balanced), the median of three alternating rounds:

Prompt Writes Reads the prompt
Short chat (23 tokens, 256 written) 73.6 → 104.7 (+42%)
Code editing (3,845 tokens, 256 written) 68.1 → 178.3 (2.6x) 2,429 → 2,451 (+1%)
8,192 tokens (64 written) 65.5 → 116.2 (+77%) 2,608 → 2,631 (+1%)
16,384 tokens (64 written) 63.3 → 112.7 (+78%) 2,597 → 2,611 (+1%)
32,768 tokens (64 written) 60.5 → 107.3 (+77%) 2,421 → 2,442 (+1%)
65,536 tokens (64 written) 55.7 → 87.5 (+57%) 2,090 → 2,118 (+1%)

With the default DSpark draft model on (dspark-Inkling-2-Mini-Q8_0.gguf). Without it, writing goes from 73.6 → 85.4 (+16%) in a short chat, 68.1 → 81.8 (+20%) on the editing prompt, and +16% to +22% from 8K to 64K.

On an RTX 4090 D (24 GB, CUDA), Inkling 2 Mini UD-Q3_K_XL, the median of three alternating rounds:

Prompt Writes
Short chat (35 tokens, 256 written) 147.3 → 176.6 (+20%)
Code editing (345 tokens, 256 written) 146.1 → 208.1 (+42%)
5,762 tokens (128 written) 139.3 → 224.0 (+61%)
16,000 tokens (128 written) 130.8 → 152.5 (+17%)
30,954 tokens (128 written) 121.1 → 152.1 (+26%)
64,000 tokens (128 written) 103.4 → 130.5 (+26%)

With the default DSpark draft model on (dspark-Inkling-2-Mini-Q8_0.gguf, enabled by default on Apple Silicon Macs and NVIDIA cards that hold every expert). Against 0.2.20-poly.4-hotfix with DSpark already on, writing goes +14% to +37% faster across these prompts (145.7 → 176.6, 156.6 → 208.1, 163.6 → 224.0, 133.3 → 152.5, 117.7 → 152.1, 105.4 → 130.5).

  • DSpark draft model on by default for Inkling 2 Mini: setup now downloads dspark-Inkling-2-Mini-Q8_0.gguf (0.4 GB) and enables --draft-model by default on Apple Silicon Macs and NVIDIA cards that hold every expert (left off on smaller cards where the drafter would take VRAM from the expert cache, as well as with "parallel" > 1, --layer-split, or AMD HIP; --no-draft turns it off).
  • What changed on Apple Silicon (Metal): decode and window passes fuse their norm, gate and residual steps, independent projections share concurrent Metal encoders, 2- to 8-row quantized products read each weight block once across strata-poly's Metal models, long-context attention splits across threadgroups, and a 2-bit head screen filters vocabulary candidates for Q8_0 and Q5_K DSpark files.
  • What changed on NVIDIA (CUDA): single-row and multi-row Inkling 2 decode and verify kernels fuse norm, convolution, gating and residual steps, multi-column mixed-type quantized products and full-lane NVFP4 slots reduce weight reads, verify windows deduplicate expert calls on the GPU, DSpark fuses its RoPE, attention and Markov steps with Q4_K/Q5_K head screening, and window greedy picks stay on the card.
  • Grouped prompt reading with the DSpark drafter: with --draft-model, Inkling 2 now reads prompts a group of calls at a time instead of call by call, so RAM experts cross the bus once per group and prompt logits match runs without the drafter (PR 328).
  • Multi-slot Host-RAM prefix pinning (strata_pin): keep multiple static agent prefixes hot in Host RAM orthogonally to parallel: 1, persist and auto-reload them across restarts with --pin-dir / --pin-cache-mib, and fix Inkling 2 multi-<|message_system|> prefix truncation so full tool declarations and system prompts stay cached (opt-in via strata_pin on /v1/chat/completions, PR 343).
  • AMD prompt reading on RDNA3, RDNA4 and RDNA2: the int8 prompt kernel (--prompt-int8) is now the default on RDNA3 and RDNA4 matrix cores (PRs 292 and 330; issue 289) and runs on RDNA2 (gfx1030 to gfx1036) through native dot4 with four weight rows per thread (PR 332). On an RX 7800 XT, Qwen3.6-35B-A3B UD-Q3_K_M reads a 4,096-token prompt at 546 → 2,340 tokens/s (4.3x), as measured by the author. --no-prompt-int8 (Inkling 2) or STRATA_PF_I8MMA=0 turns it off.
  • GPU doorbell on AMD for Inkling 2 with experts in RAM: a decoded token routes on the card and hands missing experts to the CPU through coherent pinned memory with no host round trip per layer, and window guesses take the card's picks too so greedy answers with --window or --draft-model match single-token runs (PR 306).

Fixed

  • Inkling 2 Mini no longer drops tokens from tool-call JSON at temperature 0 on small cards. Two bugs were involved: Q5_0 attention weights requantized at load missed the -16 code offset in the integer dot product, and 5-bit q5_0 scales were too coarse on sensitive tool-call steps. Setup's small-card setting now defaults to --attn-requant q5_k (and accepts q6_k as well), while --attn-requant q5_0 computes the centered dot (issue 318).
  • No overwrite race when vram_ahead() reuses an expert staging group. The engine now records ahead_[h].read before refilling a staging slot, so the next group's copy waits until the card has finished reading the previous group (found while investigating issue 283).
  • Window guesses match single-token logits on Inkling 2. Window calls of fewer than kStageRows rows run the same per-token loop-controller launches as single-token decode, and block-drafter verify time is tracked alongside GPU greedy picks on windows.
  • AMD crash on the first long prompt when experts stay in RAM. Prompt-buffer VMM lending to the expert cache is now disabled on Windows HIP as well as Linux HIP, avoiding the amdhip64 access violation on long agentic prompts (issue 305, PR 334).
  • AMD machines with both a Ryzen iGPU and a discrete Radeon card skip the integrated GPU by default unless HIP_VISIBLE_DEVICES, ROCR_VISIBLE_DEVICES or GPU_DEVICE_ORDINAL selects a device explicitly (PR 333).
  • Out-of-VRAM during CUDA graph capture no longer aborts the reply. On 8 GB cards, if cudaGraphInstantiate runs out of memory mid-answer, the engine drops older cached recordings, runs the step unrecorded if needed, and trims 64 MiB from the expert cache on the next call (PR 301).
  • Server batching ("parallel" > 1) gives the same answers as "parallel": 1. Batch slots now send turn_at on GEN and BGEN lines just like single-request runs (PR 287).
  • HIP builds for gfx1010 (RDNA1) compile again by using the SDWA __dp4a fallback in rdna_gr.cu and rdna_mmvq.cu where sdot4 is absent (PR 314).

Also in this version

  • Community runs of Inkling 2 Mini on native Windows 11 HIP (RX 9070 XT, issue 323) and native Linux HIP (RX 9060 XT, issue 309) are recorded in docs/models/inkling.md.
  • Ready-made engines: Windows x64 (CUDA 13), Linux x64 (CUDA 13), macOS arm64 (Metal, beta).

Thanks to okada-shogo, drakarah and LeoXing1996 for the PRs, and to dzamine, Gene24609, JuggyBob, AmirSabani, kzzalews and Tako88 for the bug and benchmark reports.