Network Tips
This guide shows how to build and run in restricted or slow network environments without modifying repo files. You’ll use small local override files and a compose override so the codebase stays clean.
What you’ll solve:
- Hugging Face model downloads blocked/slow
- Go modules fetching blocked during Docker build
- PyPI access for the mock-vLLM test image
TL;DR: Choose your path
- Fastest and most reliable: use local models in
./modelsand skip HF network entirely. - Otherwise: mount an HF cache + set mirror env vars via a compose override.
- For building: use an override Dockerfile to set Go mirrors (examples provided).
- For mock-vllm: use an override Dockerfile to set pip mirror (examples provided).
You can mix these based on your situation.
1. Hugging Face models
The router will download embedding models on first run unless you provide them locally. Prefer Option A if possible.