在绿色时缓存提示:面向大型语言模型服务的碳感知缓存
Cache Your Prompt When It's Green: Carbon-Aware Caching for Large Language Model Serving
AI总结:
本文提出GreenCache框架,通过动态资源分配平衡碳排放与服务等级协议,实现在LLM服务中减少15.1%的碳排放,最高达25.3%。
摘要:
随着大型语言模型(LLMs)的广泛应用,其环境影响,尤其是碳排放,引起了更多关注。先前研究主要关注计算相关的碳排放。本文发现存储也是关键贡献者。LLM缓存通过保存和重用KV缓存来减少重复计算,从而减少运营碳排放。然而,这种益处以高速SSD的嵌入式碳为代价。随着LLM的扩展,存储的嵌入式碳显著增加。为了解决这一权衡,我们提出了GreenCache,一种碳感知的缓存管理框架,动态推导LLM服务的资源分配计划。GreenCache分析碳排放与SLO满意度之间的相关性,在动态负载下重新配置资源,保持SLO与碳排放之间的平衡。从真实轨迹的评估显示,在FR网格上为Llama-3 70B服务时,GreenCache实现了平均碳排放减少15.1%,最高达25.3%,同时保持超过90%的请求延迟限制。
英文摘要:
As large language models (LLMs) become widely used, their environmental impact, especially carbon emission, has attracted more attention. Prior studies focus on compute-related carbon emissions. In this paper, we find that storage is another key contributor. LLM caching, which saves and reuses KV caches for repeated context, reduces operational carbon by avoiding redundant computation. However, this benefit comes at the cost of embodied carbon from high-capacity, high-speed SSDs. As LLMs scale, the embodied carbon of storage grows significantly. To address this tradeoff, we present GreenCache, a carbon-aware cache management framework that dynamically derives resource allocation plans for LLM serving. GreenCache analyzes the correlation between carbon emission and SLO satisfaction, reconfiguring the resource over time to keep the balance between SLO and carbon emission under dynamic workloads. Evaluations from real traces demonstrate that GreenCache achieves an average carbon reduction of 15.1 % when serving Llama-3 70B in the FR grid, with reductions reaching up to 25.3 %, while staying within latency constraints for > 90 % of requests.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。