HBFSim:用于探索大语言模型(LLM)内存层次结构中高带宽闪存(HBF)的模拟器
HBFSim: A Simulator for Exploring HBF in Memory Hierarchies for LLMs
AI总结:
本文提出HBFSim模拟器,用于研究异构HBM+HBF内存系统对LLM解码的影响,发现HBF服务速度快于主机DRAM、HBM更适合存KV缓存,且HBF寿命与共享KV写入的栈数量相关。
摘要:
高带宽闪存(HBF)是一种新兴技术,可提供万亿字节级别的加速器本地容量,带宽接近高带宽内存(HBM),且每比特成本可能低于HBM。但HBF基于NAND的特性会将长延迟、非原地更新和有限的写入耐久性直接引入加速器内存层次结构,导致其对性能和寿命的影响难以预测。为研究这一新兴设计空间,本文提出HBFSim,这是一种面向大语言模型(LLM)的事件驱动模拟器,用于异构HBM+HBF内存系统,在保留应用级内存语义的同时对闪存内部行为进行建模。HBFSim在经校准的服务前端驱动下,对HBM、采用主机管理闪存转换的HBF以及传统容量层进行统一建模。利用HBFSim,本文在三种输入输出长度不同的工作负载下,研究了Llama-3.1-70B和Qwen3-235B-A22B的解码性能。结果显示:HBF为无法放入HBM的数据提供服务的速度比主机DRAM快11.0至19.0倍;HBM更适合存储运行序列的键值(KV)缓存,而非作为HBF的缓存;在Llama-3.1-70B的已发布峰值负载下,HBF的寿命为2.0至6.9年,与共享KV写入的栈数量成正比。该工具可在指定链接获取,将随公开HBF设备数据的更新而同步更新。
英文摘要:
High Bandwidth Flash (HBF) has recently emerged as a promising technology that provides terabyte-scale accelerator-local capacity at bandwidths approaching HBM, with a potential cost-per-bit advantage over HBM. However, its NAND foundation brings long latency, out-of-place updates, and finite write endurance directly into the accelerator memory hierarchy, making its effects on performance and lifetime difficult to predict. To study this emerging design space, we present HBFSim, an LLM-aware event-driven simulator for heterogeneous HBM+HBF memory systems that preserves application-level memory semantics while modeling flash-internal behavior. HBFSim models HBM, HBF with host-managed flash translation, and conventional capacity tiers in one simulation driven by a calibrated serving frontend. Using HBFSim, we study decoding of Llama-3.1-70B and Qwen3-235B-A22B under three workloads that differ in their input and output lengths. HBF serves data that does not fit in HBM 11.0--19.0$\times$ faster than host DRAM; HBM is better used to hold the running sequences' KV cache than as a cache for HBF; and at a published peak load of Llama-3.1-70B, HBF lasts 2.0 to 6.9 years, in proportion to the stacks that share the KV writes. The artifact is available at https://github.com/FlashLabAE/HBFSim and will track public HBF device data as it becomes available.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。