aibrix

module
v0.8.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2026 License: Apache-2.0

README

AIBrix

License Documentation Release Slack

Documentation · Blog · White paper · X · Slack

AIBrix is a Kubernetes control plane for production LLM inference. You bring the engine — vLLM, SGLang, or TensorRT-LLM — and AIBrix routes each request from live engine state, scales on inference metrics, and manages models, LoRA adapters, and KV cache.

Use it when you run many models or replicas, mix GPU types, or need to hold cost and latency targets.

Features

Capability What it does
Gateway and routing OpenAI-compatible API. Picks a pod from live engine state, including prefix-cache, load, and prefill/decode placement, with session affinity for agentic workloads.
Multi-engine Serve vLLM, SGLang, and TensorRT-LLM behind one gateway.
LoRA Pack many low-rank adapters onto shared base-model pods.
Model lifecycle Declare models with ModelClaim, and preload images and weights with ModelWarmup so scale-up is faster.
Autoscaling Scale replicas on engine metrics such as queue depth, KV cache, and tokens.
Distributed inference Run multi-node and multi-role deployments, including prefill/decode, with StormService.
Distributed KV cache Offload KV cache and reuse it across engines.
Heterogeneous GPUs Mix GPU types and still target cost and SLO. Experimental.
Runtime Sidecar that downloads weights, loads and unloads adapters, and normalizes engine metrics.

Architecture

Requests hit an OpenAI-compatible gateway and go straight to an engine pod. Kubernetes controllers decide what should be running: model lifecycle, warmup, multi-node topology, autoscaling, and observability. The architecture guide walks through both planes.

Quick start

These commands install AIBrix, including its Envoy Gateway dependency, into the cluster your current kubectl context points at. KubeRay is included and is only required for Ray-based multi-node inference.

The snippet uses v0.7.0, the latest published release, so the downloads succeed today. This repository’s manifests track the v0.8.0-rc.2 release candidate; that GitHub release is still a draft, and its asset URLs return 404 until it is published. Switch VERSION when it is.

Install a release
VERSION=v0.7.0

# Dependencies (Envoy Gateway, KubeRay, and friends)
kubectl apply -f "https://github.com/vllm-project/aibrix/releases/download/${VERSION}/aibrix-dependency-${VERSION}.yaml" --server-side

# CRDs ship separately so uninstalling the operator does not delete user resources
kubectl apply -f "https://github.com/vllm-project/aibrix/releases/download/${VERSION}/aibrix-core-crds-${VERSION}.yaml" --server-side

# Controllers, gateway plugins, and supporting services
kubectl apply -f "https://github.com/vllm-project/aibrix/releases/download/${VERSION}/aibrix-core-${VERSION}.yaml"

kubectl get pods -n aibrix-system

When the pods are ready, deploy a model and call the gateway. The quickstart has a base-model manifest and the OpenAI-compatible curl commands. Helm install steps are in the installation guide.

Install from this checkout

Images in config/default are tagged nightly.

git clone https://github.com/vllm-project/aibrix.git
cd aibrix

kubectl apply -k config/dependency --server-side
kubectl apply -k config/crd --server-side
kubectl apply -k config/default

Documentation

Full guides live at aibrix.readthedocs.io.

You want to Start here
Serve a first model Overview, then the quickstart
Make a running deployment cheaper Autoscaling, LoRA, KV cache, observability
Hit scale or latency targets Prefill/decode, multi-node inference, heterogeneous GPUs

News

Releases
Older releases
Talks

Community

Contributions are welcome. Read the contributing guide, talk in #aibrix on the vLLM Slack, or email maintainers@aibrix.ai.

Bugs and feature requests go on GitHub Issues. AIBrix is licensed under Apache 2.0.

Directories

