AI Trends

UCSD Hao AI Lab Open-Sources RSIBox, Enabling Code Hot Reloading in Running AI Systems

UCSD Hao AI LabUpdated Dec 1 05:57

AI summary

UCSD Hao AI Lab has open-sourced RSIBox, which turns running AI systems into real-time editable sandboxes, allowing coding agents to hot-reload and test code without a full restart. On vLLM, it reduces the time for a single edit check from 228s to 2.4s, delivering up to a 95x speedup; on Megatron-LM, it achieves a >100x speedup. It also provides a unified sandbox for vLLM, SGLang, Megatron-LM, FastVideo, veRL, and Miles. The framework also includes GPU state snapshots, automatic rollback, hot-crash recovery, and a Toolsmith agent for integrating new codebases.

Why read this

SelectedAI score 70

RSIBox replaces cold restarts with localized hot reloading for code validation in GPU systems, providing an engineering path to shorten the autonomous optimization loop for coding agents.

Topics

Tags

Body

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

Source

UCSD Hao AI Lab