When self-hosting an 8B model beats a $10k/month API bill
Lessons from running Llama 3 on our own GPUs for a recommendation assistant, and how to tell whether self-hosting fits your workload.
- Self-hosting
- Ollama
- RAG
For Nora AI, a conversational assistant that gives goal-based book recommendations, the commercial-API estimate was about $10,000 a month at projected usage. We ran a self-hosted Llama 3 8B on A6000 GPUs with Qdrant retrieval instead, and the marginal cost per conversation dropped to almost nothing.
Why it worked for this workload
- Retrieval does most of the work. With a good Qdrant index over the catalogue, the model mostly ranks and explains candidates. An 8B model handles that well.
- The domain is narrow. Book recommendations don’t need broad world knowledge or long chains of reasoning.
- Traffic is predictable. Steady load keeps reserved GPUs busy instead of idle.
When it doesn’t work
Self-hosting is the wrong choice when traffic is spiky and low, when tasks need frontier-level reasoning, or when nobody on the team will own the infrastructure. In those cases, routing across API providers usually gives a better cost-to-quality ratio.
A quick decision checklist
- Can retrieval or tools carry most of the work?
- Does a small model pass your evaluation set?
- Is load steady enough to keep GPUs busy?
- Will someone own uptime, upgrades and monitoring?
If you answered yes to all four, self-hosting is worth a prototype. Otherwise, start with APIs, cache aggressively and revisit once you have real traffic data.