AI 热点

UCSD Hao AI Lab 开源 RSIBox,让运行中的 AI 系统支持代码热重载

UCSD Hao AI Lab更新于 12月1日 05:57

Towards Live-Editable AI Infra for RSI 🚀

AI 导读

UCSD Hao AI Lab 开源 RSIBox,将运行中的 AI 系统变为可实时编辑的沙箱,让编码智能体无需完整重启即可热重载并测试代码。其在 vLLM 上将单次编辑检查从 228s 缩短至 2.4s,提速最高 95x,在 Megatron-LM 上提速 >100x,并为 vLLM、SGLang、Megatron-LM、FastVideo、veRL 和 Miles 提供统一沙箱。框架还包含 GPU 状态快照、自动回滚、热崩溃恢复和用于接入新代码库的 Toolsmith 智能体。

推荐理由

精选AI 评分 70

RSIBox 将 GPU 系统的代码验证从冷重启改为局部热重载,为缩短编码智能体的自主优化循环提供了工程路径。

主题

标签

正文

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: https://t.co/KGDQvwj9wh Code: https://t.co/LKkAu16hTI

来源

UCSD Hao AI Lab