Training and Evaluation Infrastructure for a Vision Model
Oct 16, 2026 · 6 min read
An LLM labeling service on Gemini and Claude, versioned training data, shadow serving and a promotion gate: the infrastructure behind a production vision model.

Teams that want a custom vision model usually start with the model, and the model is the easy part. Whether it's any good in production depends on the infrastructure around it: where the labels come from, how training data is versioned, how a new model sees live traffic without risk, and what decides whether it ships. I see that infrastructure missing all the time.
On a recent engagement, I built the infrastructure around a custom vision model: LLM-assisted labeling on Gemini and Claude, versioned training data, shadow serving and human release approval. The client’s team now runs the loop on its own retrains.
- Problem
- Training labels, dataset versions and release decisions needed a repeatable process.
- What I changed
- Human-reviewed labels, versioned datasets, independent evaluation and shadow serving.
- Result
- Close to 96% accuracy on this task, against an average of 80 to 85% for general-purpose frontier vision models. In production and run by the client's team.
The situation
The platform classifies images for customer-facing decisions. I built a repeatable path from reviewed labels to independently evaluated models.
Schematic checks, not a record of production incidents.
Record the approved model version and keep a tested rollback path.
A labeling service on Gemini and Claude
Schematic workflow. People review training labels, and independently labeled evaluation groups stay outside training.
An LLM drafts every label
The labeling service uses a vision-capable LLM to draft labels for human review. Each draft records its provenance.
- Queue-driven serverless workers with capped concurrency, so big labeling batches drain at a steady rate.
- A first-party cloud provider, not an aggregator, for data governance. The workers reach it through federated identity, with no stored keys.
- Prompts that ship with the function, with the version set in the deploy config. Every label records the model and prompt version that drafted it, so a prompt change never mixes silently with older labels.
- A deduplicating label store, so a retried message doesn't count twice, and an audit row for every image the service skips.
Input preparation and dataset coverage deserve their own evaluation. A useful labeling process measures draft quality against independently reviewed examples before relying on it to build training data.
A person approves every label
The LLM’s labels are drafts. A person approves or corrects each one before it enters training. Self-reported confidence is not a substitute for independent review.
Finding blind spots
Model comparisons can identify examples that deserve further human review. Keep the evaluation set separate from any examples later selected for training.
A golden set that training never touches
Every decision in this pipeline rests on one asset: a golden set. It's a fixed collection of frames, labeled by people rather than by the LLM, that every model is scored on: the production model, every candidate and every retrain. It was the first thing I built, and I labeled the first version by hand.
If evaluation frames can reach training, your scores measure memory, not the model.
What a golden set buys you
- Scores you can compare. Evaluate candidates on the same fixed set so a score difference reflects a model difference.
- Independent ground truth. Human-reviewed evaluation labels provide a check on errors in an automated labeler.
- A paired comparison. Scoring both models on identical frames is what lets the gate measure the difference between them directly, instead of comparing two noisy scores.
- Honest coverage. Report coverage alongside scores, and mark insufficiently represented categories as unmeasured.
- A versioned record. The set is frozen and versioned, so every score says which version it was measured on, and the production model is re-scored on every new version so the baseline moves with it.
Keeping evaluation frames out of training
A golden set must stay outside training. Repeated labels and closely related images can cross a split unless membership is tracked at the underlying example and group level.
Choose grouping rules for the data’s dependencies, exclude evaluation groups from training, and check the split on every dataset build.
Version the evaluation set alongside the dataset split so that a changed test population does not silently change the baseline.
From approved labels to a trained model
Training data comes from that one query over the label store: approved labels only, golden groups removed. The result is packed into versioned shards in object storage and trained as containerized jobs on managed GPUs. Every model artifact traces back to the dataset version it was built from, and from there to the labels and prompt versions inside it.
Evaluate the exported model as well as the training artifact. Compare their predictions on the same held-out examples before release.
Serving it, and shadowing the new model
Inference is event-driven. Test the complete serving path, including input preparation and feature retrieval, rather than assuming training metrics cover deployment behavior.
I added shadow serving to compare a candidate with the live model without changing customer-facing results. Keep one authorized writer for live predictions and isolate candidate output. Record the model version so comparisons remain attributable.
A promotion gate that can say no
Use the same scoring semantics in evaluation and serving. Compare candidates against a stable baseline on independently reviewed data.
Schematic workflow: compare models on shared evaluation examples, apply release criteria and obtain human approval.
HOLD is an ordinary outcome. A PROMOTE still goes to a person, who checks the hard cases before moving the pointer.
Paired evaluation measures the difference between models on the same examples. Release criteria should account for uncertainty and meaningful regressions, and permit a decision to hold the existing model.
Evaluation informs release approval; a person still owns the decision. Keep an attributable release record and a tested rollback path.
Results
The result is a model that beats general-purpose vision on this job. It gets close to 96% of labels right, where the frontier labs' general-purpose vision models average 80 to 85% on the same task. Customers act on these alerts, so that gap is critical: it's the reason a custom model was worth building at all.
The client’s team now evaluates and releases its own retrains through the process.
What to check in your own AI infrastructure
- Treat LLM labels as drafts. Have a person approve every one, and order the review by independent evidence, not the model's own confidence.
- Keep a golden set no model has seen. Label it by hand, split it by group rather than by image, and check for leaks on every build.
- Version everything between a label and a model. The prompt version on every label, the dataset version on every model, and the live model behind a pointer you can roll back.
- Shadow before you switch. Give the live results exactly one writer, and make every other setting fail safe to an archive.
- Test the serving path, not just the model. Check input preparation, feature retrieval and exported-model behavior before release.
- Make HOLD a normal answer. If your comparison can't say "no better", it isn't a gate.
When this is more than you need: when nobody owns review, when the decision concerns product architecture rather than a model version, or when the evaluation data cannot represent the decisions you need to make.