Ollama makes running a local model a one-line install. This is the how-to; for the honest picture of what CPU inference can and can't do (and the RAG sweet spot), see the VPS for Ollama use-case and self-host Ollama.
1. Install Ollama
curl -fsSL https://ollama.com/install.sh | sh
That installs Ollama and starts it as a systemd service listening on localhost:11434.
2. Pull and run a small model
On a CPU box, start small:
ollama pull llama3.2:3b
ollama run llama3.2:3b "Summarize this in one sentence: ..."
3B models are genuinely usable on CPU; 7–8B run at a few tokens/sec (fine for batch, painful for chat); 13B+ will swap and crawl — don't.
3. Call the HTTP API
curl http://localhost:11434/api/generate \
-d '{"model":"llama3.2:3b","prompt":"ping","stream":false}'
Embeddings are the CPU sweet spot:
ollama pull nomic-embed-text
curl http://localhost:11434/api/embeddings \
-d '{"model":"nomic-embed-text","prompt":"hello world"}'
4. Keep it on localhost — expose safely if needed
Ollama binds to 127.0.0.1:11434 by default. Keep it there. If you need to reach it from another machine, put a reverse proxy with auth in front on a dedicated-IP plan (nginx + HTTPS guide) or use an SSH tunnel — never expose an unauthenticated model endpoint publicly.
The honest bit
These are CPU-only instances (no GPU). Small quantized models and embeddings run well; big models don't. Pair Ollama with a vector DB for a private RAG stack — small local embeddings plus a local vector store is the setup that genuinely shines here. Medium ($12/mo, 6 GB) is the comfortable plan. Root in about a minute, no KYC, pay in crypto.
Comments
No comments yet. Be the first.