sgl-project/rbg
A workload for deploying LLM inference services on Kubernetes
What it solves
Traditional Kubernetes controllers like Deployments and StatefulSets struggle with complex AI inference workloads that require multi-role topologies (such as gateway, router, prefill, and decode), performance-sensitive hardware affinity, and atomic operations across roles. RBG solves this by providing a Kubernetes API to orchestrate distributed, stateful AI inference workloads as a single coordinated unit.
How it works
RBG treats an inference service as a role-based group managed via custom Kubernetes APIs. It uses concepts like "Roles" for basic scheduling and rollout units, "RoleInstances" for bound Pod groups with in-place updates, and "CoordinatedPolicies" to handle cross-role operations like rolling updates and scaling. It supports deployment patterns like standalone pods and leader-worker setups, and integrates with ecosystem tools like NVIDIA Dynamo and Mooncake for features such as KV cache reuse.
Who it’s for
This project is for Kubernetes administrators, platform engineers, and AI infrastructure teams deploying and managing large-scale, distributed LLM inference services on Kubernetes clusters.
Highlights
- Provides topology-aware deterministic operations with unique RoleID injection
- Features a cross-role policy engine for deployment pairing, coordinated upgrades, and linked recovery
- Supports precise startup sequences and topology self-aware service discovery
- Includes hardware affinity scheduling across GPU-NVLink, PCIe, RDMA, and VPC
- Offers declarative APIs and plugin mechanisms for extensible architecture
Related
- Project
- Project
- Project
- Project
- Project