Skip to content

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.

  • 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

Follow the official Ollama installation guide for your platform.

After installation, pull a model:

Terminal window
# Example: pull a small, capable model
ollama pull llama3.2
# List available models
ollama list

When Nyravio runs in Docker and Ollama runs on the host:

  1. Navigate to Settings > Providers
  2. Add a new Ollama provider
  3. 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"

If Nyravio and Ollama run on the same machine without Docker:

  • Base URL: http://localhost:11434

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.0 on the Ollama server)

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.

Verify Ollama is running:

Terminal window
curl http://localhost:11434/api/tags

After connecting the provider, verify that models are pulled and available:

Terminal window
ollama list
  • Check if the model is using GPU acceleration: ollama ps
  • Consider a smaller model for faster responses
  • Ensure sufficient RAM to avoid swapping