跳到正文
Hugging Face Blog·· 2025-01-23AI 评分57

NVIDIA 推出长上下文 KV Cache 压缩工具包 KVPress

Mastering Long Contexts in LLMs with KVPress

AI 导读

NVIDIA 推出面向大语言模型长上下文的 KV Cache 压缩 Python 工具包 KVPress,旨在通过多种前沿压缩与剪枝算法降低显存占用。该工具包通过 forward hooks 无缝集成到注意力层并在预填充阶段执行压缩,可直接配合 Hugging Face transformers 流水线使用。

来源:Hugging Face Blog · huggingface.co