Local Models
Nyravio supports running AI models entirely on your own infrastructure using Ollama. This eliminates the need for external API keys and keeps all data on your machines.
Prerequisites
Section titled “Prerequisites”- Ollama installed on your host machine or a reachable server
- Sufficient hardware for your chosen models (varies by model size)
- Network connectivity between Nyravio and the Ollama server
Installing Ollama
Section titled “Installing Ollama”Follow the official Ollama installation guide for your platform.
After installation, pull a model:
# Example: pull a small, capable modelollama pull llama3.2
# List available modelsollama listConnecting to Nyravio
Section titled “Connecting to Nyravio”From Docker (default deployment)
Section titled “From Docker (default deployment)”When Nyravio runs in Docker and Ollama runs on the host:
- Navigate to Settings > Providers
- Add a new Ollama provider
- Set the base URL to
http://host.docker.internal:11434
On Linux, host.docker.internal may not resolve by default. Add this to your Nyravio service in compose.yaml:
services: nyravio: extra_hosts: - "host.docker.internal:host-gateway"From localhost
Section titled “From localhost”If Nyravio and Ollama run on the same machine without Docker:
- Base URL:
http://localhost:11434
Remote Ollama server
Section titled “Remote Ollama server”For Ollama running on a separate machine:
- Base URL:
http://<server-ip>:11434 - Ensure Ollama is configured to listen on the network interface (set
OLLAMA_HOST=0.0.0.0on the Ollama server)
Hardware considerations
Section titled “Hardware considerations”Local model performance depends heavily on hardware:
| Model size | RAM (CPU) | VRAM (GPU) | Notes |
|---|---|---|---|
| 1B–3B | 4–6 GB | 2–4 GB | Fast on most hardware |
| 7B–8B | 8–12 GB | 6–8 GB | Good balance of quality and speed |
| 13B–14B | 16–24 GB | 10–16 GB | Better reasoning |
| 30B+ | 32+ GB | 24+ GB | Near cloud-model quality |
GPU acceleration (NVIDIA CUDA, Apple Metal) significantly improves inference speed.
These resource requirements are in addition to the Nyravio system requirements.
Troubleshooting
Section titled “Troubleshooting”Connection refused
Section titled “Connection refused”Verify Ollama is running:
curl http://localhost:11434/api/tagsModels not appearing
Section titled “Models not appearing”After connecting the provider, verify that models are pulled and available:
ollama listSlow responses
Section titled “Slow responses”- Check if the model is using GPU acceleration:
ollama ps - Consider a smaller model for faster responses
- Ensure sufficient RAM to avoid swapping
Next steps
Section titled “Next steps”- Model Providers — cloud provider configuration
- System Requirements — hardware recommendations