跳到正文
Hao AI Lab· @haoailab · X·AI 评分58

Hao AI Lab 发布 RSIBox,让 AI 系统支持秒级热重载

AI 导读

UCSD Hao AI Lab 发布 RSIBox 框架,把运行中的 AI 系统变成可实时编辑的沙箱,让编码智能体秒级热重载代码并测试,避免 vLLM 等系统改一行代码也要数分钟全量重启。

正文 · 原文

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: haoailab.com/blogs/rsibox/
Code: github.com/hao-ai-lab/rsibox

来源:Hao AI Lab · x.com