LLMOps vs MLOps

In one sentence

LLMOps is MLOps where you mostly compose instead of train: the release unit is a pinned model plus prompts, retrieval index and tools, gated by eval suites, priced per token, and exposed to vendor deprecations.

Analogy: MLOps is running a bakery that bakes its own bread; LLMOps is running a restaurant that buys bread from a supplier: your recipes and tasting matter more, and you need a plan for when the supplier changes the loaf.

Everything that changes behavior ships as one versioned bundle; production failures flow back into the golden set that gates the next release.

How it works

  • Quality is an eval suite, not one accuracy number: deterministic checks, LLM-as-judge and human review, sliced by task.
  • The same input can give different outputs, so scores need error bars: at 100 cases, about ±10 points.
  • Cost moves with every prompt edit and context length; output tokens list at ~4–5× input (Nov 2026).
  • Pin a dated snapshot: floating aliases change behavior silently, and providers retire snapshots on their own schedule.
  • The MLOps discipline stays: version everything, gate releases on evals, canary, roll back, and monitor with traces.

Check yourself

Answer to mark it learned; your answers aren't scored.

On Monday your support assistant starts answering in prose instead of the required JSON. Nobody deployed anything over the weekend, and the gateway config calls the model as gpt-4o. What's the root cause and the fix?

Go deeper

Full explanation

LLMOps is the practice of shipping and operating applications built on foundation models. The discipline is the same as MLOps; the artifacts, metrics and risks move.

What changes

  • You compose more than you train. The release unit is a pinned model id, prompt templates, a retrieval index (embedding model + chunking), tool schemas, guardrails and decoding params. Fine-tuning is the exception.
  • Evals replace a single accuracy number. Outputs are open-ended, so quality is a suite: deterministic checks, LLM-as-a-judge and human review, sliced by task (Eval-driven development).
  • Cost is per token and per request, and it moves with every prompt edit and context length.
  • Non-determinism: the same input can give different outputs, so scores need error bars (Non-determinism: pass@k & variance).
  • New attack surface: prompt injection, data leakage and unsafe output need Guardrails: input, output, action.
  • Your model is someone else's release. Providers retire snapshots on their own schedule, and floating aliases change behavior silently.
  • Monitoring means traces: multi-step calls, tokens, latency and user feedback (LLM observability & tracing).

What stays the same

Version everything, CI/CD with a quality gate, canary and rollback, monitoring of inputs and outcomes, and data quality — now of the retrieval corpus and the eval sets more than of training data.

Code A release manifest that pins every behavior-changing artifact
yamlA release manifest that pins every behavior-changing artifact
# One versioned bundle: rolling back = pointing the gateway at the previous file
app: support-assistant
release: 2026.11.3
model:
  id: gpt-4o-2024-08-06        # pinned snapshot (example), never the floating gpt-4o alias
  fallback: claude-sonnet-5-5  # second provider (example); dateless but pinned on Anthropic
  temperature: 0.2
  max_output_tokens: 800
prompt:
  system: prompts/support/system@v14
  few_shot: prompts/support/examples@v6
retrieval:
  index: kb-snapshot-2026-11-01  # immutable; re-embedding = new snapshot
  embedding_model: text-embedding-3-large
  chunking: { size_tokens: 512, overlap: 64 }
  top_k: 40
  reranker: BAAI/bge-reranker-v2-m3
tools:
  - refund_lookup@v3
  - order_status@v5
guardrails:
  input: [pii_redaction, injection_classifier]
  output: [json_schema_check, policy_judge]
eval_gate:
  suite: evals/support@v9        # ~400 cases sampled from real traces
  min_pass_rate: 0.90
  max_slice_regression_pts: 2
  max_cost_per_request_usd: 0.004
  max_p95_latency_ms: 3500
Real example

A support assistant runs on a dated snapshot when the provider announces its retirement in four months. The team runs its 400-case eval suite on the replacement: overall pass rate holds (91% → 92%), but the refund slice drops from 94% to 81% because the new model answers in prose instead of the required JSON, and median output grows 35%, adding ~$0.002 per conversation. They tighten the format instruction, add two few-shot examples, re-run (refund slice 95%), canary at 5% for a week while watching traces and thumbs-down rate, then flip the gateway config. No code deploy needed.

Trade-offs +3 · −3

+ You gain

  • Changes ship in hours: a prompt or index update needs no training run.
  • Versioned bundles make rollback a config flip, including prompts and index snapshots.
  • Eval suites built from real traces catch regressions an aggregate metric would average away.

− You pay

  • Evals cost money and time: a judge-based suite can mean thousands of model calls per run.
  • Vendor dependency: deprecations, price changes and silent behavior shifts are outside your control.
  • More artifacts than classic MLOps tooling expects; most model registries ignore prompts and indexes.

Use it when

Any LLM feature past the demo stage: once real users depend on it, version the bundle, gate releases on evals and trace production.

Avoid it when

A throwaway prototype or one-off internal script, where the full gate is overhead. And don't build a parallel LLMOps stack: extend the CI/CD, registry and monitoring you already run.

Numbers to know 4
  • Output tokens list at ~4–5× input (Nov 2026 list prices): $2 vs $10 per 1M on Claude Sonnet 5.5, $2.50 vs $10 on GPT-4o.
  • Batch APIs (OpenAI, Anthropic) cut price ~50% for jobs that can wait up to 24 h.
  • At n = 100 cases and a 50% pass rate, the 95% CI is about ±10 points: small eval sets can't see small regressions.
  • Rule of thumb: start a golden set with ~50–200 cases sampled from real traffic, then grow it from failures.
Common pitfalls 4
  • Calling a floating model alias in production, so behavior changes without any deploy.
  • Gating releases on a handful of vibe-checked examples instead of a versioned eval suite.
  • Versioning the prompt but not the index, embedding model or tool schemas it depends on.
  • Tracking cost per month instead of per request, so a prompt change that doubles tokens goes unnoticed.
Interview questions 2

Answer out loud first, then reveal.

What's actually different between MLOps and LLMOps?Show answer

The discipline is the same (version, test, ship gradually, monitor) but three things move. The artifact: I ship a bundle of pinned model id, prompts, retrieval index and tools rather than weights I trained. The metric: open-ended output needs an eval suite with deterministic checks, a judge and human review instead of one accuracy number, and scores need error bars because outputs are non-deterministic. The risk profile: cost per token, prompt injection, and a vendor who can retire my model. I extend the existing CI/CD and observability stack rather than build a parallel one.

Your provider is retiring the model you run in production. What's your plan?Show answer

I treat it as a planned release, not an emergency. Because we pin snapshots behind a gateway, I can point an offline run at candidates the day the notice lands. I run the full eval suite plus a replay of a week of real traffic and diff by slice: format compliance, refusals, verbosity and cost per request are what usually break. I fix prompts where needed, canary at a few percent while watching traces and feedback, then flip config. The trade-off is eval spend, which is cheap insurance next to learning about regressions from users.

Deep dive 2

Pin, then migrate on purpose

Call a pinned snapshot, never a floating alias, in production: OpenAI's gpt-4o alias can point to a new model overnight, gpt-4o-2024-08-06 cannot, and your JSON parser finds out first. Check each provider's convention: Anthropic's dateless ids (claude-sonnet-5-5) are themselves pinned snapshots since its 4.6 generation. Treat every deprecation notice as a scheduled migration: run the full eval suite on the candidate, replay a sample of real traffic and diff by slice, re-tune prompts where format or verbosity changed, then canary. Put an LLM gateway in front of providers so the switch is configuration, and keep a second-provider fallback tested, because outages and retirements both happen on someone else's calendar.

The release gate is an eval suite

In MLOps a candidate ships if it beats the champion's AUC on a holdout. In LLMOps a prompt edit is a release, and it can fix one case while breaking ten. So every change (prompt, model, chunking, tool schema) runs the same gate in CI (Evals in CI/CD & release gates): a golden set of a few hundred real cases, deterministic checks first (schema, citations, refusals), an LLM judge for open-ended quality, cost and latency budgets, and a per-slice regression threshold. Failures found in production traces become new cases, so the suite grows from incidents, not imagination.