Matrix-Vector (MVM) and Matrix-Matrix Multiplications (MMM) are critical kernels in LLM inference. While prefill processes multiple tokens concurrently and is dominated by compute-intensive MMM, decode repeatedly executes memory-intensive MVM for single-token generation. This work investigates the memory-hierarchy and scalability of SIMD based LLM inference on multicore systems without GPUs. We propose LinScaleLLM, a memory hierarchy organization for SIMD multicore architectures, featuring private L1 and L2 caches per core and shared L3 cache and DRAM controller or channel resources among clusters of four cores. We characterize SIMDized MVM and show that reduced arithmetic work increases weight-consumption rates, making L2 latency a primary scaling bottleneck. To address this, we investigate a lightweight, latency aware private L2 prefetching strategy that decouples prefetch lookahead from degree. For regular MVM access streams, deeper lookahead with a low prefetch degree improves timeliness without substantially increasing DRAM traffic. The D12/K1 configuration (12 cache lines ahead, degree 1) achieves an L2 demand-miss rate of approximately 3.3% up to 16 cores. With improved prefetch timeliness, memory bandwidth becomes the dominant scalability constraint. Scaling memory-controller resources with core count restores scalability, achieving up to 127.55x speedup on 64 cores, with MVM performance comparable to standard and high-end GPUs. For complete llama.cpp decode steps of Llama3.21B simulated in Sniper simulator, LinScaleLLM achieves 114.0x speedup on 64 cores over a single scalar core without prefetching. We also characterize SIMDized prefill, demonstrating substantial MMM data-reuse benefits, with up to 12.20x SIMD speedup on a single core and 71.23x overall speedup on 64 cores over the single-core non-SIMD baseline.


翻译:暂无翻译

0
下载
关闭预览

相关内容

博士万字总结 || 多智能体强化学习(MARL)大总结与论文详细解读
深度强化学习实验室
10+阅读 · 2020年4月14日
多智能体强化学习(MARL)近年研究概览
PaperWeekly
39+阅读 · 2020年3月15日
meta learning 17年:MAML SNAIL
CreateAMind
11+阅读 · 2019年1月2日
读书报告 | Deep Learning for Extreme Multi-label Text Classification
科技创新与创业
48+阅读 · 2018年1月10日
From Softmax to Sparsemax-ICML16(1)
KingsGarden
74+阅读 · 2016年11月26日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
VIP会员
最新内容
《评估人机编队性能的标准指标》
专知会员服务
8+阅读 · 11月30日
《美陆军装甲排的自动化任务分配模型》59页
专知会员服务
6+阅读 · 11月30日
乌克兰海陆空无人力量
专知会员服务
3+阅读 · 11月30日
超越技术:美战争部的AI变革管理
专知会员服务
7+阅读 · 11月27日
北约400亿美元反无人机能力投资建设
专知会员服务
7+阅读 · 11月25日
反小型无人机系统方案评估(27页)
专知会员服务
15+阅读 · 11月25日
相关VIP内容
相关资讯
相关基金
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
1+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
3+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员