Run Ollama on a VPS

  1. Pick a VPS with enough RAM for your model (8GB+ for 7B, 16GB+ for larger).
  2. Install Docker or Ollama directly on Ubuntu.
  3. Pull the model: ollama pull llama3.1
  4. Restrict API exposure — use firewall and SSH tunnel for remote access.