LearnThatStack Ace your next interview
Open-Source & Local LLMs · question
Question 2 of 55

Why would a team run an LLM locally or self-hosted instead of calling a hosted API?

beginner
← All Open-Source & Local LLMs questions
Re-explain

Teams self-host when data cannot leave their network, or when steady volume makes owned hardware cheaper than per-token billing. The main reasons:

  • Privacy. Prompts and documents never leave your network.
  • Cost. You pay a fixed GPU bill instead of a per-token one.
  • Stability. You pin the weights, so there is no surprise deprecation or silent update.
  • Latency. There is no public internet hop, and a small local model answers fast.
  • Control. You keep your own fine-tunes, sampling settings, and full logs.

Air-gapped sites, with no network path to the internet, have no other option.

The cost win only holds when the GPU stays busy. An idle GPU bills the same. You also inherit capacity planning, upgrades, and evaluation. For spiky or low traffic, a hosted API is usually cheaper and ships sooner. Frontier hosted models also still lead on the hardest tasks.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Open-Source & Local LLMs One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. Teams self-host when their data can't leave the network, or when steady volume makes owned GPUs cheaper than paying per token.
  2. Privacy usually comes first, because prompts and documents never leave your network, and an air-gapped site has no other option.
  3. Cost changes from a per-token bill to a fixed GPU bill, and because you pin the weights, you get no surprise deprecation or silent update.
  4. You also skip the public internet hop, so a small local model answers fast, and you keep your own fine-tunes, sampling settings and full logs.
  5. The catch is that an idle GPU bills the same, and you now own capacity planning, upgrades and evaluation.
  6. So for spiky or low traffic I'd start with a hosted API, since it's usually cheaper and ships sooner, and frontier models still lead on the hardest tasks.

Weak answers to avoid

  • Says self-hosting is always cheaper An idle GPU bills the same. Say cost only wins at steady, high utilization, and that spiky or low traffic is usually cheaper on a hosted API.
  • Ignores the ops burden Self-hosting hands you capacity planning, upgrades and evaluation. Leaving that out sounds like you've never run one. Name it as the price of control.
  • Claims local models match frontier quality Frontier hosted models still lead on the hardest tasks. Say you'd test a local model on your own workload before switching.
  • Gives privacy as the only reason Privacy is often first, but steady-volume cost, pinned weights, latency and control are real reasons too. Name them, then say which one drives your case.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Open-Source & Local LLMs cheatsheet.

← Back to all Open-Source & Local LLMs questions
Pro · $10/mo

48 of 55 Open-Source & Local LLMs answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime