The next AI inference architecture, clearly explained (4x faster than GPUs)
在單一請求的 LLM decode 期間,由於中間 activations 頻繁往返於 High Bandwidth Memory (HBM),GPU 會遭遇嚴重的 memory-bandwidth 瓶頸以及 kernel-boundary stalls。SambaNova 的 Reconfigurable Dataflow Unit (RDU)(例如 SN40L)透過在空間上映射 decoder layers,並直接經由 on-chip SRAM 傳遞 activations,同時從 HBM prefetch weights 來解決此問題。在像 GLM-5.3 這樣的大型模型上進行測試,展現出約為單 GPU 上限 4 倍的 decode throughput;而將 NVIDIA 晶片用於 prefill 並搭配 RDU 負責 decode 的 disaggregated 設定,則顯示出顯著的 end-to-end 效能提升。Autoregressive LLM 嚴格使用 causal attention 一次生成一個 token,讓早期 token 的 key-value (KV) representations 能夠在各 decoding steps 間安全地被 cache。相較之下,masked diffusion models 則利用 bidirectional context 同時預測多個 tokens,並根據 confidence scores 迭代地進行 unmask 或 denoise 序列。雖然 diffusion 允許 generation steps 數量少於總 token 數,但 bidirectional attention 會改變過去的 representations,使標準的 KV caching 變得複雜。因此,diffusion models 在 step budgets、計算成本以及對文字或程式碼 infilling 等任務的適用性方面,呈現出截然不同的工程權衡(tradeoffs)。
下一代 AI inference architecture 深入解析(比 GPUs 快 4 倍)
在單一請求的 LLM decode 期間,由於中間 activations 頻繁往返於 High Bandwidth Memory (HBM),GPU 會遭遇嚴重的 memory-bandwidth 瓶頸以及 kernel-boundary stalls。SambaNova 的 Reconfigurable Dataflow Unit (RDU)(例如 SN40L)透過在空間上映射 decoder layers,並直接經由 on-chip SRAM 傳遞 activations,同時從 HBM prefetch weights 來解決此問題。在像 GLM-5.3 這樣的大型模型上進行測試,展現出約為單 GPU 上限 4 倍的 decode throughput;而將 NVIDIA 晶片用於 prefill 並搭配 RDU 負責 decode 的 disaggregated 設定,則顯示出顯著的 end-to-end 效能提升。
- GPU decode 的運作效能大約比 compute-bound 上限低了 300 倍,因為單一請求生成嚴格受限於 HBM memory bandwidth(每讀取 1 byte 約僅 1 FLOP)。
- 在 GPU 上,像 vLLM 和 SGLang 這類 frameworks 在 Llama-3.2-1B 上最多只能達到 H100 bandwidth 的 50%,這是由於 kernel launch boundaries 以及 activation 來回 HBM 所致。
- SambaNova 的 SN40L RDU 利用 on-chip SRAM 在運算之間 pipeline activations,無需往返 main memory,在 16 顆晶片上使用 single-kernel loops 於 Llama 3.1 8B 達成了 1,100 tokens/s。
- 針對 753B 的 MoE 模型 GLM-5.3,SambaNova 的 Address Generation and Coalescing Unit (AGCU) 以 streaming 方式處理晶片間的 token 通訊,在 SambaNova Cloud 上實現了 179 tokens/s 的 decode 速度。
- 經 Artificial Analysis 驗證,採用 NVIDIA B200 進行 prefill 並搭配 SambaNova SN40 RDU 進行 decode 的 disaggregated inference 架構,達到了純 B200 配置 2 倍的速度。
Autoregressive LLMs vs. diffusion LLMs 深入解析
Autoregressive LLM 嚴格使用 causal attention 一次生成一個 token,讓早期 token 的 key-value (KV) representations 能夠在各 decoding steps 間安全地被 cache。相較之下,masked diffusion models 則利用 bidirectional context 同時預測多個 tokens,並根據 confidence scores 迭代地進行 unmask 或 denoise 序列。雖然 diffusion 允許 generation steps 數量少於總 token 數,但 bidirectional attention 會改變過去的 representations,使標準的 KV caching 變得複雜。因此,diffusion models 在 step budgets、計算成本以及對文字或程式碼 infilling 等任務的適用性方面,呈現出截然不同的工程權衡(tradeoffs)。
- Autoregressive models 使用 causal attention 逐個 token 延伸序列,使得早期的 KV states 能夠被 cache 並重複使用。
- Masked diffusion models 利用 bidirectional context 同時為多個 masked positions 預測候選 tokens。
- Diffusion models 使用基於 confidence 的 sampling 來保留選定的預測,同時將其餘 tokens 維持 masked 狀態以供後續 steps 處理。
- Bidirectional attention 使標準的 KV caching 變得複雜,因為當周圍 positions 更新時,representations 可能會隨之改變。
- Block diffusion 架構可以針對已完全生成的文字 blocks 啟用 KV caching。
- 在 diffusion models 中,較少的 generation steps 並不能保證更低的 latency,因為每個 step 都會處理多個 positions 並產生相當龐大的運算量。
- Diffusion LLM 中的 bidirectional conditioning 原生支援文字或程式碼的填空(infilling)。