Install with vLLM AIBrix
This guide provides step-by-step instructions for integrating the vLLM AIBrix.
About vLLM AIBrix
vLLM AIBrix is an open-source initiative designed to provide essential building blocks to construct scalable GenAI inference infrastructure. AIBrix delivers a cloud-native solution optimized for deploying, managing, and scaling large language model (LLM) inference, tailored specifically to enterprise needs.
Key Features
- High-Density LoRA Management: Streamlined support for lightweight, low-rank adaptations of models
- LLM Gateway and Routing: Efficiently manage and direct traffic across multiple models and replicas
- LLM App-Tailored Autoscaler: Dynamically scale inference resources based on real-time demand
- Unified AI Runtime: A versatile sidecar enabling metric standardization, model downloading, and management
- Distributed Inference: Scalable architecture to handle large workloads across multiple nodes
- Distributed KV Cache: Enables high-capacity, cross-engine KV reuse
- Cost-efficient Heterogeneous Serving: Enables mixed GPU inference to reduce costs with SLO guarantees
- GPU Hardware Failure Detection: Proactive detection of GPU hardware issues
Integration Benefits
Integrating vLLM Semantic Router with AIBrix provides several advantages:
-
Intelligent Request Routing: Semantic Router analyzes incoming requests and routes them to the most appropriate model based on content understanding, while AIBrix's gateway efficiently manages traffic distribution across model replicas
-
Enhanced Scalability: AIBrix's autoscaler works seamlessly with Semantic Router to dynamically adjust resources based on routing patterns and real-time demand
-
Cost Optimization: By combining Semantic Router's intelligent routing with AIBrix's heterogeneous serving capabilities, you can optimize GPU utilization and reduce infrastructure costs while maintaining SLO guarantees
-
Production-Ready Infrastructure: AIBrix provides enterprise-grade features like distributed KV cache, GPU failure detection, and unified runtime management, making it easier to deploy Semantic Router in production environments
-
Simplified Operations: The integration leverages Kubernetes-native patterns and Gateway API resources, providing a familiar operational model for DevOps teams
Prerequisites
Before starting, ensure you have the following tools installed:
- kind - Kubernetes in Docker (Optional)
- kubectl - Kubernetes CLI
- Helm - Package manager for Kubernetes
Step 1: Create Kind Cluster (Optional)
Create a local Kubernetes cluster optimized for the semantic router workload:
kind create cluster --name semantic-router-cluster
# Verify cluster is ready
kubectl wait --for=condition=Ready nodes --all --timeout=300s
Step 2: Deploy vLLM Semantic Router
Deploy the semantic router service with all required components using Helm:
# Install with custom values from GHCR OCI registry
# (Optional) If you use a registry mirror/proxy, append: --set global.imageRegistry=<your-registry>
helm install semantic-router oci://ghcr.io/vllm-project/charts/semantic-router \
--version v0.0.0-latest \
--namespace vllm-semantic-router-system \
--create-namespace \
-f https://raw.githubusercontent.com/vllm-project/semantic-router/refs/heads/main/deploy/kubernetes/aibrix/semantic-router-values/values.yaml
# Wait for deployment to be ready (this may take several minutes for model downloads)
kubectl wait --for=condition=Available deployment/semantic-router -n vllm-semantic-router-system --timeout=600s
# Verify deployment status
kubectl get pods -n vllm-semantic-router-system
Note: The values file contains the configuration for the semantic router, including model settings, categories, and routing rules. You can download and customize it from values.yaml.