What is model versioning?
Model versioning is the practice of storing each newly trained state of an AI model with a unique version identifier, distinguishing versions by evaluation results and status and tracking which version runs where so earlier versions can be restored.
Unlike model lineage, which shows which data, code and process each version came from, versioning distinguishes and stores versions and manages moves between them. A model registry is the central store holding versions, their status and metadata.
- Topic
- Infrastructure and runtime
- Also known as
- Model version control
How model versioning works
- Each training output is written to the model registry with an immutable version identifier, storing weights, configuration and dependencies together.
- Versions are marked with statuses such as candidate, approved, live and retired.
- Before going live, a new version is compared with the current one on the same evaluation set and approval is recorded.
- Each response is linked to the version that produced it; if problems arise, the previous approved version is restored.
In more detail
Composite release bundles: weights, adapters, prompts, quantisation and RAG dependencies
In modern LLM applications, a single deployable version is a composite release bundle rather than just a weights file. It must pin the base model weights, LoRA adapters, tokeniser and chat template, system prompts, quantisation recipe (e.g., BF16 versus FP8/INT4), guardrail policies and any coupled RAG embedding model or index snapshot.
Immutable digests versus semantic versioning
Mutable tags such as 'latest' or 'prod' break auditability because files behind a tag can be overwritten. Production registries enforce content-addressable storage and immutable cryptographic digests (such as SHA-256) alongside semantic versioning (major.minor.patch) so that every artifact is bitwise verifiable.
Backward compatibility and keeping embeddings and schemas in step
Safe rollback requires backward compatibility across surrounding systems. If a newer model version changed its structured output schema or relied on a newly re-indexed embedding space, reverting the model alone without coordinating schema adapters or index versions can cause cascading failures.
Commonly confused terms
| Term | How it differs |
|---|---|
| Canary and blue-green deployment | Model versioning governs persistent artifacts before and across releases; canary or blue-green deployment is the runtime traffic-routing pattern used to safely shift inference load from one model version to another. |
Why model versioning matters for on-premises AI
Models are retrained often; without versioning nobody can tell which model made which decision, which change started a drop or how to return to a safe state. A survey of production machine learning cases shows problems at every deployment stage; MLOps literature counts model registry and version tracking as core components. Versioning covers preprocessing code and prompts as well as weights.
A courier company tries its delivery time model's new version on a small share of traffic; when prediction error rises in one region, it returns to the previous approved version in one step and investigates the new version's training data.
Common questions
How does model versioning differ from a model registry?
Versioning is a practice; the registry is the store supporting it, holding versions, statuses and metadata.
What should model versioning cover?
Besides weights: configuration, preprocessing code, dependencies, evaluation results and any prompts.
Related terms
Sources
- Kreuzberger, Kühl and Hirschl, Machine Learning Operations (MLOps): Overview, Definition, and Architecture, 2022
- Paleyes, Urma and Lawrence, Challenges in Deploying Machine Learning: a Survey of Case Studies, 2020
In the glossary: Glossary, M to Q