THE
MODEL
DECISION
How Enterprise Leaders Choose, Deploy, and Govern AI Models in 2026
Contents
- --Foreword: Why This Book, Why NowForeword
- 01The Model Landscape Has Changed EverythingCh. 01
- 02Why the Wrong Model Is Costing You More Than You ThinkCh. 02
- 03The Model Selection FrameworkCh. 03
- 04Frontier Models: When You Actually Need ThemCh. 04
- 05Open Source Has Won (For Most Enterprise Tasks)Ch. 05
- 06Fine-Tuning vs RAG vs Agents: The Architecture DecisionCh. 06
- 07Reasoning Models: The Wrong DefaultCh. 07
- 08Small Language Models: The Quiet Enterprise WinCh. 08
- 09Multimodal: Where It Actually WorksCh. 09
- 10Governance, Risk, and Model LifecycleCh. 10
- 11Building Your Model Strategy for 2027 and BeyondCh. 11
- --About the AuthorsAuthors
- --ReferencesRefs
- --IndexIndex
Why This Book, Why Now
⌛ 2 min readEvery technology era has one decision that separates the organizations that compound value from the organizations that compound cost. In the client-server era it was the platform decision. In the cloud era it was the architecture decision. In 2026, it is the model decision.
This was not obvious even two years ago. In 2023 and 2024, the question most enterprises asked was binary: should we use AI or not? By 2025, that question had answered itself. The question that matters now is harder and far more consequential: which models, for which tasks, under which constraints, governed how? That question determines whether an AI program delivers a durable cost and capability advantage, or an expensive science project with a compliance problem attached.
Most organizations are getting it wrong, and they are getting it wrong in a specific, predictable way: they treat the model as a brand choice rather than an engineering and portfolio decision. They pick one frontier vendor, route everything through it, and discover eighteen months later that they are paying frontier prices for commodity tasks, that their architecture is welded to a model that has since been deprecated, and that their governance documentation was written for a system that no longer exists.
The good news: this is a solvable problem. The model landscape of 2026, for all its noise, has settled into legible categories with legible trade-offs. Frontier closed models, open-weight models, fine-tuned specialists, small language models, reasoning models, and multimodal systems each have a domain where they win and a domain where they quietly bleed money. A leadership team that understands those domains, and installs the frameworks to match models to tasks, can cut inference spend by more than half while improving reliability and compliance posture. We have watched it happen.
This book is a research partnership. The frameworks in it were developed jointly, tested against real enterprise deployments and real infrastructure: the strategy questions a board asks and the systems questions a runtime asks turn out to be the same questions at different altitudes. What can this model actually do? What does it cost when it is wrong? Who is accountable when it changes? We wrote every chapter with both altitudes in view, because the model decision fails when either one is missing.
Read this as a working document. Bring the leadership questions at the end of each chapter into your next architecture review. The model decision is being made in your organization right now, whether or not anyone is making it deliberately. Our aim is to make sure it is deliberate.
The Model Landscape Has Changed Everything
From one model to hundreds, from novelty to portfolio decision: what actually changed for enterprise buyers between GPT-3 and 2026.
⌛ 4 min readWhen GPT-3 arrived, the enterprise question was simple because there was essentially one answer. You called one API, you paid one price, and the strategic decision was whether to experiment at all. By 2026, an enterprise buyer faces hundreds of viable models across four distinct families, price differences of two orders of magnitude for comparable output on many tasks, and a regulatory environment that treats model choice as a governance event. The landscape did not just get bigger. It changed category: from a product choice to a portfolio decision.
What actually changed for enterprise buyers over that period is worth stating precisely, because it explains why the intuitions formed in 2023 now produce expensive mistakes:
- Capability converged at the middle. For routine enterprise tasks such as classification, extraction, summarization, and templated generation, dozens of models are now good enough. The frontier still matters, but only at the frontier of task difficulty.
- Cost diverged at the edges. The gap between the cheapest adequate model and the most expensive frontier or reasoning model widened dramatically. Choosing the wrong point on that curve is now a seven-figure decision at enterprise volume.
- Open weights became a first-class option. Self-hostable models moved from research curiosities to systems that enterprises run in regulated environments, with full control over data and versioning.
- Governance became load-bearing. The EU AI Act and sector regulators turned model selection, documentation, and monitoring into compliance obligations rather than best practices.
The Three Eras
Enterprise AI adoption since 2022 has moved through three distinct eras, and knowing which era shaped your organization's current architecture tells you where your risk is concentrated.
Experimentation (2022 to 2023). Teams ran pilots against whatever API was easiest to reach. Cost was negligible because volume was negligible. Architecture decisions were made by whoever built the demo. The legacy of this era is a scattering of hard-coded model dependencies in systems that later became important.
Vendor lock-in (2023 to 2024). Procurement caught up and standardized, usually on a single frontier vendor. This bought sanity in contracting and security review, but at a cost that only became visible later: every use case, from complex legal analysis to trivial ticket routing, paid the same frontier price and inherited the same vendor risk.
Strategic selection (2025 to 2026). The leading organizations broke the single-vendor default. They built evaluation infrastructure, routed tasks to fit-for-purpose models, and treated the model layer as a managed portfolio with an explicit lifecycle. This is the era this book is written for.
of enterprises are using AI models that are mismatched to their use cases, paying frontier prices for tasks that smaller or specialized models handle at equivalent quality.
Source: McKinsey Global AI Survey, 2024The Cost of Getting It Wrong
Consider a real pattern we have seen repeatedly, anonymized here as a composite of a Fortune 500 deployment. The company routed its entire document-processing workload, roughly 40 million pages a year of invoices, claims forms, and correspondence, through GPT-4o, because that was the model the pilot had used and nobody revisited the decision when the pilot scaled. Annual inference spend: approximately $2.6 million. An internal review found that over 90 percent of that workload consisted of extraction and classification tasks that a fine-tuned Llama model, self-hosted on infrastructure the company already owned, handled at matched accuracy for roughly one twelfth of the cost. The avoidable spend was about $2.4 million per year, and the fix took one quarter to implement. Nothing about the workload was exotic. The only failure was that nobody owned the model decision.
The most expensive model decision is the one nobody remembers making.
The Four Model Families
Every enterprise leader needs a working mental model of four families. Each has a distinct economic profile, control profile, and governance burden.
1. Frontier closed models (GPT-4o, Claude, Gemini). The most capable general-purpose systems, accessed via vendor APIs. Best in class on novel and complex tasks; priced accordingly; data leaves your environment; you inherit the vendor's release and deprecation schedule.
2. Open-weight models (Llama, Mistral, Qwen). Downloadable weights you can host, inspect, fine-tune, and version-pin. Maximum control and often the lowest cost at volume, in exchange for real engineering responsibility.
3. Specialized and fine-tuned models. Base models adapted to a narrow domain: your contracts, your product taxonomy, your clinical coding scheme. Highest quality per dollar on the target task; brittle outside it; requires an evaluation and retraining pipeline.
4. Small language models (SLMs). Models in roughly the 1B to 10B parameter range that run on a single GPU or at the edge. The quiet workhorses of high-volume, latency-sensitive, and data-sensitive workloads.
| Model family | Typical cost range | Best for | Worst for | Governance complexity |
|---|---|---|---|---|
| Frontier closed | $$$ to $$$$ per M tokens, API pricing | Novel problems, complex reasoning, fast time to value | High-volume routine tasks, strict data residency | Medium: vendor terms, data egress, deprecation tracking |
| Open weight | $ to $$ at volume, plus infrastructure | High volume, data-sensitive, cost-sensitive workloads | Teams without ML infrastructure capability | Medium-high: you own the full stack and its audits |
| Specialized / fine-tuned | High upfront, very low per query | Narrow, stable, high-volume domain tasks | Fast-changing knowledge, broad task variety | High: training data lineage, revalidation on every update |
| Small language models | Lowest per query | Edge, real-time, regulated, high-volume narrow tasks | Open-ended reasoning, broad general knowledge | Low-medium: small surface, easy to inventory |
Key Takeaways
- The model decision moved from a product choice to a portfolio decision; intuitions formed in 2023 now produce expensive mistakes.
- Capability has converged for routine tasks while cost has diverged sharply, so mismatch is the dominant source of AI waste.
- McKinsey's 2024 Global AI Survey found that the majority of enterprises report AI programs delivering below expected returns. The composite Fortune 500 example illustrates the cost: $2.4M of avoidable spend on a single workload.
- Master the four families: frontier closed, open weight, specialized/fine-tuned, and small language models, each with distinct economics and governance burdens.
Questions for Your Leadership Team
- Who in our organization currently owns the model decision, and when was it last revisited for our highest-volume workload?
- Which of the three eras best describes our current architecture, and what legacy risk does that imply?
- Can we name, today, which model family serves each of our top five AI use cases and why?
Why the Wrong Model Is Costing You More Than You Think
The inference cost trap, the hallucination tax, and the vendor risk your architecture quietly signed up for.
⌛ 3 min readMost enterprises did not choose to overspend on AI. They defaulted into it. The default works like this: the first successful pilot uses a frontier model, the pilot becomes the pattern, the pattern becomes the platform, and two years later every workload in the company, regardless of difficulty, is paying the highest per-token price on the market. We call this the inference cost trap, and it is the single most common finding in the AI cost reviews we have been part of.
The trap persists because the unit costs look small. A fraction of a cent per query does not trigger anyone's attention. But enterprise workloads run at millions of queries per day, and at that volume the difference between a frontier model and a fit-for-purpose alternative is not a rounding error. It is a budget line.
| Model | Indicative cost / M tokens (blended) | Typical latency | Quality on routine enterprise tasks* | Quality on complex reasoning |
|---|---|---|---|---|
| GPT-4o (frontier, API) | High | Fast | Excellent | Excellent |
| Claude Sonnet (frontier, API) | Medium-high | Fast | Excellent | Excellent |
| Llama 3.1 70B (open, self-hosted) | Low-medium (infra included) | Fast, tunable | Excellent | Good |
| Fine-tuned Mistral 7B (specialized) | Very low | Very fast | Excellent on target task | Poor outside target task |
Read the last two rows carefully. For the routine tasks that make up the bulk of enterprise volume, the open and specialized options match frontier quality at a fraction of the cost. The frontier premium buys capability your routine workloads do not use.
The Hallucination Tax
Cost is not only what you pay per token. It is also what you pay when the model is wrong. Every model confabulates at some rate, and the operational cost of a confabulation depends entirely on where it lands. A wrong answer in an internal brainstorming tool costs nothing. A wrong clause summary that reaches a customer contract costs legal review hours, rework cycles, and, in the worst cases, remediation and reputational damage. We call the fully loaded cost of model errors the hallucination tax, and it has three components:
- Detection cost: the human review layer you must maintain because you cannot fully trust the output.
- Rework cost: the downstream corrections when errors slip through detection.
- Incident cost: the rare but expensive events when an error reaches a customer, a regulator, or a filing.
The strategic implication is counterintuitive: for high-stakes tasks, a more expensive model with a lower error rate can be the cheaper option once the tax is counted, and for low-stakes tasks the reverse is true. The hallucination tax is why model selection must be done per task, not per company.
If your AI business case counts only per-token cost, it is wrong. Model your review, rework, and incident costs explicitly. Teams that skip this systematically choose models that are cheap per token and expensive per outcome.
Vendor Lock-in Is a Pricing and Deprecation Risk
Building your architecture directly against one vendor's API means accepting two risks you do not control. The first is repricing: OpenAI changed its pricing three times in eighteen months. Some of those changes were reductions, but the point stands either way: your unit economics are set in someone else's boardroom, and a budget you cannot forecast is a budget you cannot govern. The second is deprecation: models you have built prompts, evaluations, and compliance documentation against get retired on the vendor's schedule, not yours. Every migration re-triggers testing, revalidation, and, in regulated settings, documentation updates. Chapter 4 treats deprecation in depth; here the point is simply that lock-in converts vendor decisions into your unbudgeted engineering work.
Total Cost of Ownership
The honest comparison between model options is a total cost of ownership model with five lines:
- Licensing and inference: API fees or per-token equivalent.
- Infrastructure: GPUs, serving stack, and scaling headroom for self-hosted options.
- Integration: engineering to connect the model to data, tools, and workflows, plus the abstraction layer that keeps you portable.
- Governance: evaluation, monitoring, documentation, audit support, and the human review layer sized to the hallucination tax.
- Retraining and migration: fine-tune refreshes, or forced migrations when a vendor deprecates.
Frontier APIs concentrate cost in line 1 and line 5. Open-weight deployments shift it to lines 2 and 3. Fine-tuned specialists shift it to lines 3, 4, and 5. None of the options is free; the question is which cost structure fits your volume, your risk profile, and your team.
reduction in AI inference costs, with no quality loss, achieved by enterprises that implement model routing: sending each query to the cheapest model that can handle it.
Source: FrugalGPT, Stanford, 2023That routing result is the through-line for the rest of this book. The savings do not come from finding one better model. They come from refusing to use one model for everything.
Key Takeaways
- The inference cost trap is a default, not a decision: pilots set patterns, and patterns quietly become million-dollar budget lines at volume.
- Count the hallucination tax: detection, rework, and incident costs can invert which model is actually cheapest for a given task.
- Single-vendor architectures accept repricing and deprecation risk you cannot control; OpenAI repriced three times in eighteen months.
- Model routing delivers 60 to 80 percent inference cost reduction with no quality loss (FrugalGPT, Stanford, 2023).
Questions for Your Leadership Team
- What is our fully loaded cost per AI-assisted outcome, including review and rework, for our top three use cases?
- If our primary vendor repriced by 50 percent tomorrow, what would our exposure be and what is our fallback?
- Have we quantified what a routing layer would save us at current volumes?
The Model Selection Framework
A four-step framework that turns model choice from a debate into a repeatable decision process.
⌛ 4 min readModel selection fails in most organizations not because the analysis is hard but because there is no process: decisions happen ad hoc, in different teams, with different criteria, and nobody can reconstruct why a given model is in production. The framework in this chapter replaces that with four steps any team can run in six to eight weeks: define the task, establish constraints, score candidates, and pilot with measurement.
Step 1: Define the Task Type
Different task types have radically different optimal model profiles, so the first act of discipline is naming the task precisely. Seven categories cover nearly everything an enterprise does with language models:
- Classification: routing tickets, tagging documents, triaging risk. Small and fine-tuned models excel; frontier is wasteful.
- Extraction: pulling fields from invoices, contracts, forms. Fine-tuned and mid-size models match frontier at a fraction of the cost.
- Generation: drafting content, correspondence, reports. Mid-size models handle templated generation; frontier earns its price only on high-stakes or creative output.
- Reasoning: multi-step analysis, planning, constraint satisfaction. The one category where frontier and reasoning models reliably justify themselves.
- Coding: completion on known patterns suits smaller specialized models; novel architecture and debugging benefit from frontier.
- Conversation: quality bar is set by user tolerance and brand risk; latency matters as much as intelligence.
- Multimodal: vision, audio, and document understanding, covered in Chapter 9, with its own cost structure.
Step 2: Establish Constraints
Constraints do more filtering than benchmarks do. Five questions eliminate most of the candidate list before you run a single evaluation:
- Data sensitivity. Can this data leave your environment at all? If not, the decision is already made: open weight or self-hosted only.
- Latency requirement. Real-time (under 200ms), interactive (under 2s), or batch? Real-time excludes reasoning models and many large models outright.
- Volume. Requests per day. Above roughly one million queries per day, per-query cost dominates every other criterion and cost optimization is mandatory.
- Regulatory environment. HIPAA and GDPR constrain data flows; the EU AI Act adds documentation, transparency, and risk-classification obligations that vary by model and use (Chapter 10).
- Budget ceiling. The cost per query you can sustain at full volume. Compute it before the pilot, not after.
Step 3: Score Candidates
With the task defined and constraints applied, score the surviving candidates on six criteria. Weight the criteria for your context: a bank weights data residency heavily; a startup weights speed to deploy.
| Criterion | What to measure | Weight guidance | Score 1-5 |
|---|---|---|---|
| Quality on task | Accuracy on your own evaluation set, not public benchmarks | Always high weight | __ |
| Cost per query | Fully loaded: tokens + infrastructure + review layer | Dominant above 1M queries/day | __ |
| Latency | p95 at expected concurrency, not the demo | Dominant for real-time use | __ |
| Data residency compliance | Where data flows, retention terms, audit rights | Gate criterion in regulated sectors | __ |
| Vendor stability | Deprecation history, pricing history, enterprise SLA | Higher for long-lived systems | __ |
| Ecosystem support | Tooling, serving stacks, talent availability | Higher for self-hosted options | __ |
Step 4: Pilot and Measure
The scoring matrix produces a shortlist, never a decision. The decision comes from a pilot deployment, and the pilot is only useful if you measure the right things. Accuracy alone is not enough. Measure five dimensions:
- Quality: accuracy on a held-out evaluation set built from your real data, reviewed by domain experts.
- Cost: actual per-query cost at pilot volume, extrapolated to production volume.
- Latency: full-distribution latency under realistic concurrency.
- Failure modes: not just how often it fails, but how: confidently wrong, refusing valid requests, format drift.
- Edge case behavior: adversarial inputs, out-of-scope requests, and the long tail your evaluation set undersamples.
Run a six-week pilot structure: weeks 1 and 2 to build the evaluation set and harness, weeks 3 and 4 to run all shortlisted models against it in parallel, weeks 5 and 6 for a limited live pilot deployment of the leading candidate with humans in the loop. Six weeks gives you enough signal; six months gives you a stalled program.
The Decision Tree
The full framework compresses into a decision tree your architects can apply in an afternoon. It does not replace the pilot, but it prevents the most common category errors before any money is spent.
Key Takeaways
- Model selection needs a process, not a debate: define the task type, establish constraints, score candidates, pilot with measurement.
- Constraints filter faster than benchmarks: data sensitivity, latency, volume, regulation, and budget ceiling eliminate most candidates upfront.
- Score on your own evaluation set; public benchmarks predict rankings poorly for your specific tasks.
- A six-week pilot measuring quality, cost, latency, failure modes, and edge cases gives enough signal to decide.
Questions for Your Leadership Team
- Do we have a documented, repeatable model selection process, and who is accountable for running it?
- Do we maintain evaluation sets built from our own data for our top use cases?
- For each production AI system, can we reconstruct why that model was chosen and what constraints it satisfied?
Frontier Models: When You Actually Need Them
Frontier models are genuinely better at some things. The discipline is knowing which things, and refusing to pay the premium anywhere else.
⌛ 3 min readNothing in this book argues that frontier models are overrated. They are, on the hardest tasks, the best systems available, and for a meaningful slice of enterprise work they are the only responsible choice. The argument is narrower: frontier models are the right answer for roughly 20 percent of enterprise use cases, and most organizations deploy them against 80 percent or more.
What Frontier Models Are Genuinely Better At
- Complex multi-step reasoning: analysis that requires holding many constraints in view, decomposing problems, and catching its own errors mid-chain.
- Novel problem types: tasks with no established pattern and no training data you could fine-tune on: a new regulation, a new product category, a one-off strategic analysis.
- Creative synthesis: combining disparate sources into genuinely new framings: strategy documents, research syntheses, high-stakes communications.
- Long-tail robustness: graceful handling of weird inputs, ambiguity, and instructions the system prompt never anticipated.
When NOT to use frontier is just as clear: routine extraction, classification, summarization of standard documents, and code completion on known patterns. On these tasks the frontier premium buys nothing measurable, and the routing evidence from Chapter 2 shows exactly how much it costs.
Treat frontier access as a scarce resource with an owner. Every workload routed to a frontier model should have a stated reason it needs frontier capability, reviewed quarterly. Workloads that cannot state one get moved down-market.
The Vendor Comparison, Candidly
The three frontier vendors are closer on raw capability than their marketing suggests, and further apart on enterprise operational criteria than most buyers realize. The table below reflects the criteria that actually decide enterprise deals; verify current terms at contract time, because all three move quickly.
| Criterion | OpenAI | Anthropic | |
|---|---|---|---|
| Pricing transparency | Public pricing; changed 3x in 18 months, forecast with caution | Public pricing; fewer changes, tiered model lineup aids cost control | Public pricing; complex across Vertex AI tiers and bundles |
| Enterprise SLAs | Available on enterprise tier | Available on enterprise tier | Strong, inherits mature GCP SLA machinery |
| Data privacy posture | No training on API data by default; verify retention terms | No training on API data by default; strong contractual posture | Strong within Vertex AI; read bundled-service terms carefully |
| Model stability / deprecation | Fastest release cadence, fastest deprecation cadence | Moderate cadence, published deprecation windows | Moderate cadence; naming and lineup changes create tracking overhead |
| Fine-tuning availability | Available on selected models | Limited; steers toward prompting and RAG patterns | Available via Vertex AI on selected models |
| Ecosystem integration | Largest third-party ecosystem | Strong in coding and agent tooling | Deepest if you are already a GCP and Workspace shop |
The Deprecation Risk
Here is the fact that should shape every frontier architecture decision: every major frontier model has been deprecated within 18 to 24 months of release. This is not vendor misbehavior; it is the economics of the frontier. Vendors cannot indefinitely serve old models on scarce compute. But it means anything you build directly against a specific frontier model has a built-in expiry date, and the successor model will behave differently: different failure modes, different prompt sensitivities, different outputs on your regression set.
The architectural consequences are concrete. Prompts must be versioned and owned like code. Evaluation sets must exist before migration is forced, so you can measure the successor instead of guessing. And an abstraction layer between your applications and the model API (Chapter 11) turns a forced migration from a rewrite into a configuration change plus a revalidation run. Enterprises that skipped these steps have discovered that a vendor's deprecation email is effectively an unfunded mandate for a quarter of engineering work.
If any production system in your portfolio would break, silently degrade, or fall out of compliance because a vendor deprecated a model, you do not have a vendor risk. You have an architecture defect. Fund the abstraction layer now, while the timing is still yours.
Key Takeaways
- Frontier models genuinely win on complex reasoning, novel problems, creative synthesis, and long-tail robustness: roughly 20 percent of enterprise use cases.
- Routine extraction, classification, summarization, and pattern-based code completion do not need frontier capability and should not pay for it.
- The three vendors differ more on operational criteria (pricing stability, deprecation cadence, data terms) than on raw capability.
- Every major frontier model has been deprecated within 18 to 24 months; architect for migration as a certainty, not a contingency.
Questions for Your Leadership Team
- What percentage of our AI workload runs on frontier models, and how much of it can state why it needs frontier capability?
- Which of our systems would be affected if our primary frontier model were deprecated with 12 months notice, and what would migration cost?
- Do our vendor contracts give us the pricing predictability, data terms, and deprecation notice our planning horizon requires?
Open Source Has Won (For Most Enterprise Tasks)
The performance gap closed. The control and cost advantages did not. What that means for your portfolio.
⌛ 3 min readThe most important shift in the model landscape between 2023 and 2026 was not a new frontier model. It was the moment open-weight models became good enough for the work enterprises actually do at volume. For classification, extraction, summarization, templated generation, RAG-backed question answering, and much of enterprise coding, the performance gap between the best open models and the frontier has closed to the point of irrelevance, while the cost and control gaps remain wide open in the other direction.
The Performance Convergence
The convergence is visible in public head-to-head data. On the LMSYS Chatbot Arena leaderboard, which ranks models by blind human preference across millions of matchups, Llama 3.1 405B rated competitive with GPT-4o on most benchmarks, a result that would have been unthinkable eighteen months earlier. And the arena measures general chat ability, which understates the enterprise case: on narrow, well-specified enterprise tasks, the gap is smaller still, and a fine-tuned open model frequently comes out ahead.
lower inference cost is typical for self-hosted open-weight deployments versus frontier API pricing at sustained enterprise volume, after factoring in infrastructure and serving costs.
Consistent with routing economics in FrugalGPT, Stanford, 2023The Control Advantage
At enterprise scale, control is worth as much as cost. Open-weight deployment gives you three things no API contract can:
- No data egress. Prompts and documents never leave your environment. For healthcare, financial services, defense, and any organization with hard data residency requirements, this is not an optimization; it is the qualifying condition.
- No vendor pricing or deprecation risk. You pin the exact weights. The model you validated is the model that runs, for as long as you choose, at a cost curve you control.
- Full auditability. You can inspect, log, and reproduce every layer of the stack, which simplifies regulatory conversations that are awkward when the core system is a black box behind someone else's API.
The Operational Reality
None of this is free. Open source shifts cost from the vendor invoice to your engineering organization, and honest accounting is essential. Running open models in production means owning a serving stack (vLLM or equivalent), GPU capacity planning, model upgrades, security patching, and the evaluation infrastructure to validate each change. As a planning heuristic, a credible self-hosted program needs a small dedicated platform team: two to four strong infrastructure engineers to start, more at scale. Below a certain volume, the API is simply cheaper once you price the people. Above it, the economics flip decisively, and they flip earlier than most CFOs expect.
Open source wins when:
- Volume is high enough that per-query cost dominates (typically above hundreds of thousands of queries per day)
- Data is sensitive and residency requirements are hard
- Cost predictability matters to the business case
- The task needs customization that fine-tuning open weights unlocks
Open source loses when:
- You genuinely need the absolute frontier of capability
- You have no ML infrastructure team and no plan to build one
- Speed to deploy matters more than cost, as in early pilots
The Model Family Guide
Four open families cover the enterprise field. Llama 3.x (Meta) is the ecosystem default: the largest tooling and talent base, strong general capability across sizes from 8B to 405B, and the safest first choice for a new open-weight program. Mistral and Mixtral punch above their weight per parameter, with strong European provenance that matters for EU data governance narratives, and mixture-of-experts variants that serve well at low cost. Qwen 2.5 (Alibaba) is exceptionally strong on multilingual and coding tasks; organizations with geopolitical sourcing constraints should route the provenance question through their risk function early. Gemma 2 (Google) offers strong small models with clean licensing, well suited to the SLM patterns in Chapter 8.
Open source did not win by beating the frontier. It won by making the frontier unnecessary for most of the work.
Key Takeaways
- Open-weight models now match or exceed frontier quality on most routine enterprise tasks; Llama 3.1 405B rates competitive with GPT-4o on most benchmarks (LMSYS Chatbot Arena).
- Self-hosting typically cuts inference cost 60 to 80 percent at volume, and buys control: no egress, no repricing, full auditability.
- The cost moves to engineering: budget a real platform team, and expect the economics to favor APIs at low volume and flip hard at high volume.
- Llama for ecosystem breadth, Mistral for efficiency and EU provenance, Qwen for multilingual and code, Gemma for small models.
Questions for Your Leadership Team
- At our current and projected volumes, where is our break-even point between API pricing and a self-hosted platform team?
- Which of our workloads are blocked from AI adoption today purely by data residency, and would open weights unblock them?
- Do we have, or can we hire, the two to four infrastructure engineers a credible self-hosted program requires?
Fine-Tuning vs RAG vs Agents: The Architecture Decision
The most consequential technical decision most enterprise teams make wrong, explained plainly.
⌛ 3 min readOnce you have chosen a model family, a second decision follows immediately, and it shapes cost, capability, and governance more than the model choice itself: how do you connect the model to your organization's knowledge and systems? There are three architectures, they are routinely confused with one another, and choosing the wrong one is the most common expensive mistake we see technical teams make.
The Three Approaches, Plainly
RAG (retrieval-augmented generation) gives the model access to your documents at query time. The system retrieves relevant passages from your knowledge base and places them in the prompt; the model answers from what it was shown. No training required, knowledge stays current the moment you update the source documents, and every answer can cite its sources. The price is higher latency per query and a hard dependency on retrieval quality: if the right passage is not retrieved, the best model in the world answers from the wrong context.
Fine-tuning trains the model on your data, adjusting its weights so the desired behavior becomes native. It delivers the best performance on narrow, stable tasks and the lowest per-query latency and cost, because nothing needs to be retrieved. The price is paid upfront and forever: data preparation, training runs, evaluation, and re-training every time the task or the knowledge shifts, plus the data security implications of your proprietary data becoming part of a model artifact that must itself be governed.
Agents give the model tools to take actions: query a database, call an API, file a ticket, execute a multi-step workflow. This is the most powerful pattern and the hardest to govern, because the model is no longer only producing text for a human to review; it is doing things, and every tool it can touch is attack surface and audit scope.
| Criterion | RAG | Fine-tuning | Agents |
|---|---|---|---|
| Knowledge currency | Excellent | Poor | Excellent |
| Cost to implement | Low | High | Medium |
| Cost to maintain | Low | High | Medium |
| Task specificity | Low | High | Medium |
| Governance complexity | Low | Medium | High |
| Latency | Higher | Lower | Highest |
| Best for | Document Q&A, search | Narrow tasks, style | Multi-step workflows |
How Teams Choose Wrong
The classic failure is fine-tuning knowledge that changes. A team fine-tunes a model on this quarter's product catalog or policy manual, ships it, and discovers that every update to the source material now requires a training run, an evaluation cycle, and a redeployment. Knowledge belongs in RAG, where updating it is a document operation. Fine-tuning is for behavior: format, style, domain vocabulary, task-specific skill. The one-line rule that prevents most of the damage: fine-tune the how, retrieve the what.
of enterprises that attempted fine-tuning in 2023 abandoned it within six months, with maintenance cost cited as the primary reason.
Source: Andreessen Horowitz AI survey, 2024What Fine-Tuning Actually Costs
The training run is the cheapest line item, which surprises everyone. Realistic budgeting for a production fine-tune has four parts: data preparation is the dominant cost, typically weeks of expert time curating, cleaning, and labeling thousands of high-quality examples; compute for the runs themselves is modest for 7B to 70B class models, especially with parameter-efficient methods; evaluation requires building and maintaining a held-out test set and running it on every candidate; and maintenance means repeating a meaningful fraction of all of the above every time the task drifts. The a16z abandonment number above is what happens when teams budget for the compute and not for the rest.
The Hybrid Answer
The strongest production architectures are rarely pure. The pattern we see winning most often is RAG plus a fine-tuned component: a fine-tuned retriever or embedding model that understands your domain's vocabulary, feeding a general-purpose generator through RAG. You get current knowledge, cited answers, and domain-tuned relevance, without welding volatile knowledge into model weights. Similarly, the best agent systems use RAG for their knowledge and reserve fine-tuning for tool-calling reliability on their specific toolset.
Agents multiply governance scope, not just capability. Before granting a model any tool that writes, spends, or communicates externally, define its permission boundary, its audit log, and its kill switch. An agent without all three is a pilot deployment at best, never a system of record.
Key Takeaways
- RAG for knowledge, fine-tuning for behavior, agents for action: most failures come from confusing these roles.
- Fine-tune the how, retrieve the what: never weld volatile knowledge into model weights.
- The majority of enterprise fine-tuning initiatives stall within 6 months, not due to model quality, but due to underestimated maintenance cost. Budget for data preparation, evaluation pipelines, and retraining cycles, not just compute. (a16z AI Market Analysis, 2024)
- Hybrid architectures, especially RAG with a fine-tuned retriever, outperform pure approaches in most production settings.
Questions for Your Leadership Team
- For each AI system we run, which architecture is it, and does the knowledge-versus-behavior split follow the rule above?
- If we are fine-tuning, have we budgeted the full lifecycle: data preparation, evaluation, and recurring retraining?
- For any agent we deploy, can we state its permission boundary, its audit trail, and its kill switch?