跳到正文
实时
NVIDIA Technical Blog· Timmy Liu·· 17 天前30

NVIDIA共同设计稀疏注意力机制以实现高效长上下文推理

Co-Designing Sparse Attention for Efficient Long-Context Inference

要点速览

NVIDIA 共同设计稀疏注意力机制以实现高效长上下文推理,该机制在 128K token 长度下可大幅降低 transformer 层的注意力计算成本。

正文

Agentic workloads, long documents, and large codebases are pushing context lengths from tens of thousands of tokens to hundreds of thousands. At those lengths,...

Agentic workloads, long documents, and large codebases are pushing context lengths from tens of thousands of tokens to hundreds of thousands. At those lengths, attention becomes the most expensive part of a transformer layer. Dense attention scores every query against every key, so its cost per query grows with the context length N, and at 128K tokens it can take most of the prefill time in a…

Source

来源: NVIDIA Technical Blog · developer.nvidia.com