Install in Local
This guide will help you set up and install the Semantic Router on your system. The router runs entirely on CPU and does not require GPU for inference.
System Requirements
note
No GPU required - the router runs efficiently on CPU using optimized BERT models.
Semantic Router depends on the following software:
- Go: v1.24.1 or higher (matches the module requirements)
- Rust: v1.90.0 or higher (for Candle bindings)
- Python: v3.8 or higher (for model downloads)
- HuggingFace CLI: Required for fetching models
Local Installation
1. Clone the Repository
git clone https://github.com/vllm-project/semantic-router.git
cd semantic-router
2. Install Dependencies
Install Go (if not already installed)
# Check if Go is installed
go version
# If not installed, download from https://golang.org/dl/
# Or use package manager:
# macOS: brew install go
# Ubuntu: sudo apt install golang-go
Install Rust (if not already installed)
# Check if Rust is installed
rustc --version
# If not installed:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.cargo/env
Install Python (if not already installed)
# Check if Python is installed
python --version
# If not installed:
# macOS: brew install python
# Ubuntu: sudo apt install python3 python3-pip (Tips: need python3.8+)