Modern LLM Capabilities and Model Selection

Course positioning

Model selection is neither copying a leaderboard nor buying the “largest model” by default. It is a constrained engineering decision: first express the task, risks, and deployment boundary as a capability contract and hard gates; then run repeated trials for every candidate with the same harness, data, and configuration; finally, analyze the Pareto trade-offs among quality, cost, latency, and risk.

This course does not maintain model rankings. Model catalogs, prices, context limits, regional availability, and preview status are all volatile facts; it teaches a selection method that transfers across them.

Boundary for dynamic facts

Sources were checked on 2026-07-22. On the day of a decision, vendor model IDs, capabilities, quotas, prices, data policies, and retirement dates must be reverified from official catalogs, model cards, contracts, and actual probes, with the evidence URI, time, and configuration retained. An advertised context window is an integration limit, not proof of effective task-level context capability; public benchmarks are evidence for candidate discovery, not a production conclusion.

latest, preview aliases, and pinned versions do not have the same change semantics. Even if a model ID identifies fixed weights, routing, safety layers, or service infrastructure can still change observable behavior. Record the requested identifier; the model/version actually returned in the response when the API provides it; the endpoint/region; and the adapter version. Treat vendor lifecycle changes or runtime changes as triggers for new probes and regression tests.

Learning objectives

  • Translate a business task into contracts for input/output, reasoning, context, structured output, tools, and modalities.
  • Distinguish an API’s claimed support from reliable behavior on this task and target configuration.
  • Select matching evaluation objects and metrics for embeddings, generative models, and multimodal models.
  • Build hard gates from data residency, retention, training use, deployable environments, licenses, budget, and latency.
  • Run repeated trials on the same case with globally unique trial_id values, reporting failure distributions, cost, and finite-sample statistics instead of treating different cases as repetitions.
  • Eliminate ineligible candidates before computing interpretable scores, a Pareto frontier, and weight sensitivity within the eligible set.
  • Produce a reviewable model-decision record and define regression and rollback conditions for version upgrades.

Prerequisites

  • Read and write JSON, and run Python-standard-library scripts and unittest in PowerShell 7.
  • Understand HTTP APIs, timeouts, JSON Schema, and basic statistics; prior integration with a particular vendor is not required.
  • This course is an entry point in LLM application foundations and can be studied alongside Prompt Engineering, Context Engineering, and LLM API Integration. When you begin probing real candidates, add provider adapters, usage accounting, and retries.
  • If you select an embedding model, continue to Embeddings as needed. If you select an Agent model, use Tool Calling to verify the complete action contract.
OrderLessonKey artifact
1Capability contracts and the selection objectOne-page task-to-capability contract
2Reasoning, effective context, and structured outputThree executable acceptance cases
3Tool support and Agent runtime compatibilityTool/runtime compatibility matrix
4Multimodal, embedding, and specialized modelsModality pipeline and embedding evaluation set
5Hard gates, privacy, and deployment boundariesAuditable gate table
6Task-level multi-trial evaluationFrozen case, trial, and metric protocol
7Pareto trade-offs and sensitivity analysisFrontier, weight perturbations, and decision record
8Project: an auditable model-selection scorecardOffline scorecard, failure cases, and test evidence

Plan for 12–16 hours: 60–90 minutes for each of the first seven lessons, plus 3–5 hours for the project and review.

Evidence flow from candidates to release

flowchart LR
    A[Task, risks, and success evidence] --> B[Candidate discovery]
    B --> C[Evidence completeness and hard gates]
    C -->|FAIL or BLOCKED| X[Stop, obtain evidence, or approve an exception]
    C -->|PASS| D[Repeated trials with a common harness]
    D --> E[Slices, costs, and failure distributions]
    E --> F[Pareto frontier and declared weight scenarios]
    F --> G[Auditable decision record]
    G --> H[Release gates, monitoring, and rollback]

The sequence in the diagram represents evidence dependencies, not a waterfall process: when the task, policy, candidate, or runtime changes, rerun the affected upstream steps. BLOCKED means evidence is missing and cannot be offset by a total score.

Learning artifacts

After finishing the course, retain five versioned artifacts:

  1. task contract: task distribution, inputs and outputs, risks, and success evidence;
  2. candidate evidence: model IDs, API capabilities, model cards, policies, and prices, together with parseable verified/blocked status, owner, expiry, and missing items;
  3. eval protocol: frozen cases, trial count, grader, configuration, and stopping rules;
  4. decision report: gate results, metric distributions, Pareto frontier, sensitivity, and approved exceptions;
  5. release guard: selected version, regression thresholds, canary, monitoring, and rollback conditions.

Mastery criteria

  • I can explain why “supports 1M context” does not prove reliability on a long-document task.
  • I can express JSON Schema, tool, and multimodal support as runnable contract tests.
  • I can select queries, corpus, relevance, and latency metrics for an embedding that match the retrieval task.
  • I can run hard gates for privacy, deployment, capability, cost, and latency before comparing scores.
  • I can distinguish case_id from a globally unique trial_id and verify that every candidate reaches the preregistered repetition count for every case.
  • I can explain that nearest-rank p95 from a small sample describes only recorded samples and does not prove stable tail latency.
  • I can distinguish the questions answered by a total score, a Pareto frontier, and sensitivity analysis.
  • I can reject the argument “it ranks first on a public leaderboard, so deploy it directly.”
  • I can run the project tests and explain which fixture candidates should be eliminated by gates and which are Pareto dominated.

Connections to other courses

Primary sources

The following sources establish the method; this course does not copy volatile leaderboard values from them as conclusions: