Reusing work across a looped graph

The mix function combines previous block outputs with the current state through learned queries. Previously it rebuilt the stack and normalized all of it on each call. The new mix_stack keeps normalized stacks within the graph and extends them incrementally. Since RMS normalization operates independently on each row, earlier blocks do not need the same normalization again. Looped layers using the same bank within one pass can share a stack built once for that pass.

Fewer operations for each decoded token

The single-token path no longer repeats query tensors. The control function normalizes the current state and message as two rows in one operation, while zero attention sinks are shared by head count. The PR author reports 6,487 CUDA kernels per token before the change and 6,071 afterward on GB10 with CUDA graphs disabled. That is about 6.4% fewer launches in that measurement. Kernel counts are not an equivalent promise of lower end-to-end latency, especially under a different graph configuration.

Published speed measurements remain workload specific

For Inkling 2 Mini IQ4_NL, the author compares master 26f5048 with the PR. CUDA GB10 tg128 rises from about 40.4 to 41.2–41.4 tokens per second, and pp512 from 832–833 to 857–860. Metal M3 Ultra tg128 moves from about 32.1 to 32.6–32.7. A reviewer reports 43.3 versus 45.5 tg128 on M5 Max with UD-Q4_K_XL. These use different hardware and quantizations. Combining them into a universal speedup would obscure the conditions that produced each result.

Correctness checks and attribution

The author reports identical greedy output over 96 tokens on CUDA and Metal, alongside zero mean KL divergence in the described comparisons with master. A reviewer also reports that test-llama-archs passes. These are contributor checks on defined workloads, not tests independently performed by this publication. Much larger speed figures elsewhere in the discussion concern a separate experimental branch with additional Metal changes. They are not results for b12723 and should not be presented as benefits delivered by this release.

Release timing and deployment boundaries

The PR discussion began on November 24; the b12723 release and final commit are dated November 25 at 03:54 UTC. Discussion also raises possible cross-device copies when sharing zero sinks under pipeline parallelism or partial offload. Single-device benchmarks therefore do not settle every deployment configuration. The final diff changes the Inkling 2 implementation in llama.cpp, without training an adapter or introducing new weights. We read the source and release evidence without installing a build or running model code.