创建

登录 ReadmeX

或

了解我们如何处理你的信息: 隐私政策

ReadmeX

陪你读懂 AI 动态

今天,想先了解什么?

选一份动态总结,或直接聊聊你的问题。

社区和关注动态总结只属于你自己。

资讯

B200实测揭示共享权重的访存局限

AI 总结

在NVIDIA B200上的分析显示,八次矩阵乘法共享一个72 MiB权重时,速度比使用八份相同权重快24%,且几乎没有从HBM读取数据。当权重增至288 MiB并超过L2容量后,性能差异消失;Huginn Core教学实现也在八次迭代中重复从HBM读取权重,说明共享权重虽能节省存储,却不必然减少访存。

深度见解

这一单一实现与GPU平台的实测结果具体表明,循环权重复用只有在相关数据能驻留缓存时,才可能减少HBM读取。

Do looped transformers, which reuse the same weights at every iteration, also save HBM traffic? In my new post I cover the looped architecture (Huginn), then model and measure its performance on a B200: how much data each iteration reads from memory, how long it takes, and why the shared weights usually don't stay on chip until the next iteration. A few results: - A chain of eight matmuls with one shared 72 MiB weight ran 24% faster than the same chain with eight identical copies, and read almost nothing from HBM. At 288 MiB, larger than L2, the difference disappeared. - In a full Huginn Core (teaching implementation, random weights), eight iterations took about eight times as long as one and read about eight times as much data from HBM. - Sharing saves storage, but by itself it doesn't stop the GPU from reading the weights from HBM again at every iteration. 👀Post: https://dinara-dl.github.io/posts/looped-transformer/ 🤖Code and raw Nsight Compute data: https://github.com/dinara-dl/looped-transformer I'd be curious whether anyone has tried keeping recurrent weights on chip across iterations, for example with a persistent kernel. submitted by /u/2dayyy6 [link] [comments]

#Huginn Core#NVIDIA B200

原文约 1 分钟读完阅读原文
群聊

还没有评论,来说说你的看法。