Reading

深讀

ByteByteGo、Daily Dose of DS、Berkeley RDI、ExplainThis、Latent Space、The Batch、DataTalks.Club Weekly 這 7 份電子報的分段重點,最近 120 天共 228 篇,其中 Daily Dose of DS 97 篇。

Daily Dose of DS 2026-11-03 原文 ↗
Agent Framework vs. Agent Harness, clearly explained!

LLM routing 旨在透過將簡單任務導向較便宜的模型,並保留 frontier models 處理複雜查詢來降低成本,但在 production 環境部署中經常遇到陷阱。分類會增加 latency、意圖可能被誤判,且靜態 routing 規則會隨時間退化。最關鍵的是,在 agent session 期間切換模型會使 prefix cache 失效,反而意外增加費用並導致行為不一致。可靠的 LLM routing infrastructure 必須透過 session pinning 與 model affinity 來管理整個 user session,而不是孤立地評估個別請求。Agent framework 為 model、tool、state 和 orchestration 提供模組化組件與抽象層,讓…

Daily Dose of DS 2026-11-02 原文 ↗
12 Optimizers for Training Neural Networks, clearly explained!

AI coding agents 通常不會跨 session 保留知識,因而重複過去的錯誤,且無法在不同工具之間轉移 context。由 Asymptote Labs 開發的 Beacon 是一個開源 memory layer,旨在擷取超過 20 種 agent harness 的 execution traces,將過去的問題解決過程轉化為可重用的 skills。它可在本機端運作或透過 Beacon Cloud 運行,後者提供每小時分析,針對 security risks、reusable skills 和 behavioral inefficiencies 產出 findings。此外,像 beacon handoff 等功能讓工程師能夠在不同的 coding agents 與團隊之間無縫轉移 sessio…

Daily Dose of DS 2026-10-31 原文 ↗
Why Other Requests Change Your LLM's Output

The Unified Harness Protocol (UHP) 引進了標準化介面,用於跨不同 AI agent harnesses 執行 agent tasks。HarnessRouter 作為 UHP 的 open-source server 實作,目前支援包含 Claude Code、Codex 和 Gemini CLI 在內的 30 種 harness bases。Benchmarks 顯示,在維持 model 不變的情況下切換 harness,能大幅降低 task credit 成本。此外,Alibaba 的 Qoder 也已採用 UHP,作為可透過 HarnessRouter 存取的 agent backend。在 temperature 0 下進行 LLM inference 仍可能產生 no…

Daily Dose of DS 2026-10-30 原文 ↗
RAG vs. Vectorless RAG, clearly explained!

Mirai 展示了在其專為 Apple Silicon 打造的 inference engine「Uzu」中,結合 DFlash 與 Weaver 執行 speculative decoding,在搭載 Qwen3.5 9B 的 M5 MacBook Pro 上達到了每秒 92.1 tokens(92.1 tokens per second)。這相較於 baseline decoding 提升了 4 倍,且比 standard speculative decoding 快了 2.6 倍。Weaver 透過一個 56.7M 參數的 Transformer layer 構建 dependency-aware candidate trees,並在 single pass 中完成驗證,解決了像 DFlash 這類 pa…

Daily Dose of DS 2026-10-29 原文 ↗
Prefix-Aware LLM Routing, clearly explained

在 text-to-SQL 等任務上,使用透過可驗證獎勵的強化學習(reinforcement learning via verifiable rewards, RLVR)訓練大型語言模型時,需要精心設計的多層次 verifier,而非單純的執行檢查。僅檢查查詢是否能執行的基礎 verifier,可能會獎勵抓取錯誤欄位或遺漏 filter 的錯誤 SQL 查詢。透過建構 verifier 依序檢查查詢執行、對照 ground truth 的結果準確性,以及如 latency 等維運效能,使用 GRPO 等演算法訓練的模型就能學會正確的行為。Amazon SageMaker AI 透過 serverless 模型客製化工作流程簡化了這個過程,在管理基礎架構的同時,讓工程師能獨立迭代獎勵邏輯。Prefix-awar…

Daily Dose of DS 2026-10-28 原文 ↗
Why DeepSeek stores its KV cache on disk

Magnitude 是一個以 Rust 編寫的開源 inference engine,旨在讓本地端的大型語言模型在 Apple Silicon 上運行得更快。與使用折衷通用 GPU kernels 的預建引擎不同,Magnitude 會直接在 host machine 上編譯並 benchmark kernel configurations,以將特定晶片架構的效能最大化。在基礎版 M5 MacBook Pro 上運行 Qwen3.5 4B 的 benchmark 測試中,Magnitude 相比 Ollama 實現了 1.6 倍更快的 prefill 與 2.7 倍更快的 decode 速度。該引擎還具備自動 speculative decoding 配對以及 shared prefix caching 功能,…

Daily Dose of DS 2026-10-27
Which OCR Solution Works Best for Your Documents?

在 M5 MacBook Pro 上針對 Qwen3.5 9B 模型的 benchmark 顯示,uzu inference engine 達到了 92.1 tokens per second,大幅超越 llama.cpp 與 MLX。傳統的 single-token decoding 受限於 memory bandwidth,導致在 M5 晶片上的理論硬體上限約為 29 tokens per second。uzu 透過 speculative decoding 方法規避了此限制,結合 DFlash drafter 與 Weaver adapter 來生成 candidate token trees,並由 base model 在 single pass 中完成驗證。由 Mirai Labs 開發的 uzu 是…

Daily Dose of DS 2026-10-26 原文 ↗
Why Temperature 0 Isn't Deterministic in LLM Inference

在處理劑量和參考代碼等精準資訊時,LLM voice agents 在 speech-to-text 與 text-to-speech 兩層的語音準確度至關重要。Deepgram 的 Flux TTS 著手解決 outbound speech 層的問題,專注於保留技術名詞與 alphanumeric 字串的精確度。在評測中,Flux TTS 在藥品名稱和追蹤號碼等複雜術語上達到了 3.4% 的 word error rate。一項模擬獸醫處方補充的實際測試顯示,它能精確保留動態細節,例如變動的領取時間和處方編號。即使在 temperature 0 下,由於 floating-point addition 具有 non-associative 特性,LLM inference 在多次執行間仍可能產生 non-de…

Daily Dose of DS 2026-10-24
How CUDA Graph Replay Cuts Inference Overhead

開發者已開源 HarnessRouter,這是一個讓 Grok Bot 能夠跨多種外部 agent harness 協調任務的基礎架構層。透過採用 Unified Harness Protocol (UHP),HarnessRouter 將異質 runtime 之間的 session 處理、streaming、檔案管理與錯誤復原進行了標準化。在測試場景中,Grok Bot 成功編排了一套工作流程,將資料分析委派給 DeepSeek Harness,並將儀表板建立工作委派給 Codex。這種做法讓外部專門工具得以保留其原生 tools、models 與執行迴圈,同時由 Grok Bot 在單一對話中綜理全局。GPU 推論經常會因模型在每次 forward pass 中執行大量短操作而面臨 CPU launch o…

Daily Dose of DS 2026-10-23 原文 ↗
6 KV Cache Quantization Approaches

打造 AI agents 的競爭優勢不會來自底層的 model,而是來自於捕捉全端 user trajectories,並持續從 user interactions 中學習。透過觀察使用者在何處介入、手動執行了什麼,以及反覆要求什麼,agent 可以持續更新其 skills、evaluations 與 datasets。CopilotKit 推出了 CLiF,這是一個可 self-host 的 continual learning 平台,它利用 AG-UI protocol 來同時捕捉 agent traces 和 user actions。建議打造 user-facing agents 的團隊儘早開始收集全端 trajectory 資料,以建立可持續的護城河。對 model weights 進行 quanti…

Daily Dose of DS 2026-10-22 原文 ↗
Build a Jev-powered Agentic RAG

雖然 vLLM 需要獨立的 server instances 與 routing layers 才能執行不同的 models 或 inference tasks,但 SIE 系統支援在單一 GPU 上同時 serving 多個不同的 models。在 benchmark 測試中,SIE 同時運行了 embedder、reranker、entity extractor 與 generator,在 32 個 in-flight requests 下完成了 2,700 個 requests,且保持零失敗率。該系統透過 dynamic loading、compute-aware batching、shared GPU memory 以及 opportunistic model eviction 實現了這種 multi-…

Daily Dose of DS 2026-10-21 原文 ↗
Give Claude Code, Codex, and Cursor a Self-improving Shared Memory

