Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

open-agent-infra/RSInfer

Machine Learning

An OpenAI-compatible LLM serving engine that hot-reloads schedulers, kernels and models on live GPUs without restarts.

117
5
Python
Apache-2.0
4 days old

What It Does

RSInfer is a self-contained, OpenAI-compatible LLM serving engine whose distinguishing feature is safe live mutation: schedulers, model layers, attention backends and kernels can be rewritten and applied while GPU weights and KV caches stay resident. Instead of tearing down processes and reloading tens to hundreds of gigabytes of weights, it treats every component as a hot-pluggable Unit and derives the minimal safe reload from each change.

A microkernel core (engine/framework.toml, roughly 10K lines) contains no token, scheduler, KV-cache or tensor-parallel concepts; serving logic lives in 44 Units, split into long-lived State Units (weights, HBM pools, NCCL communicators) and reloadable Logic Units. Given a change set, core.deps decides which Units reload, which CUDA graphs are recaptured and whether traffic must drain, then commits atomically across GPU workers. The README reports 1.0–2.2 s live updates on 1×SM100 versus 64–104 s cold restarts, and 95 zero-restart applies in a 6-hour autonomous session on 4×SM100.

It targets AI systems engineers and infrastructure researchers running agent-driven kernel and scheduler optimization on live inference fleets, with reference support for Qwen3.8-27B on one SM100 and DeepSeek-V4.1-Flash-1017 on four SM100 GPUs.

Quick Start

Requirements: Python 3.12, an activated venv, NVIDIA SM100 GPUs and a DeepSeek checkpoint. The one-command script aligns CUDA_HOME, nvcc, LD_LIBRARY_PATH and Triton paths to the active PyTorch CUDA version.

source /path/to/venv/bin/activate
export RSINFER_MODEL=/path/to/DeepSeek-V4.1-Flash-1017
./deploy/serve_ds1017.sh serve --gpus 0,1,2,3
./deploy/serve_ds1017.sh status
./deploy/serve_ds1017.sh chat "Explain live hot-reloading in three sentences." --max-tokens 128

The server exposes an OpenAI-compatible endpoint on port 8000, so standard chat-completions clients work. After editing code, check and stage the change before applying it:

./deploy/serve_ds1017.sh control check --source .
./deploy/serve_ds1017.sh control apply --source . --dry-run
./deploy/serve_ds1017.sh control apply --source . --intent "describe your change"

sleep --wait-empty releases GPU memory and wake restores it. A fuller walkthrough, including a rollback demo and log locations, is in the quickstart guide; single-GPU and CPU-debug usage goes through deploy/rsinfer.py as described in the deploy reference.

Development and Validation

Type checking, unit tests and formal verification run without a GPU:

uv sync --python 3.12 --extra cpu
uv run pyright
OMP_NUM_THREADS=1 uv run pytest -n 8
uv run python tests/framework/formal/run.py --bootstrap --replay

The repository also ships benchmark harnesses for the 131K prefill/decode sweeps and AgentX multi-turn traces; dataset preparation is documented in the benchmark guide. Model-specific optimizations are expected to live on forks and RSI branches, while shared serving infrastructure such as PD disaggregation and multi-node support is merged back into master.

Constraints

  • The headline numbers depend on NVIDIA SM100 hardware and the listed checkpoints; the code requires Python 3.12 and CUDA toolchains matching the active PyTorch build.
  • v2 roadmap items — elastic EP, multi-node DP16+EP16, disaggregated prefill/decode and standalone eval/lineage daemons — are not yet available.
  • Custom kernels must be built and installed separately via AKA; the README notes that optimal kernels are tightly coupled to the (model, hardware, workload) tuple, so master is deliberately lean.
  • Adapted third-party components keep their upstream licenses (SGLang and DeepInfer under Apache-2.0, mini-sglang and DeepSeek under MIT) alongside the project's own Apache-2.0 license.

HotRepo's take

RSInfer appeared on HotRepo's new-project list for Python on 2026-11-25, reaching 104 stars and 4 forks with a net gain of 4 stars in the recorded one-hour window; it has no recorded GitHub daily rank. The current public evidence is a detailed architecture and benchmark README rather than independent third-party reproduction, so the claimed speedups over SGLang, vLLM and DeepInfer are best read as author-reported figures tied to specific SM100 configurations.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. Neroued/ninferNative C++/CUDA inference engine serving selected LLMs on RTX 5090 and DGX Spark hardware.C++3,280
  2. Mesh-LLM/mesh-llmPool GPUs across machines and serve local GGUF models through one OpenAI-compatible endpoint.Rust3,619
  3. deepseek-ai/FlashMLAProduction attention kernels for DeepSeek's MLA and sparse attention, aimed at teams serving DeepSeek models on modern NVIDIA or Ascend hardware.C++13,180