Sub topic 12
Keeping Model Cards Current: Versioning, Review, and Governance
This chapter assumes you understand training, validation, and test sets, common metrics, Python, Markdown, and basic Git. A model card is useful only when it describes the model that downstream users can actually obtain and run. Keeping it current is therefore part of model delivery, not a writing task completed once.
Version the card with the model
A model card should identify the exact model version it describes. Record at least:
- Model name and release version.
- Code commit or source package used to build it.
- Training-data snapshot or dataset version.
- Configuration, features, and important hyperparameters.
- Evaluation-data version and metric results.
- Release date and responsible team.
- License, contact, and approval status.
Keep historical cards available. If version 1.2.0 was trained on a different data snapshot from version 1.3.0, changing the old card in place destroys information needed for audits and incident investigations.
A practical release stores the model artifact, card, evaluation results, and metadata together. Git tags can connect these files to a source revision. A model registry can additionally connect the release to an artifact checksum, meaning a value that identifies the exact file contents.
The model version and card version usually move together, but they are not identical. You might correct a spelling error in a card without changing the model. That correction can receive a card revision such as 1.2.1. A change to training data, model code, intended use, or evaluation results should normally produce a new model release and a new card.
| Change | New model version? | Card action |
|---|---|---|
| Correct a spelling error | No | Publish a small card revision |
| Retrain with new data | Yes | Create a new card with new metrics |
| Change intended use | Usually | Require review and update scope and risks |
Review the card at release boundaries
Review the card whenever a model is trained, promoted, deployed, or materially changed. The review should compare the new release with the previous one. Ask:
- Did the training data, labels, features, or preprocessing change?
- Did the evaluation population or metric definition change?
- Did performance change for any important group or condition?
- Did the intended users or allowed use cases change?
- Are new limitations, security concerns, or privacy risks known?
- Can a user reproduce the reported evaluation?
- Do the card and registry point to the same artifact and version?
Use named reviewers. A model developer can explain implementation details, while a product owner can check whether the intended use is accurate. A risk, privacy, or domain reviewer may be needed for high-impact decisions.
Automate checks, not judgment
Continuous integration, or CI, can prevent incomplete cards from being released. CI is an automated process that runs checks when code changes. A check can verify headings, version fields, and links. It cannot decide whether a limitation is honestly stated or whether a use case is ethically acceptable.
import re
from pathlib import Path
REQUIRED = ["Intended use", "Training data", "Evaluation", "Limitations"]
def missing_sections(markdown: str) -> list[str]:
headings = {
match.group(1).strip().lower()
for match in re.finditer(r"^#{1,6}\s+(.+)$", markdown, re.MULTILINE)
}
return [
section
for section in REQUIRED
if not any(section.lower() in heading for heading in headings)
]
card = Path("README.md").read_text(encoding="utf-8")
missing = missing_sections(card)
if missing:
raise SystemExit(f"Model card is missing sections: {', '.join(missing)}")
print("Required model-card sections are present.")Run this check in the same pipeline that packages or publishes the model. Add other checks for a declared model version, evaluation-data version, and links to the artifact. Keep the checks small so that failures explain what needs repair.
Establish governance
Governance means the rules and responsibilities that control how a model is released and used. Assign an owner for the card and define when review is required. A useful policy might require review after retraining, a metric change beyond a chosen threshold, a new deployment context, a serious incident, or a change in regulation.
Track unresolved limitations instead of hiding them. Give each limitation an owner, status, and next review date. When monitoring reveals performance drift, update both the operational record and the card if the finding changes what users should know.
The feedback loop matters. A card is a living record, but each published version should remain understandable on its own.
Exercise
A team retrains a classifier with a new dataset, obtains different group-level metrics, and deploys it under the same model name. What documentation action is required?
Show answer
Create a new model and card version, record the new data and evaluation versions, describe the metric changes and limitations, and obtain the required review before release.