Blog

We tried to replace a cloud model with a small one. The gate said no.

Five fine-tuning runs and an open model against a cloud model on 307 gold postings. Every candidate was worse case by case, so the cloud model stayed.

4 min read

  • Case study
  • Release gate
  • Distillation
  • Statistics

We run a production task that extracts the technologies named in job postings. A cloud model does it today. We wanted to replace it with a small model we own: no per-call bill, no provider changing the model under us.

We used ModelStill to decide. After five fine-tuning runs and one open model, the gate said no. This post shows the numbers, what they cost, and what we would do the same way again.

The set-up

  • Gold set: 307 postings whose answers people checked, built the way the golden dataset post describes.
  • Metric: pooled F1 over the technologies found in all postings, with a bootstrap interval, and a per-posting score for the paired comparison.
  • Baseline: the cloud model we run today, accepted as the baseline on that set.
  • Candidates: five LoRA fine-tunes of Qwen3 4B and 8B, trained on 2.4k to 13.5k recorded production answers, and an open Qwen3.6-35B-A3B used as it is, with thinking off.

The steps follow the distillation guide: record calls, label them, leave the gold set out of training, train, then score the student on the gold set against the cloud baseline.

What the averages said

The cloud model scored 0.845 [0.814, 0.875]. The five fine-tuning runs scored 0.775, 0.788, 0.791, 0.793 and 0.811. The open model scored 0.806.

Cloud model (baseline)0.845 [0.814, 0.875]
Best fine-tuning run0.811 [0.770, 0.849]
Open model, as it is0.806 [0.756, 0.850]
0.7400.8150.890
Pooled F1 on the 307-posting gold set, with 95% intervals.

Look only at this chart and you could argue either way. The best run is 0.034 behind, but its interval overlaps the baseline's. "Within noise" is a tempting reading. It is the wrong one.

What the paired comparison said

Overlapping intervals on two separate scores do not mean two models are equal. Each interval carries the spread from easy and hard postings. A paired comparison scores both models on the same posting, takes the difference, and removes that spread.

Best fine-tuning run: 13 fixed, 48 broken−0.022 [−0.034, −0.009]
Open model: 20 fixed, 42 broken−0.030 [−0.050, −0.011]
−0.060−0.0200.020
Candidate minus cloud model, per posting, with 95% bootstrap intervals. The dashed line is no difference.

Both intervals sit wholly below zero, so the verdict for both is worse. The best fine-tuning run fixed 13 postings and broke 48. The open model fixed 20 and broke 42. The gate's regression check reads the lower bound: any allowed regression smaller than 0.034 fails the best run, and smaller than 0.050 fails the open model.

What it cost

Training cost us nothing in cash: each run took about 5 to 7 hours on a 3-GPU workstation we already own. Relabelling the training data with a newer cloud model cost about $1 in API calls.

Relabelling with the newer cloud model and adding more data did help: the student copied the teacher more closely. It did not close the gap on the gold set.

The decision

We kept the cloud model. Instead of replacing it, we gate its changes: a prompt edit or a provider model update runs on the same 307 postings and is compared with the accepted baseline before it ships.

The small model is not finished for good. If a later candidate passes the same gate, it can take over. Until then, the cloud model stays.

What we would do the same way again

Measure the noise floor first. Ask the current model the same questions twice and see how often it agrees with itself. That bounds how close any candidate can look, and stops you chasing a gap that is only noise. See Measure a noise floor.

Compare in the view production stores. Two answers can differ as text and store the same thing, or look alike and store different things. Score what your system keeps, not the raw reply. modelstill swap takes a --view that maps answers before scoring; see Check a model swap.

Change one thing per run. We did not, once. Our fifth run changed the training data and also dropped gradient accumulation. When its score moved, we could not say which change moved it, and that run taught us less than it cost.

Trust the paired comparison over the average. An average 0.034 lower, with overlapping intervals, invites a debate. 48 broken postings against 13 fixed ends it. That is the regression you would ship without seeing it.

See a release gate pass and fail in three commands.

Get started