Skip to content
mentoor

Topic 3 of 6 · 5 min read

Self-hosting open-weight models

Goal: Judge when self-hosting an open-weight model beats an API for a given volume, data rule and team.

Self-host an open-weight model when you need control over where data lives or how the model behaves, or when volume is high enough that your own servers cost less than per-token fees, and only if you have the people to run it. An open-weight model is one whose trained weights you can download and run, such as Llama, Qwen, Mistral or Gemma. Open-weight is not always open source: the Open Source AI Definition asks for more than downloadable weights, and many licences add limits.

Check yourself · 1 of 3

What does self-hosting an open-weight model move onto your team?

Choose one answer

Why it matters

The choice looks like a price question, but it is mostly a question of work. An API provider runs the servers, patches them, scales them and watches for abuse. If you self-host, all of that becomes your team's job.

What you gain

  • Data stays with you. Prompts never leave your cloud account or your building, which can settle a residency rule.
  • Control. You pin a version that never changes underneath you, and you can fine-tune freely.
  • Cost at scale. At steady, high volume, fixed hardware can cost less per request than per-token fees. At low or spiky volume, idle GPUs cost more than the API would.

What you take on

  • Hosting. GPUs, a serving engine such as vLLM, scaling, upgrades and on-call.
  • Safety work. API providers add moderation and abuse filters around their models. Self-hosting means you build or buy these.
  • Quality gap. Open models are strong, but the largest frontier models often still do better on hard reasoning. Test on your own cases.
  • Licence terms. Read each model's licence for limits on commercial use, user counts, or competing products. The model card on a hub such as Hugging Face states them.

How to decide

Ask four questions in order. Is there a rule that forbids sending the data out? Is the volume high and steady? Does a smaller open model pass your evals? Do you have people to run it? Two or more "no" answers mean start with an API.

Before and after

Weak: "Open models are free, so we will host one and save the API bill."

Better: "We compared the monthly API bill at our measured volume with GPU rental, one engineer's time and a moderation layer. Hosting wins only above a volume we do not have yet, so we stay on the API and review each quarter."

What goes wrong

Teams count only GPU price and ignore engineer time. Others pick a model whose licence bars their use case. Others skip safety filters because the API had them built in.

Examples

Data rule decides it

Product: a tool that summarises internal legal memos.

Rule: memos may not leave the company's own cloud account.

Check: a mid-size open model passed 85 of 100 test memos against a reviewer's checklist; the team has two engineers who run GPU services.

Decision: self-host, accept a slightly lower quality than the top API model, and add a human review step for anything the model marks unsure.

Key points

  • Open-weight means you can download and run the weights, but the licence may still restrict use, and it is not always open source.
  • Self-hosting moves hosting, scaling, safety filters and on-call from the provider to your team.
  • It wins when a rule keeps data in-house or when volume is high and steady; idle hardware loses to an API at low or spiky volume.
  • Test a candidate open model on your own cases, since the biggest frontier models often still lead on hard tasks.
  • Read the model card and licence before choosing, not after.

Common mistakes

  • Comparing GPU price with the API bill and ignoring the engineers, on-call and safety layer.
  • Assuming a downloadable model can be used for any commercial purpose without reading its licence.
  • Self-hosting at low or spiky volume, then paying for GPUs that sit idle.
  • Skipping evals because a leaderboard score looked high.

Check yourself · 2 of 3

A company has a strict rule that customer text must stay in its own cloud account. Which approach fits this rule?

Choose one answer

Check yourself · 3 of 3

A team with low, spiky traffic wants to cut cost by self-hosting. What is the likely outcome?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic