跳到主要內容
AI 武林
影片高階EN1.6 萬 次觀看

Weight Folding, CUDA Streams, and the Bug That Made My Model Speak Backwards — Filip Makraduli

來源 AI Engineer

看影片(在新分頁開啟原站)連到 YouTube・AI Engineer

其他版本:AIE Talks 摘要頁(在新分頁開啟)

摘要

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 產生

  1. 00:00Two lines of algebra for RMS norm
  2. 02:07Why a layer with no math costs so much time
  3. 03:44Weight folding, deferred division, dropped pre norm
  4. 06:33The output that came from the past
  5. 07:25Tensor cores and CUDA cores in parallel
  6. 08:45An implicit join and a race condition
  7. 09:58Making the post scale wait on both streams
  8. 10:42Results on open models, and what works out of the box
  9. 13:54Why you cannot do kernel work on a rented endpoint
  10. 16:00Paper, repo, and where to find him

提到的工具與公司

適合誰看

適合需要最佳化 Transformer 推論效能或深入理解 CUDA 串流運作的工程師。

摘要依據

講者
Filip Makraduli
依據
自動字幕

為什麼排在這裡

人氣
0.63
新鮮
0.76

在主題頁與搜尋結果裡,名次由相關、人氣、新鮮三個分數決定;這一頁沒有搜尋的關鍵字,所以沒有相關分數。排序怎麼算

這個來源最近的內容

AI Engineer 的所有內容

摘要由 AI 根據原文產生,可能有誤;完整內容請看原站。看影片(在新分頁開啟原站)