为 Transformer 模型构建视觉推理系统的挑战.pdf

编号:185075 PDF 15页 1.51MB 下载积分:VIP专享
下载报告请您先登录!

为 Transformer 模型构建视觉推理系统的挑战.pdf

1、Challenges in Architecting Vision Inference Systems for Transformer ModelsCheng WangCTO&SVP,Software&ArchitectureFlex LogixBlind person and the elephant Receptive field is a big limitation2 2023 Flex Logix Technologies,Inc.CNNs are limited by receptive field3 2023 Flex Logix Technologies,Inc.Smaller

2、 receptive fieldSmaller features&objectsLarger receptive fieldLarger features&objectsTransformers use context from whole image4 2023 Flex Logix Technologies,Inc.CNN:Elephant?Transformers:Elephant!Receptive FieldReceptive FieldMAYBEVERY HARD Uses CNN backbone for feature extraction&transformer“head”T

3、ransformer Encoder extracts features from all patches for context Decoder makes predictions based on all extracted features Transformer Encoder/Decoder operations are very different from CNNDETR 2020 The de-facto vision transformer model5 2023 Flex Logix Technologies,Inc.InferX provides flexibility

4、essential for transformers:Each TPU can stream data with:TPU,L1 weight mem,L2 Data mem&DDR TPU natively supports mixed precision Flexible activations in EFLX eFPGA More data bandwidth vs Network-on-Chip based AI Also more flexible data manipulationInferX dynamic TPU Flexible,balanced&memory-efficien

5、t6 2023 Flex Logix Technologies,Inc.First stage is positional encode:PE values are stored eFPGA ROMs EFLX lookup PE“on the fly”to add to the K/Q matrix into the attention headDiving into vision transformers 7 2023 Flex Logix Technologies,Inc.CNN output Second stage multiplies input with 3 matrices f

6、or each head(Q/K/V):Each matrix maps to TPU weightsDiving into vision transformers(2)8 2023 Flex Logix Technologies,Inc.Attention Head#0Attention Head#1 Main part of multi-head attention layer is a challenge on traditional edge accelerators:The(Q,K,V)for each matrix is activation

友情提示

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

本文(为 Transformer 模型构建视觉推理系统的挑战.pdf)为本站 (originality) 主动上传,三个皮匠报告文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三个皮匠报告文库(点击联系客服),我们立即给予删除!

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