Path Synopsis
api
autoscaling/v1alpha1
Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +kubebuilder:object:generate=true +groupName=autoscaling.aibrix.ai
Package v1alpha1 contains API Schema definitions for the autoscaling v1alpha1 API group +kubebuilder:object:generate=true +groupName=autoscaling.aibrix.ai
model/v1alpha1
Package v1alpha1 contains API Schema definitions for the model v1alpha1 API group +kubebuilder:object:generate=true +groupName=model.aibrix.ai
Package v1alpha1 contains API Schema definitions for the model v1alpha1 API group +kubebuilder:object:generate=true +groupName=model.aibrix.ai
orchestration/v1alpha1
Package v1alpha1 contains API Schema definitions for the orchestration v1alpha1 API group +kubebuilder:object:generate=true +groupName=orchestration.aibrix.ai
Package v1alpha1 contains API Schema definitions for the orchestration v1alpha1 API group +kubebuilder:object:generate=true +groupName=orchestration.aibrix.ai
apps
console/api/gen/console/v1
Package consolev1 is a reverse proxy.
Package consolev1 is a reverse proxy.
console/api/handler
JobHandler implements the Console BFF JobService:
JobHandler implements the Console BFF JobService:
console/api/planner/api
Package plannerapi defines the Console-facing surface of the AIBrix planner: the Planner interface, the request/response shapes Enqueue / GetJob / ListJobs / GetQueueStats / GetProvisionResourceStats carry, and the typed errors Console handlers route on.
Package plannerapi defines the Console-facing surface of the AIBrix planner: the Planner interface, the request/response shapes Enqueue / GetJob / ListJobs / GetQueueStats / GetProvisionResourceStats carry, and the typed errors Console handlers route on.
console/api/planner/client
Package client defines the planner -> Metadata Service adapter: the BatchClient interface, the request/response shapes its methods carry, and the AIBrixExtraBody fields that feed extra_body.aibrix.*.
Package client defines the planner -> Metadata Service adapter: the BatchClient interface, the request/response shapes its methods carry, and the AIBrixExtraBody fields that feed extra_body.aibrix.*.
console/api/resource_manager/catalog
Package catalog provides instance type discovery, pricing information, and resource management.
Package catalog provides instance type discovery, pricing information, and resource management.
console/api/resource_manager/provider/lambdacloud
Package lambdacloud is a self-contained client for the Lambda Cloud public API (https://docs.lambda.ai/public-cloud/cloud-api/).
Package lambdacloud is a self-contained client for the Lambda Cloud public API (https://docs.lambda.ai/public-cloud/cloud-api/).
console/api/resource_manager/provider/runpod
Package runpod is a self-contained client for the RunPod REST API (https://rest.runpod.io/v1).
Package runpod is a self-contained client for the RunPod REST API (https://rest.runpod.io/v1).
cmd
console command
controllers command
kvcache-watcher command
plugins command
pkg
cache/discovery
Package discovery provides service discovery backends for the gateway.
Package discovery provides service discovery backends for the gateway.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/autoscaling/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/autoscaling/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/model/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/model/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/orchestration/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/orchestration/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
controller/modelclaim
Package modelclaim implements the controller for the ModelClaim CRD: a model runtime claim that attaches to a selected GPU pod and is served as its own engine process through the aibrix-runtime sidecar.
Package modelclaim implements the controller for the ModelClaim CRD: a model runtime claim that attaches to a selected GPU pod and is served as its own engine process through the aibrix-runtime sidecar.
controller/podautoscaler
Package podautoscaler provides controllers for managing PodAutoscaler resources.
Package podautoscaler provides controllers for managing PodAutoscaler resources.
controller/podautoscaler/algorithm
Package algorithm provides scaling algorithms for different autoscaling strategies.
Package algorithm provides scaling algorithms for different autoscaling strategies.
plugins/gateway/algorithms/external
Package external implements the optional HTTP-based replica-selection strategy.
Package external implements the optional HTTP-based replica-selection strategy.
plugins/gateway/algorithms/pd
Package pd contains the scoring types used by the PD (prefill-decode) disaggregated-inference router.
Package pd contains the scoring types used by the PD (prefill-decode) disaggregated-inference router.
plugins/gateway/algorithms/pd/selector
Package selector defines the PodSelector contract for PD-disaggregated routing.
Package selector defines the PodSelector contract for PD-disaggregated routing.
plugins/gateway/algorithms/vtc
Package vtc implements the Virtual Token Counter routing algorithms focused on fairness and utilization
Package vtc implements the Virtual Token Counter routing algorithms focused on fairness and utilization
plugins/gateway/configprofiles
Package configprofiles parses the model.aibrix.ai/config annotation (or ConfigMap) and supports multiple named profiles selectable at runtime via config-profile header.
Package configprofiles parses the model.aibrix.ai/config annotation (or ConfigMap) and supports multiple named profiles selectable at runtime via config-profile header.
plugins/gateway/statesync
Package statesync provides a generic Redis-backed state sync layer for use across multiple gateway (or other) replicas.
Package statesync provides a generic Redis-backed state sync layer for use across multiple gateway (or other) replicas.
utils/syncable
Package syncable defines the interface for state that can be synced across replicas (e.g.
Package syncable defines the interface for state that can be synced across replicas (e.g.
samples
test
utils/controller
Package controller provides helpers for controller integration tests.
Package controller provides helpers for controller integration tests.
utils/webhook
Package webhook provides helpers for webhook integration tests.
Package webhook provides helpers for webhook integration tests.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL