LearnQuestion bank

When would you self-host an open-weight model instead of using a hosted API? Walk through the decision for a UK healthtech or bank.

Applied LLMTechnicalMedium

Theme reported publicly: Cohere, Mistral AI

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Lead with the decision rule: self-host only when residency/control or sustained cost beats the operational burden.
  • UK healthtech/bank: start with UK GDPR/patient or financial data, zero-retention terms, regional endpoints and cloud-hosted models in UK/EU regions before self-hosting.
  • Latency control and customisation: private network, predictable p99, fine-tuning, logits, constrained decoding and auditability.
  • Cost at scale is utilisation-driven: idle GPUs are expensive; include autoscaling, on-call, upgrades, monitoring and security patching in break-even maths.
  • Vendor dependence and quality gap: avoid lock-in, but do not self-host to chase frontier quality; small models may be worse.
  • Hybrid pattern: frontier API for hard tasks, small self-hosted model for high-volume simple tasks, with a measured break-even.

In full

I would self-host when the workload is high-volume, stable and sensitive enough that UK GDPR/patient or financial data, latency control and customisation outweigh the operational cost, but I would not self-host just because it sounds safer. For a UK healthtech or bank, I would first test hosted options with zero-retention terms, regional endpoints and cloud-hosted models in UK/EU regions, because those may satisfy residency and privacy without owning GPUs. Self-hosting becomes attractive when I need private-network access, predictable p99 latency, fine-tuning, logits or constrained decoding, and tighter auditability, while the team has real ML/platform/SRE capacity for autoscaling, on-call, upgrades, monitoring and security patching. The break-even is utilisation-driven: compare monthly API spend against GPU capacity times utilisation plus idle capacity, storage/network, ops and on-call, and only self-host when sustained demand keeps GPUs busy; idle GPUs are expensive and autoscaling does not remove the need for people. I would also weigh vendor dependence, pricing changes, availability and model deprecation, but not let that push me into self-hosting a weaker model for hard reasoning. The practical answer is hybrid: frontier API for hard tasks, small self-hosted model for high-volume simple tasks, with the split revisited as utilisation, quality and API terms change.

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • Factors: data residency and privacy, latency control, cost at scale (utilisation!), customisation (fine-tuning, logits), vendor dependence, quality gap, team operations capacity
  • Idle GPUs are expensive; autoscaling, on-call and upgrades are real costs
  • API options: zero-retention terms, regional endpoints, cloud-hosted models in UK/EU regions
  • Hybrid: frontier API for hard tasks, small self-hosted model for high-volume simple ones; break-even maths

Common mistakes

  • Comparing GPU-hour price to API price without utilisation
  • ignoring engineering cost