利用 Andes 矩阵乘法 (AMM) 和 RISC-V 向量 (RVV) 扩展加速 AI 模型:从 CNN 到 LLM.pdf

编号:955322 PDF 15页 956.84KB 下载积分:VIP专享
下载报告请您先登录!

1、Pei-Hsiang Hung,Chung-Hua Yen,I-Wei Wu.Andes TechnologyAccelerating AI Models with Andes Matrix Multiplication (AMM)from CNN to LLM1TakingMainstreamSubject to change without notice copyright 2025 Andes TechnologyOutline Introduction to Andes Matrix Multiplication(AMM)Illustrations of AMM Scalability

2、.AMM Code Generation in IREE for LLM deployment Choosing Optimal Tiling Size Generating VLEN-Agnostic code Handling LLM Prefill and Decode Stages.Performance Estimates Conclusion2TakingMainstreamSubject to change without notice copyright 2025 Andes TechnologyAMM Introduction The Andes Matrix Multipl

3、ication(AMM)is being designed to optimize tiledmatrix multiplication.M Ntile=AMM(MK tile,KN tile)Key features:The tiles are stored in the RVV vector registers 2D load and store instructions facilitatedata movement between memory and vector registers.The scalability across RVV VLEN,LMUL and SEW.Under

4、standing Tiling Size M,N and K:(fully tiled cases)1.Mis always 2.2.N equals VLEN/64.3.Kis determined by LMUL and SEW.KNMNKM3TakingMainstreamSubject to change without notice copyright 2025 Andes TechnologyVLEN-Scalable Design VLEN(Vector Length)depends on the specific VPU implementation Conditions fo

5、r the illustration below:F32*F32-F32 LMUL 1VLENMNKLMULSEW124812822I8-I32816326425624F16-F3248163251228F32-F322481610242164TakingMainstreamSubject to change without notice copyright 2025 Andes TechnologyLMUL-Scalable Design LMUL(Vector Length Multiplier)AMM supports the integer LMUL values.Fractional

6、 LMULs are not supported;boundary control is used instead.Conditions for the illustration below:F32 *F32-F32 VLEN 128VLENMNKLMULSEW124812822I8-I32816326425624F16-F3248163251228F32-F322481610242165TakingMainstreamSubject to change without notice copyright 2025 Andes TechnologySEW-Scalable Design SEW(

友情提示

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

本文(利用 Andes 矩阵乘法 (AMM) 和 RISC-V 向量 (RVV) 扩展加速 AI 模型:从 CNN 到 LLM.pdf)为本站 (com) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

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