影片高階EN1.6 萬 次觀看
Weight Folding, CUDA Streams, and the Bug That Made My Model Speak Backwards — Filip Makraduli
來源 AI Engineer
看影片(在新分頁開啟原站)連到 YouTube・AI Engineer
摘要
Filip Makraduli 分享 FlashNorm 技術,透過將 RMS 正規化增益摺疊進權重並延後除法,讓矩陣乘法與向量運算並行執行,提升推論速度。他還揭露並修復了一個因 CUDA 串流隱式匯總導致的賽車條件 bug,該 bug 曾讓模型輸出出現一步延遲與重複文字。
Filip Makraduli presents FlashNorm, an optimization that folds RMS normalization gains into weights and defers division to enable parallel processing, while also debugging a CUDA stream race condition that caused generation lag.
摘要、重點與章節標題由語言模型整理,細節(誰說的、數字、先後)可能有誤;要引用請以原始內容為準。
重點
- 將 RMS 正規化增益摺疊進權重以減少記憶體搬移。
- 延後除法讓矩陣乘法與向量運算能並行執行。
- 修復 CUDA 串流隱式匯總 bug 以確保資料正確性。
章節
依話題轉折切分,標題由 AI 產生
- 00:00Two lines of algebra for RMS norm
- 02:07Why a layer with no math costs so much time
- 03:44Weight folding, deferred division, dropped pre norm
- 06:33The output that came from the past
- 07:25Tensor cores and CUDA cores in parallel
- 08:45An implicit join and a race condition
- 09:58Making the post scale wait on both streams
- 10:42Results on open models, and what works out of the box
- 13:54Why you cannot do kernel work on a rented endpoint
- 16:00Paper, repo, and where to find him
提到的工具與公司
- CUDA
- FlashNorm
- RMS norm
- CUDA cores
- vLLM
- Hugging Face
適合誰看
適合需要最佳化 Transformer 推論效能或深入理解 CUDA 串流運作的工程師。
摘要依據
- 講者
- Filip Makraduli
- 依據
- 自動字幕
為什麼排在這裡
- 人氣
- 0.63
- 新鮮
- 0.76
在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算
相關內容
- 加快語言模型生成速度 (1/2):Flash Attention影片 ・ Hung-yi Lee ・ 50 分鐘 ・
- 打破长上下文内存瓶颈!深入拆解 Flash Attention 如何降维平方复杂度影片 ・ EZ.Encoder Academy ・ 1 小時 10 分 ・
- Going Further with CUDA for Python Programmers影片 ・ Jeremy Howard ・ 1 小時 18 分 ・
- 显存带宽和投机解码技术文章 ・ 懒猫(lazycat) ・
- Dev Community Live: CUDA Rust Meetup影片 ・ NVIDIA Developer ・ 2 小時 32 分 ・
- Why are diffusion LLMs so fast?影片 ・ Julia Turc ・ 22 分鐘 ・
這個來源最近的內容
摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)
