跳到正文
Hao AI Lab· @haoailab · X·· 17 小时前AI 评分50
AI 导读

Hao AI Lab 发布 RSIBox,把运行中的 AI 系统变成可热加载的沙箱,让 coding agent 秒级验证代码改动。

正文

Towards Live-Editable AI Infra for RSI 🚀

Coding agents can write an optimization in seconds, but testing even a 1-line change in vLLM can trigger a full reboot that takes minutes, reloading model weights, KV caches, NCCL groups, and CUDA graphs the edit never touched. And it's not just vLLM: almost every ML system pays this start-up cost on every edit.

Web developers have had hot reload for more than a decade. That made us ask:
How can we make modern ML systems hot-reloadable too?

Introducing RSIBox: a framework that turns running AI systems into live-editable sandboxes, so coding agents can hot-reload code and test it in seconds.

RSIBox has three parts:
• A live-reload runtime: swaps Python functions, rebuilds only the edited Triton kernels, recaptures only the affected CUDA graphs, and applies each edit to every GPU rank at once, while weights, KV caches, and NCCL stay warm
• One sandbox API (install / check / reset / uninstall) with a safety layer: GPU state snapshots, automatic rollback, and warm crash recovery
• A Toolsmith agent that mines a new codebase, wires in the runtime, and builds its RSIBox sandbox, then stays on call when the coding agent hits an unhooked path

In end-to-end RSI loops, RSIBox delivers:
• Sub-second hot reloads for most edits, instead of multi-minute reboots
• Up to 95x faster single-edit checks on vLLM (228s → 2.4s) & >100x on Megatron-LM
• 1.4x to 3.1x sooner to beat restart baselines across 5 AI systems
• One unified sandbox across vLLM, SGLang, Megatron-LM, FastVideo, veRL & Miles

Blog: http://haoailab.com/blogs/rsibox/
Code: http://github.com/hao-ai-lab/rsibox

来源:Hao AI Lab · x.com