PulseAugur
中
实时 13:22:26
English(EN) What Does Context Really Cost?

长上下文场景下,LLM KV缓存的内存需求超过模型权重

自托管Llama 3.1 8B等大型语言模型时发现,在处理长上下文时,用于存储过去token的注意力键值对的KV缓存,其消耗的GPU内存远超模型权重本身。单个用户粘贴128,000个token可能需要16 GiB的VRAM用于KV缓存,超过了模型自身15 GiB的权重大小。这种内存限制极大地影响了并发用户容量,在128k token时,一个80 GB的GPU仅能支持少量用户,而4k token时则可支持数百用户。分组查询注意力(GQA)对于减少KV缓存的内存占用至关重要,使得长上下文成为可能。 AI

影响 强调了内存限制是自托管长上下文LLM的关键瓶颈,影响并发能力和基础设施成本。

排序理由 对LLM推理成本和内存使用的技术分析。[lever_c_demoted from research: ic=1 ai=1.0]

在 dev.to — LLM tag 阅读 →

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

长上下文场景下,LLM KV缓存的内存需求超过模型权重

本文如何被排名

Signal score
42 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
对LLM推理成本和内存使用的技术分析。[lever_c_demoted from research: ic=1 ai=1.0]
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

完整方法见我们的编辑标准。

报道来源 [1]

  1. dev.to — LLM tag TIER_1 English(EN) · Aditya Negandhi ·

    上下文到底有多贵?

    <p>Here is a number I did not expect: if one user pastes a 128k-token prompt into Llama 3.1 8B, that single request eats <strong>16 GiB of GPU memory</strong>. The entire Llama 3.1 8B model only weighs <strong>15.0 GiB</strong>.</p> <p>One person pasting a codebase takes more VRA…