Installation¶
This guide will walk you through installing SFRP on your system.
Prerequisites¶
Backend Dependencies¶
sfrp supports multiple backends. Install at least one:
For llama.cpp backend (all platforms):
You need llama-server from llama.cpp installed:
Or build from source - see llama.cpp docs
For MLX backend (macOS only):
MLX provides optimized inference on Apple Silicon. Install MLX-LM:
# Install via pip (requires Python 3.8+)
pip install mlx-lm
# Or in a virtual environment (recommended)
python -m venv mlx-env
source mlx-env/bin/activate
pip install mlx-lm
Note: MLX backend is only available on macOS with Apple Silicon (M1, M2, M3, etc.)
For vLLM backend:
vLLM provides high-throughput distributed serving for LLMs. Install vLLM:
# Install in a virtual environment
python -m venv vllm-env
source vllm-env/bin/activate
pip install vllm
Installation Methods¶
Option 1: Download Binary (Recommended)¶
Download the latest release from the GitHub releases page:
# Linux/macOS - Get latest version and download
LATEST_VERSION=$(curl -s https://api.github.com/repos/lordmathis/sfrp/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
curl -L https://github.com/lordmathis/sfrp/releases/download/${LATEST_VERSION}/sfrp-${LATEST_VERSION}-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m).tar.gz | tar -xz
sudo mv sfrp /usr/local/bin/
# Or download manually from:
# https://github.com/lordmathis/sfrp/releases/latest
# Windows - Download from releases page
Option 2: Docker¶
sfrp provides Dockerfiles for creating Docker images with backends pre-installed. The resulting images include the latest sfrp release with the respective backend.
Available Dockerfiles (CUDA):
- sfrp with llama.cpp CUDA: docker/Dockerfile.llamacpp (based on ghcr.io/ggml-org/llama.cpp:server-cuda)
- sfrp with vLLM CUDA: docker/Dockerfile.vllm (based on vllm/vllm-openai:latest)
- sfrp built from source: docker/Dockerfile.source (multi-stage build with webui)
Note: These Dockerfiles are configured for CUDA. For other platforms (CPU, ROCm, Vulkan, etc.), adapt the base image. For llama.cpp, see available tags at llama.cpp Docker docs. For vLLM, check vLLM docs.
Using Docker Compose
# Clone the repository
git clone https://github.com/lordmathis/sfrp.git
cd sfrp
# Create directories for data and models
mkdir -p data/llamacpp data/vllm models
# Start sfrp with llama.cpp backend
docker-compose -f docker/docker-compose.yml up sfrp-llamacpp -d
# Or start sfrp with vLLM backend
docker-compose -f docker/docker-compose.yml up sfrp-vllm -d
Access the dashboard at:
- sfrp with llama.cpp: http://localhost:8080
- sfrp with vLLM: http://localhost:8081
Using Docker Build and Run
-
sfrp with llama.cpp CUDA:
-
sfrp with vLLM CUDA:
-
sfrp built from source:
Option 3: Build from Source¶
Requirements:
- Go 1.24 or later
- Node.js 22 or later
- Git
If you prefer to build from source:
# Clone the repository
git clone https://github.com/lordmathis/sfrp.git
cd sfrp
# Build the web UI
cd webui && npm ci && npm run build && cd ..
# Build the application
go build -o sfrp ./cmd/server
Remote Node Installation¶
For deployments with remote nodes:
- Install sfrp on each node using any of the methods above
- Configure API keys for authentication between nodes
- Ensure node names are consistent across all configurations
Verification¶
Verify your installation by checking the version:
Next Steps¶
Now that SFRP is installed, continue to the Quick Start guide to get your first instance running!
For remote node deployments, see the Configuration Guide for node setup instructions.