跳到正文
原文
Reddit r/LocalLLaMA (开源AI)· /u/jacek2023·· 11 天前AI 评分46

llama.cpp PR #32407:旋转 K/V 读取顺序以提升 L2 缓存命中率

Rotate K/V read order for better L2 cache hit rates by gaugarg-nv · Pull Request #32407 · ggml-org/llama.cpp

AI 导读

gaugarg-nv 向 llama.cpp 提交 PR #32407,通过旋转 K/V 读取顺序提升 L2 缓存命中率。在 RTX 5090 上测试 qwen35 27B Q4_K_Medium,131072 上下文长度的 prompt 处理速度从 1290.11 t/s 提升到 1822.36 t/s,加速 1.41 倍;65536 长度加速 1.25 倍;8192 及以下长度基本无提升。

来源:Reddit r/LocalLLaMA (开源AI) · reddit.com