Onyx 是一款開源、可自託管(self-hostable)的 AI chat 平台,定位為 Claude 的替代方案,支援包括 GPT、Gemini 與 Llama 在內的多種 LLM。它提供 agent workflows、code interpreter、MCP 支援,以及跨 40 多個 data connectors 的 retrieval-augmented generation(RAG)。不同於 Claude 透過 MCP 進行 runtime querying,Onyx 直接為資料建立索引,實現更快且更可靠的搜尋。該軟體基於 MIT license 發布,並可使用 Docker 部署。像 Cursor、Claude Code 與 Codex 這類 coding agents 通常各自獨立運作(op…

Daily Dose of DS 2026-10-20 原文 ↗
The Next Step After Karpathy’s Agentic Engineering

本文示範如何使用 Google 的 Agents CLI、ADK 與 Agent Runtime 打造 production-grade、resumable 的 AI agent。當 long-running 的 agent workflow 需要 human approval 時,傳統的 in-memory process 面臨遺失 state 的風險,導致重啟時出現重複執行或不一致的 retrieval evidence。透過運用 ADK 的 suspension 功能、persistent session store(如本機的 SQLite 或雲端的 Agent Runtime)以及 idempotency key,agent 可以安全地暫停、終止 runtime process,並在稍後恢復執行,而不會…

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…

Daily Dose of DS 2026-10-16 原文 ↗
Run Jev Inside an Open Agent Harness

AI agents 經常在基礎選擇任務(例如將 requests 比對到預先定義的清單)上浪費 tokens。透過結合 TrueFoundry 的 TrueForge agent harness、TypeSafe AI 的 Jev decision model 以及 Daytona 的 execution sandbox,研究人員打造了一個客戶追蹤 agent,在 40 個 requests 上達到了與 Claude Opus 相同的 accuracy,且 decision cost 降低了 150 倍。Jev 在無需 text generation 的情況下產生帶有 calibrated confidence scores 的 structured selections,並將 low-confidence 的…

Daily Dose of DS 2026-10-15
A Full Walkthrough on Multimodal Jev

Unified Harness Protocol (UHP) 引入了標準化介面,旨在跨不同的 agent harness 執行 agent 任務。HarnessRouter 作為 UHP 的開源伺服器實作,負責管理產品後端與已設定 harness 之間的通訊。該系統依賴三個核心元件:Gateway、Runner 以及 MCP 伺服器與瀏覽器等內建工具。此架構實現了可互換的 agent 基礎設施,讓使用者無需重寫產品程式碼即可替換 Codex 和 Claude Code 等 harness,或比較它們的輸出結果。Jev 推出了多模態功能,使該工具能夠處理視覺輸入。一段詳細的操作示範影片展示了 Jev 的運作方式,包括處理單張與多張圖片,以及平行執行提問。該簡報也回顧了與系統相關的注意事項與潛在 failure m…

Daily Dose of DS 2026-10-14 原文 ↗
Building a Durable Multi-Agent System with LangGraph and LangSmith

Agent Engineering 課程的第 5 與第 6 部分重點在於超越單純的 tool calling,轉向使用 LangGraph 與 LangSmith 構建可靠且 production-ready 的 multi-agent 系統。第 5 部分詳細介紹 parallel specialist orchestration,透過 reducer-backed shared state 與 deterministic merges 來解決 concurrency 挑戰。第 6 部分專注於 system durability,詳細說明如何利用 checkpoints、graph versioning 和 evaluation gates,在重啟、human approvals 及部署之間管理 executi…

Daily Dose of DS 2026-10-13 原文 ↗
A Model Decision Is Only as Safe as the System That Executes It

Uzu 是由 Mirai 開發的開源 inference engine,在 Apple Silicon 上的表現顯著優於傳統的本機 decoding engine。在 Apple M5 MacBook Pro 上執行 Qwen3.5 9B 時,Uzu 達到了每秒 92.1 個 token(tokens per second),超越了在 llama.cpp 與 MLX 等工具中觀察到約每秒 29 個 token 的理論 memory-bandwidth 上限。它透過採用 speculative decoding 來繞過這個瓶頸,使用 Weaver 預測起草多達 16 個位置,並以樹狀結構驗證多個候選序列。Uzu 還結合了自訂的 quantized checkpoints 以及 Metal kernels,充分利用…

Daily Dose of DS 2026-10-12
6 Parallelism Strategies for LLM Inference in Production

開發者已開源 HarnessRouter,這是一個隨插即用的基礎架構層,讓使用者能透過統一介面運行各種 agent harness。該系統支援包括 Codex、Hermes、Claude Code、DeepSeek Harness 與 System One 在內的 harness,並標準化了 session、streaming、檔案存取、取消操作與 failure recovery。在此架構下,agent harness 會在本地端執行。該介面由 Unified Harness Protocol (UHP) 定義,提供與 OpenAI Responses API 的相容性。在多個 GPU 上平行化 LLM 推論可消除本地運算與記憶體瓶頸,但會帶來 interconnect 通訊開銷。六種主要的平行化策略解決了不…

Daily Dose of DS 2026-10-11 原文 ↗
How to Train an LLM With Verifiable Rewards on SageMaker AI

Reinforcement Learning from Verifiable Rewards (RLVR) 讓語言模型在 ground-truth 答案可透過程式化驗證時,無需人工策劃的 chain-of-thought traces 即可最佳化推理行為。在 Amazon SageMaker AI 的示範中,Qwen3 0.6B 透過 Group Relative Policy Optimization (GRPO) 與自訂的 Python reward function(針對正確性、格式與推理進行評分)進行訓練。此 serverless RLVR 訓練 workflow 改善了算術任務的表現,將 MATH benchmark 的 accuracy 從 0.406 提升至 0.507。隨後,fine-tuned…