Repository navigation
2026.12.02.03
Replay of generation steps, opt-in, for discrete cards to measure; Inkling on Panther Lake in 32-lane sub-groups
ARC_REPLAY=1(opt-in): each generated token's kernels are recorded once and replayed, with only what changed between tokens updated (Level Zero's mutable command lists), instead of every kernel launched again. On a Pro B60, a probe of 700 kernels went from 0.966 to 0.494 ms with this (-49 %, #45), so on discrete cards it could make generation noticeably faster; it hasn't been measured on a model there yet. It works for every model's one-token steps (not yet for drafting's verification passes, DSpark, the profiler or split models), with the same results bit for bit as without it: checked on Inkling 2 Mini (unsloth's and bartowski's), Qwen3.5 4B, Qwen3.8 27B and Qwen3.6 35B-A3B. A step that doesn't match its recording runs as without replay, and the program's last line says how many steps were replayed and why any weren't. It's slower on Core Ultra iGPUs, where launches are already cheap, so it stays off by default.- Inkling 2's attention for new tokens runs in 32-lane sub-groups on Arc B390 (Panther Lake), the width Xe3 iGPUs take (16 elsewhere;
ARC_INK_ATTN_DEC_SG=16gives the old width). Within the accuracy rule; its speed on a B390 is to be measured.
Please test on your machine: B-series and A-series owners, ARC_REPLAY=1 against off; B390 owners, the 32-lane attention: #117.