PulseAugur
实时 20:24:49
English(EN) Tesla P40 - use F16 KV instead of Q8

Tesla P40:F16 KV 在 LLM 生成方面比 Q8 更快

r/LocalLLaMA 上的一个 Reddit 用户详细介绍了在 Tesla P40 GPU 上为大型语言模型使用 F16 KVQ8 KV 之间的性能差异。分析表明,虽然 Q8 使用的 VRAM 更少,但 F16 KV 在生成 token 方面速度更快,尤其是在上下文小于 10 万 token 时。这是因为 F16 KV 可以直接利用张量核心,而 Q8 需要进行即时反量化,这会引入显著的计算开销。 AI

影响 优化 KV 缓存格式可以提高消费级硬件上 LLM 的推理速度。

排序理由 关于在特定硬件上优化 LLM 性能的技术讨论。

在 r/LocalLLaMA 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Tesla P40:F16 KV 在 LLM 生成方面比 Q8 更快

报道来源 [1]

  1. r/LocalLLaMA TIER_1 English(EN) · /u/PairOfRussels ·

    Tesla P40 - 使用 F16 KV 而非 Q8

    <!-- SC_OFF --><div class="md"><p>If you use these cards together, you would think Q8 would be faster tps because it uses less VRAM. Well the reality is:<br /> Prompt TPS is nearly identical between the two (e.g. Q4@45k: 237.7 vs 237.6), so KV type doesn't affect prefill. The div…