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 的決策 routing 回 Opus 以捕捉錯誤。TrueForge 透過 lazy tool loading、file offloading 與 script-based data processing 進一步減少 token 用量,在 DevRev 的 Enterprise Bench 上以大約三分之一的 tokens 達成了與 Claude Managed Agents 相當的 task success。本節說明如何將標準的 generative language model 轉換為 decision model,直接為預先定義的選項評分,而不是逐 token 生成文本。該流程包含 freeze base model backbone、掛載 LoRA adapters,並將 language model head 替換為可針對每個選項輸出 scores 的 decision head。Probabilities 透過 softmax 計算,網路使用 cross-entropy loss 進行訓練,隨後在 held-out data 上進行 confidence calibration。為了驗證此方法,一個以 Qwen3.5 0.8B 構建的 JEV-style decision model 在 60 個 training steps 內、使用 4GB VRAM 花費 10 分鐘,便將 accuracy 從 37% 提升至 65%。打造 production AI systems 對周圍 engineering stack 的依賴程度遠高於 base model 本身。作者概述了一個涵蓋 model foundations、inference and serving、context engineering、agent harnesses、retrieval and memory、adaptation and training、evaluation and observability,以及 safety and security 的八層架構。由於 compute-bound prefill 與 memory-bound decode 階段之間的差異,大部分隱藏成本都發生在 inference layer。跨這些層次疊加多種 optimization techniques,相較於 naive baselines 可將 inference costs 降低 5 到 8 倍。
閱讀原文 ↗在 Open Agent Harness 內執行 Jev
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 的決策 routing 回 Opus 以捕捉錯誤。TrueForge 透過 lazy tool loading、file offloading 與 script-based data processing 進一步減少 token 用量,在 DevRev 的 Enterprise Bench 上以大約三分之一的 tokens 達成了與 Claude Managed Agents 相當的 task success。
- 使用 Jev 進行比對決策達到了與 Claude Opus 相當的 accuracy,同時在 40 個 test requests 中將 decision costs 降低了 150 倍。
- Jev 是 TypeSafe AI 開發的 decision model,能在不生成 freeform text 的情況下輸出 structured choices 與 calibrated confidence scores。
- 在測試期間,將 low-confidence 的 Jev predictions routing 回 Opus 進行審查,成功攔截了 5 個不正確的比對。
- 該客戶追蹤 agent 的架構採用 TrueForge 作為 harness、Jev 負責決策,並使用 Daytona 作為 code execution sandbox。
- TrueForge 透過 on demand 載入 tool definitions、將大量輸出寫入檔案,以及透過 scripts 執行資料任務,將 token context 降至最低。
- 在 DevRev 的 Enterprise Bench 上,TrueForge 僅使用約三分之一的 tokens,就達成了與 Claude Managed Agents 相當的 task completion。
- TrueForge 以 MIT license 開源,可透過單一指令在 local 執行。
如何將 LLM 轉變成 decision model?
本節說明如何將標準的 generative language model 轉換為 decision model,直接為預先定義的選項評分,而不是逐 token 生成文本。該流程包含 freeze base model backbone、掛載 LoRA adapters,並將 language model head 替換為可針對每個選項輸出 scores 的 decision head。Probabilities 透過 softmax 計算,網路使用 cross-entropy loss 進行訓練,隨後在 held-out data 上進行 confidence calibration。為了驗證此方法,一個以 Qwen3.5 0.8B 構建的 JEV-style decision model 在 60 個 training steps 內、使用 4GB VRAM 花費 10 分鐘,便將 accuracy 從 37% 提升至 65%。
- Decision models 透過 decision head 直接為預定義選項評分,而非逐 token 生成文字。
- Adaptation 流程會 freeze LLM backbone、加入 LoRA 組件,並將 LM head 替換為 decision head。
- Scores 會透過 softmax 轉換為每個獨立問題的 probability distributions。
- 在訓練期間,僅透過 cross-entropy loss 更新 decision head 和 LoRA parameters。
- 基於 Qwen3.5 0.8B 的 JEV-style decision model 在 4GB VRAM 上花費 10 分鐘進行 60 steps 後,accuracy 從 37% 提升至 65%。
- 在 inference 階段,單次 forward pass 即可同時為多個決策中的所有選項評分。
Production AI 系統背後的 8 層工程架構
打造 production AI systems 對周圍 engineering stack 的依賴程度遠高於 base model 本身。作者概述了一個涵蓋 model foundations、inference and serving、context engineering、agent harnesses、retrieval and memory、adaptation and training、evaluation and observability,以及 safety and security 的八層架構。由於 compute-bound prefill 與 memory-bound decode 階段之間的差異,大部分隱藏成本都發生在 inference layer。跨這些層次疊加多種 optimization techniques,相較於 naive baselines 可將 inference costs 降低 5 到 8 倍。
- Production AI systems 包含八個核心 engineering layers:model foundations、inference and serving、context engineering、agent harnesses、retrieval and memory、adaptation、evaluation 以及 safety。
- Compute-bound prefill 階段與 memory-bound decode 階段之間的 inference costs 差異極大,在運行 Llama 70B 的 H100 上,GPU utilization 從 92% 急劇下降至 28%。
- 疊加多項 optimizations(例如 quantization、PagedAttention、speculative decoding 與 prefix caching)相較於 naive FP16 inference 可帶來 5 到 8 倍的成本降幅。
- Context engineering 透過 budgeting、offloading 與 compaction 來解決如 context rot 和「lost in the middle」效應等 output degradation 問題。
- Model Context Protocol (MCP) 作為新興的標準介面,負責連接 models 與外部 tools 及 data sources,消除了自訂的 N-by-M integrations。