Engineering Around a Stochastic Component
Vendor Dependency: Deprecations, Portability and the Self-Host Math
You rent your product's most important component from a company that will change its price, behaviour and availability without consulting you.
You are renting the most load-bearing component of your product from a company that will change its price, its behaviour and its availability without asking you. Whether that is a manageable risk or an existential one depends almost entirely on a few decisions made early and cheaply.
Deprecation is routine, not exceptional
Model versions get retired, with notice typically measured in months rather than years. And an improved version of the same model is still a behaviour change: a prompt tuned against one checkpoint can degrade on its successor while every published benchmark goes up, because you were tuned to that checkpoint's specific quirks rather than to the task. Pin explicit model version strings in production and never a floating alias, so the change happens on a date you chose. Then your eval suite prices the change in an hour instead of a fortnight.
Pin the version
a floating model alias means your product changes behaviour on someone else's deploy schedule
- One internal interface for model calls. Vendor SDKs live behind it; application code never imports them directly.
- Prompts as versioned data, each recording the model version it was validated against and the eval score it achieved.
- Avoid vendor-exclusive features in the critical path unless you have measured what losing them costs, and write the fallback down when you do use them.
- A second provider already wired and passing your evals, even at a trickle of traffic. A failover path you have never executed is not a failover path.
The self-hosting math, done properly
Open-weight models now make self-hosting a serious option, and the arithmetic is routinely misunderstood as a cost saving. What you are doing is swapping a variable per-token cost for a fixed hourly one. A multi-GPU node rents for a few dollars per GPU-hour, and an eight-GPU node left running bills for all 8,760 hours in a year: at roughly twenty dollars an hour that is well into six figures annually, whether you serve one request or a million — and it bills while idle, which your API bill does not. Self-hosting wins on cost only at high sustained utilisation, and the hidden costs are not the GPUs: batching and serving configuration, quantisation choices that silently change output quality, version upgrades, capacity planning, on-call, and the evals needed to prove your deployment matches what you benchmarked.
- Data residency, or a contract that forbids sending customer data to a third party at all.
- A latency floor a shared multi-tenant API cannot guarantee.
- A fine-tune you need to own outright rather than host inside someone else's platform.
- Guaranteed capacity at a known price, instead of rate limits that move during a demand spike.
- A refusal to have your product's core component discontinued by another company's product decision.
Price direction is the one friendly variable
Cost per unit of capability has fallen hard and repeatedly across every vendor, and that has been the single most reliable planning assumption in the field. Design features that are marginally viable at today's prices and comfortable at next year's. The matching discipline is not to over-engineer: do not spend a quarter rebuilding for a cost that will halve on its own. But do not price your contracts as though the decline is guaranteed either, because it rests on compute supply and competitive pressure, and both can turn.
Key takeaways
This is one lesson of 541.
The whole Foundation is free — 16 subjects, beginner to advanced. Sign in to track what you have read, take the end-of-module quizzes, and use the terminal.