In this article
CUDA softmax in b12397 can retain columns in registers and reduce memory passes; workload speed still depends on dispatch and total graph cost.
llama.cpp b12397 publishes a CUDA cooperative-softmax change that retains eligible column values in registers. Upstream describes reducing global-memory passes from five to two on that path. The important measurement boundary is the softmax implementation: the same ratio cannot be applied directly to total generation latency.
The conditional fast path
The PR explains that the cooperative single-row implementation previously discarded loaded values between phases. The new templated path preserves them when its register capacity can cover the columns, while retaining the original loop as a fallback. That condition matters more than the release headline. A test that never meets it may measure unchanged work, and a test that does meet it still includes synchronization and arithmetic beyond global-memory traffic.
Traffic reduction is not a latency ratio
Five passes becoming two describes a particular movement of data. It does not imply that the kernel becomes two-and-a-half times faster, because other costs remain and resource occupancy may change. It says even less about a whole decoder step that contains many operators. A useful report would present kernel time and whole-request time separately, with the affected softmax share visible rather than silently treating it as the entire workload.
Probe the dispatch boundary
A proposed benchmark should include row widths on both sides of the register-fit decision, using the same GPU and build settings. Confirm the selected path through appropriate tracing or source-level instrumentation before interpreting a flat result. Keep numerical checks alongside timing, including inputs with a broad dynamic range. This is an experiment design, not an assertion that a particular consumer GPU has demonstrated an improvement in this article.
Connect it to a serving workload
After operation-level qualification, run a representative serving trace with fixed prompts and output limits. Report whether the change influences prompt work, token generation, or neither within measurement uncertainty. Concurrency and graph replay settings belong with the result because they change what host and device costs remain exposed. The dated prerelease identifies available code; only the controlled workload can establish whether its register optimization is operationally material. Register retention should also be checked at the compiled-kernel level when explaining traffic. Source-level variables can spill during compilation; a theoretical reduction in explicit global loads does not independently prove that the resulting device program avoids all scratch-memory traffic on another architecture.
Sources
Related reading
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.