RCreddit.com·
Archived topic · 归档话题,来源已停止追踪
Applying Sliding Window Attention to pretrained LLMs at inference time [P]
A developer has implemented Sliding Window Attention (SWA) for pretrained Hugging Face causal LLMs at inference time. This implementation significantly reduces memory usage, with SWA-64 using approximately 3.5 MB across 16K, 32K, and 64K context sizes, compared to 923 MB and 1.84 GB for full KV at 16K and 32K respectively. Additionally, SWA-64 decreased TPOT from about 38.4 ms to 30.5 ms at 16K. The developer is seeking feedback and further experiments.
时间与来源
时间显示为 UTC
显示时区:UTC
本地时区尚不可用,暂时显示 UTC。
收录当时偏移:UTC+02026年9月6日 13:10 UTC
- 收录
- 2026年9月6日 13:10
- 来源类型
- 开发者社区
本站未收录正文。
前往源站阅读 →