← Back to Dashboard
1. Choosing Models by Workload2. A/B Testing and Rollout Gates
A/B Testing and Rollout Gates
📚 Model Selection Strategy⏱ 10 min⭐ 85 XP
Controlled Model Upgrades
A model swap is a production change with blast radius - treat it like a database migration, not a config tweak. Introduce model changes through staged rollout gates: canary traffic, scorecard comparison, and rollback criteria.
The Rollout Pipeline
- Offline eval - run the candidate model against your golden + adversarial datasets. It must meet or beat the incumbent on quality, safety, latency, and cost before any traffic.
- Shadow mode (optional) - duplicate real requests to the candidate without serving its answers; compare outputs offline at production traffic shape.
- Canary - route 1-5% of traffic; segment metrics by model; watch p95 latency, guardrail intervention rate, task completion.
- Progressive shift - 25% → 50% → 100%, holding each stage long enough to see representative traffic (including peak).
- Post-rollout watch - drift can appear days later as users adapt their inputs.
Scorecard Dimensions
| Dimension | Metric example | Gate |
|---|---|---|
| Quality | Task success on golden set | ≥ incumbent − 1pt |
| Safety | Prohibited-set block rate | No new false negatives |
| Latency | p95 full | ≤ SLO ceiling |
| Cost | Cost per successful outcome | Within budget delta |
Rollback Discipline
Always define rollback triggers before rollout starts - e.g. "guardrail interventions +30% over 1h" or "task completion −5% sustained 30min". Decided in advance, rollback is a runbook step; decided during an incident, it is a debate. Keep the previous model configuration deployable at all times (config-driven model IDs make this a one-line revert).
Gotcha: A/B testing LLMs needs segmented quality metrics, not just ops metrics. A faster model that subtly degrades answer quality wins every dashboard except the one that matters - pair traffic splits with per-arm eval scoring.
🧪 Knowledge Check
Press 1-4 to select1 of 2
A safe model rollout requires:
Immediate 100% traffic shift
Canary + scorecards + rollback triggers
No telemetry
No baseline