DigestAI news desk

Cut through the AI noise.

Hardware & Compute8 min read

Ggml-org rotates K/V read order to improve L2 cache hit rates

The llama.cpp project merged a pull request on November 17, 2026, to rotate the read order of key-value (K/V) pairs in CUDA-based attention layers. The change targets better L2 cache utilization, specifically in ggml/src/ggml-cuda/fattn-mma-f16.cuh, where 64 lines were added and 16 removed.

1 source primary source

Key points

  • Rotated K/V read order in CUDA attention layers to boost L2 cache hit rates, tested on Jetson AGX Xavier (sm72, CUDA 11.4)
  • Reported 32.4% token/sec improvement in benchmark `llama-bench tg128` (22.71 → 30.06) and 28.2%–36.8% gains in other setups
  • Merge avoided overwriting upstream code, with byte-level verification of 38 paths to ensure no data loss

This update is part of a broader set of optimizations for GPU inference, including profiling-driven tweaks for Jetson AGX Xavier devices (sm72, CUDA 11.4), which reportedly improved token throughput by 32.4% (from 22.71 to 30.06 tokens/sec) and 28.2%–36.8% in other benchmarks (e.g., pp2048: 533.06 → 729.41 tokens/sec). The change only engages with multi-stage loading (e.g., Ampere GPUs) and does not affect HIP-based systems like AMD’s gfx1151 architecture.

The update was merged via a fast-forward push to avoid overwriting 2,031 lines of upstream code, ensuring no data loss. The pull request was assisted by Claude Opus 5.5 and involved byte-level verification of 38 paths to confirm compatibility. While the change is technical and targeted at developers, it could indirectly benefit users of optimized inference setups by improving performance on compatible hardware.

Model page: Claude Opus 5.5 →

Full story from github.com · via Reddit AI communities primary sourceOpen source ↗

Coverage and discussion

1source
Topics · follow one to build your own front page

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.

Comments

via GitHub Discussions

More in Hardware & Compute

All →

Related stories