What must you version to reproduce a model six months later, and what does a model registry store?
Answer
Model answer, written in a candidate's voice
In short
- Code commit, training script, dependencies/container or lockfile, and environment
- Data snapshot or query plus time, feature definitions/transforms, labels and splits
- Config/hyperparameters, seeds, framework/hardware context
- Registry stores artefact, metrics, lineage, validation status, owner, stage and approval history
- GPU training is not guaranteed bitwise deterministic; record seeds/config but validate outputs
In full
You need to version the full recipe, not just the weights: the code commit and training script, the data snapshot or query plus timestamp, feature definitions and transforms, labels and splits, config/hyperparameters, seeds, and the environment such as container image, lockfile, framework and hardware context. A model registry then stores the artefact itself, its metrics, lineage/provenance back to code and data, validation status, owner, stage such as staging or production, and the approval history showing who promoted it and when. I would treat the registry as the source of truth for what is deployable, while keeping the exact training inputs and environment reproducible enough to re-run or audit. On GPUs, I would not claim bitwise determinism: seeds and settings reduce variance, but nondeterministic kernels, parallel reductions and library versions can still change results, so I would validate the reproduced model against expected metrics and outputs rather than assume identical weights. In short, six months later I want to be able to rebuild the run, compare it to the registered artefact, and know whether it is approved for production.
What a strong answer covers
- Code commit, data snapshot or query plus time, feature definitions, config and hyperparameters, seeds, environment.
- Registry: artefact, metrics, lineage, validation status, owner and stage (staging/production), with approval history.
- Deterministic training caveats on GPU.
Common mistakes
- versioning code but not data
- no link from deployed model to training run.