← 回到 Reading
Daily Dose of DS 2026-10-19

Agents 2.0 is here!

在基礎款 M5 MacBook Pro 上執行 Qwen3.5 9B 的本地 inference benchmark 中,Uzu engine 達到每秒 92.1 tokens,大幅超越 llama.cpp(22.0 tokens/s)與 MLX(25.1 tokens/s)。在該硬體上的傳統 decoding 在物理上受限於 memory bandwidth,瓶頸大約在每秒 29 tokens,但 Uzu 透過針對 Apple Silicon 最佳化的 speculative decoding 繞過了這項限制。藉由 draft 最多 16 個位置、使用 Weaver 組裝連貫的 sequences,並以 tree structure 進行驗證,Uzu 平均每次 full-model pass 能產出 7.5 個 output tokens。這款開源 engine 還採用了自訂的 quantized checkpoints 以及在 M5 晶片上加速的 int8 Metal kernels。包括 Anthropic、OpenAI 和 xAI 在內的主要 AI labs 正在積極打造 AI coworkers,但其 proprietary solutions 將 memory、runtime 與 orchestration 綁定至單一 vendor。為了克服不同 agent workflows 之間的 vendor lock-in,開源專案 Switch 提供了一個可 self-host 的 coordination layer。Switch 能透過 Slack、Teams 和 Mattermost 等通訊平台,跨 Claude Code、Codex 及本地系統等工具,實現 human-in-the-loop workflows 與 multi-agent 協作。Continuous batching 透過在每個 iteration boundary 動態排程 requests 來最佳化 LLM inference,而非將 static batch 固定直到最長的 generation 結束。相較於 static batching 會在 sequences 提前結束時將 GPU memory bandwidth 浪費在空 slots 上,continuous batching 會立即以排隊中的 requests 取代已完成的 requests。Anyscale 在 OPT-13B 上的 benchmarks 顯示,較高的 output length variance 會大幅降低 static batching 的效能,而像 vLLM 這類 continuous batching 系統的 throughput 最高可達 naive serving 的 23 倍。包括 vLLM、SGLang、TGI 和 TensorRT-LLM 在內的主要 LLM serving frameworks 目前均預設支援此方法。

閱讀原文 ↗
目錄 3 段
  1. 01這款 inference engine 執行 LLMs 的速度比 llama.cpp 快 4 倍:
  2. 02Agents 2.0 來了!
  3. 03以視覺化方式解說 LLMs 中的 Continuous batching:
OPEN-SOURCE

這款 inference engine 執行 LLMs 的速度比 llama.cpp 快 4 倍:

在基礎款 M5 MacBook Pro 上執行 Qwen3.5 9B 的本地 inference benchmark 中,Uzu engine 達到每秒 92.1 tokens,大幅領先 llama.cpp(22.0 tokens/s)與 MLX(25.1 tokens/s)。在該硬體上的傳統 decoding 在物理上受限於 memory bandwidth,瓶頸大約在每秒 29 tokens,但 Uzu 透過針對 Apple Silicon 最佳化的 speculative decoding 繞過了這項限制。透過 draft 最多 16 個位置、利用 Weaver 組裝連貫的 sequences,並以 tree structure 進行驗證,Uzu 平均每次 full-model pass 可產出 7.5 個 output tokens。該開源 engine 還利用了自訂的 quantized checkpoints 以及 M5 晶片上加速的 int8 Metal kernels。

  • 在 Apple M5 MacBook Pro 上執行 Qwen3.5 9B 時,Uzu 達到 92.1 tokens/s,相較之下 llama.cpp 為 22.0 tokens/s,MLX 則為 25.1 tokens/s。
  • 基礎款 M5 上的 standard decoding 受限於其 153 GB/s 的 memory bandwidth,在 5.2 GB model weight stream 下的理論極限約為 29 tokens/s。
  • Uzu 採用 speculative decoding,而非 standard decoding 中每次 pass 僅生成單一 token 的方式,平均每次 verification pass 可產出 7.5 個 output tokens。
  • 該 engine 最多可 draft 16 個 token 位置,使用 Weaver 將 candidate tokens 組織成 sequences,並以 tree 的形式進行驗證。
  • Uzu 為開源專案,提供 Rust、Swift、Python 和 TypeScript 的 bindings,並利用 M5 Metal kernels 進行加速的 int8 matrix execution。
TOGETHER WITH SWITCH

Agents 2.0 來了!

包括 Anthropic、OpenAI 和 xAI 在內的主要 AI labs 正在積極打造 AI coworkers,但其 proprietary solutions 將 memory、runtime 與 orchestration 綁定至單一 vendor。為了克服不同 agent workflows 之間的 vendor lock-in,開源專案 Switch 提供了一個可 self-host 的 coordination layer。Switch 能透過 Slack、Teams 和 Mattermost 等通訊平台,跨 Claude Code、Codex 及本地系統等工具,實現 human-in-the-loop workflows 與 multi-agent 協作。

  • Proprietary AI coworker 產品將 models、runtimes、memory 與 orchestration 綁定至單一公司的技術棧,因而造成 vendor lock-in。
  • Switch 是一個開源且可 self-host 的 coordination layer,旨在單一 workspace 中連結人類以及來自不同 provider 的 heterogeneous agents。
  • Switch 將 multi-agent 協作整合至常見的通訊平台,包括 Slack、Teams、Discord、Telegram 和 Mattermost。
  • Switch 使用 Manager agent 來動態建立 rooms、將任務指派給專業的 agent roles,並在多個並行的 incident investigations 之間交叉比對 context。
  • Switch sessions 可以使用 Switch Console 進行即時檢視與監控,並可透過 Docker 在本地端執行。
LLMOps

以視覺化方式解說 LLMs 中的 Continuous batching:

Continuous batching 透過在每個 iteration boundary 動態排程 requests 來最佳化 LLM inference,而非將 static batch 固定直到最長的 generation 結束。相較於 static batching 會在 sequences 提前結束時將 GPU memory bandwidth 浪費在空 slots 上,continuous batching 會立即以排隊中的 requests 取代已完成的 requests。Anyscale 在 OPT-13B 上進行的 benchmarks 顯示,較高的 output length variance 會大幅降低 static batching 的效能,而像 vLLM 這類 continuous batching 系統的 throughput 最高可達 naive serving 的 23 倍。包括 vLLM、SGLang、TGI 和 TensorRT-LLM 在內的主要 LLM serving frameworks 目前均預設支援此做法。

  • 在 static batching 下,提早結束的 requests 會持續佔用其 batch slots 直到最長的 request 完成,導致在為空 slots 讀取 model weights 時浪費了 GPU memory bandwidth。
  • Continuous batching 在每次單一 forward pass 後重新排程 requests,立即剔除已完成的 requests 並放入新的排隊 requests。
  • Output length variance 是造成 static batching 與 continuous batching 效能差異的主要關鍵因素。
  • Anyscale 在 A100 上針對 OPT-13B 進行的 benchmark 顯示,當 output lengths 存在差異時,vLLM 的 throughput 可達 naive Hugging Face serving 的 23 倍。
  • Continuous batching 在 vLLM、SGLang、TGI 和 TensorRT-LLM 中皆已預設實作,NVIDIA 則將此機制稱為 in-flight batching。