10.XSAI:以CPU的编程范式支持现代LLM核函数 .pdf

编号:963958 PDF 17页 1.42MB 下载积分:VIP专享
下载报告请您先登录!

10.XSAI:以CPU的编程范式支持现代LLM核函数 .pdf

1、XSAI():Hardware Support forModern LLM Kernels in a CPU Paradigm北京开源芯片研究院(BOSC)2 2XSAI():Xiangshan-KMH+RhyMAXConsumer SoC(AIPC)Cloud SoC北京开源芯片研究院(BOSC)3 3AgendaMotivation of RISC-V+GEMMWhy GEMMWhy RISC-V CPUCurrent statusHigh-bandwidth L2-cacheAsynchronous GEMMMXFP8北京开源芯片研究院(BOSC)4 4GEMM is important

2、,even for decoding&consumer-sideFAQ:But decoding is GEMV/mem-bound?Takeaway1:Decoding in cloud is not memory-boundTakeaway2:Decoding in consumer-side can be GEMMTakeaway3:Speculative decoding is cheaper than memory channel北京开源芯片研究院(BOSC)5 5Evolution of transformer blockMHA-GQA-MLALessKVCacheoccupati

3、onHighercomputation/memratioDenseFFN-MoEFFNLessCommunicationhttps:/arxiv.org/pdf/1706.03762https:/arxiv.org/abs/2405.04434北京开源芯片研究院(BOSC)6 6Takeaway1:Decoding(MoE)in cloud is not mem-boundWith EP,DSV3 is either compute-bound or network-boundNOT memory boundHard to make profit without EPFlag-ship ope

4、n-weight models are becoming MoEDeepseek V3,Qwen3,LLAMA4https:/ 7Speculative decodingGuess multiple tokens with a draft modelVerify them in parallel(load weights once)Similar with prefill(GEMM)For QWEN3 8B+speculation tree size=64GQA:QO_heads=64x8=512,head_dim=128Up proj:M=64,K=5k,N=50kDown proj:M=6

5、4,K=25k,N=5kMain ops are GEMV GEMM during decodinghttps:/arxiv.org/abs/2211.17192Takeaway2:Decoding in consumer-side can be GEMM8 8北京开源芯片研究院(BOSC)Takeaway3:Spec-decoding is cheaper than memorySpeculative decoding VS.larger mem bandwidthIncreasing memory channels is expensiveDouble memory channelsImp

6、act on total areaDouble particlesIncrease GEMM FLOPS is cheaperDouble height of systolic arrayLimited impact on SRAM/datapathhttps:/ 9Why RISC-V CPU+GEMM?Software eco-systemScalar compilersAuto-vectorization for non-critical operationsOpenMPGeneral computingvariable tree attention mask(SpecInfer and

友情提示

1、下载报告失败解决办法
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站报告下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。

本文(10.XSAI:以CPU的编程范式支持现代LLM核函数 .pdf)为本站 (B-ing) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。
客服
商务合作
小程序
服务号
折叠