Skip to content

Lab 8: Compare models

  • Time 20 minutes, self-paced
  • Model use 6 Copilot runs; part B uses your own endpoint
  • Uses experiments/models.experiment.yaml

Two variants of the teal robot, one with a round head and one with a square head, each holding an answer card with a green check. Between them, a scoreboard compares their bar charts, stopwatches and stacks of coins for cost.

The same task and the same checks, two models: compare quality, speed and cost.

A new model comes out. Is it better for your agent? Benchmarks can’t tell you; your evals can. In this lab you run the release-notes eval on two models with an experiment that changes only the model.

Before you start: you need the eval from Lab 3 and the fixed skill from Lab 4. If you skipped them, run scripts/catch-up.sh 4.

This lab at a glance
changed
seen before, different here
You do
Run the same eval on two models with an experiment, and compare pass rate, tokens, time and answers.
Under test
Two models as the agent, with the same skill and the same eval
Checked by
The five code checks from Lab 3
  1. Task Write the release notes from backlog.json
  2. Agent changed Model A vs model B
  3. Environment The fixed skill and backlog.json
  4. Trials 3 per model
  5. Checks Answer, transcript and workspace, as in Lab 3
  6. LLM judge Not used here
  7. Results Experiment comparison, dashboard
What happens during the run vally experiment run experiments/models.experiment.yaml
changed
seen before, different here
  • You
  • Vally the eval runner
  • Model A claude-sonnet-5.5
  • Model B gpt-5.6-luna
  • Comparison report and dashboard
  1. You to Vally: Starts the experiment One eval, two variants that differ only in model.
  2. Vally to Model A: Runs the eval on model A changed Three trials with the fixed skill and the same five checks.
  3. Model A to Vally: Verdicts, tokens, time
  4. Vally to Model B: Runs the same eval on model B changed Everything else stays identical.
  5. Model B to Vally: Verdicts, tokens, time
  6. Vally to Comparison: Writes the comparison Pass rate, tokens and time per model; the answers are in the trial records.

In part B, optional, the agent runs on your own model endpoint instead.

Model as the variable new

The experiment varies /defaults/model: same eval, same skill, two models.

Think of it as: an A/B test

Where you see it: vary: [/defaults/model]

Model ID new

The name Copilot uses for a model, such as claude-sonnet-5.5. Which models you have depends on your plan and organization.

Think of it as: a product SKU

Where you see it: /model in Copilot CLI

Executor provider (part B) new

Bring your own key for the agent itself: the same Copilot harness, but the model calls go to your endpoint.

Think of it as: the same car with another engine

Where you see it: executor.config.provider

  1. See which models your plan offers: start copilot, type /model, note two model IDs, then /exit.

  2. Open experiments/models.experiment.yaml and put your two model IDs into model-a and model-b:

    experiments/models.experiment.yaml
    name: release-notes-models
    evals:
    - ../evals/release-notes.eval.yaml
    vary: [/defaults/model]
    baseline: model-a
    variants:
    model-a:
    overrides:
    model: claude-sonnet-5.5 # example; replace with a model from /model
    model-b:
    overrides:
    model: gpt-5.6-luna # example; replace with a model from /model
  3. Check the plan, then run it:

    Terminal window
    vally experiment run experiments/models.experiment.yaml --dry-run
    vally experiment run experiments/models.experiment.yaml

    The end of our run, with claude-sonnet-5.5 and gpt-5.6-luna:

    Experiment release-notes-models varying /defaults/model · baseline model-a
    → No variant beat baseline. Same pass rate (1/1) for both.
    model-b used −42% tokens, +1% trial time.
    eval model-a (baseline) model-b Δ
    release-notes-completed-only ✓ 1/1 (score 100% ≥ 100%) ✓ 1/1 (score 100% ≥ 100%) ±0
    ──────────────────────────── ───────────────────────── ───────────────────────── ────
    stimuli 1/1 1/1 ±0
    tokens 186.3k 108.4k −42%
    trial time 25.4s 25.6s +1%

    Both models passed every trial, so neither “beat” the other on quality. But one needed 42% fewer tokens for the same result.

  4. Compare the details in the dashboard, as in Lab 4. In its terminal, press Ctrl+C, then point it at the newest experiment:

    Terminal window
    EXP=$(ls -d vally-experiment-results/*/ | tail -1)
    vally serve "$EXP" --port 3200 --allowed-host "${CODESPACE_NAME}-3200.${GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN}"

    Reload the page, scroll down to Model comparison, tick both runs and select Compare Selected. This time, the columns carry the model names:

    The dashboard's Model comparison for the two models. Both have a 100% pass rate. gpt-5.6-luna took 7.4 seconds per trial on average, claude-sonnet-5.5 6.2 seconds. Both needed 3 turns and 2 tool calls. Input tokens: 36.0k for gpt-5.6-luna, 61.9k for claude-sonnet-5.5; output tokens: 145 and 184.

    Same pass rate, same number of turns and tool calls, but different speed and very different token counts. The deltas are relative to the first column.

  5. Read a few answers from each model with ./scripts/answers.sh. Both pass every check, but do they read the same? Style, length and tone can differ in ways your checks don’t cover; that’s where a judge from Lab 5 helps.

Two models can both pass every check and still differ in cost, speed and style. With three trials each, a one-trial difference in pass rate can be luck; for a real decision, use more trials and more tasks.

Part B: a model on your own endpoint as the agent

Section titled “Part B: a model on your own endpoint as the agent”

If you have your own model endpoint, as described in Model access and costs, you can make one of its models the agent under test. Copilot’s harness still runs the agent, but every model call goes to your endpoint, so no Copilot request is used.

  1. Copy the eval made for this, and read its defaults:

    Terminal window
    cp lab-files/lab-8/release-notes-endpoint.eval.yaml evals/
    defaults:
    model: ${AGENT_MODEL=set-your-deployment-name} # the deployment name on your endpoint
    runs: 3
    timeout: 180s
    executor:
    name: copilot-sdk # the same agent harness as before ...
    config:
    provider: # ... but its model calls go to your endpoint
    type: azure
    baseUrl: ${AGENT_BASE_URL=https://set-your-endpoint.invalid/openai/v1/} # replaced by --param
    wireApi: responses
    apiKeyEnv: LLM_API_KEY
  2. Run it:

    Terminal window
    vally eval -e evals/release-notes-endpoint.eval.yaml \
    --param AGENT_BASE_URL="$LLM_BASE_URL" \
    --param AGENT_MODEL="$LLM_MODEL"

    It needs LLM_BASE_URL, LLM_API_KEY and LLM_MODEL in your environment; ./scripts/check-setup.sh --ping tests them. In our run with a GPT-5-family deployment, all three trials passed, with about 31,000 tokens each.

  3. Compare its eval-results.md with part A’s results: pass rate, tokens, duration and tool calls. Then look at the tool calls with ./scripts/answers.sh --tools: did the model on your endpoint use the skill the same way?

Model B passes 3 of 3 and model A 2 of 3. Is model B better?

Not proven. With three trials each, one trial’s difference is easily chance. It’s a lead worth a bigger run: more trials, more tasks, and a look at the failing transcript.

  • A model isn’t available: pick another from /model.
  • Part B fails with a 400 error: the deployment must support tool calls with the Responses API, such as a GPT-5-family model.

Next: Lab 9: Your own agent

Workshop created by Jeffrey Groneberg · Connect on LinkedIn

The illustrations are AI-generated (MAI-Image-2.6). Command output comes from real runs with Vally 0.21.0 in November 2026.