Sub topic 3
Model Details: Version, Type, License, and Contacts
This chapter assumes you know the difference between training, validation, and test data, and that you have basic Python, Markdown, and Git skills. You should also know common metrics such as accuracy, precision, and recall.
A model card begins with identity and provenance. These details answer a practical question: “Which model is this, what can I do with it, and whom should I contact when something is wrong?” Without them, users may deploy the wrong artifact or misunderstand its legal and technical boundaries.
Identify the exact model
A model name should be understandable to a human and stable enough to search for. Include a version that identifies a particular release.
The version should distinguish meaningful changes:
- A new trained model with changed weights needs a new version.
- A change to preprocessing, labels, or inference code can also affect behavior and should be recorded.
- A documentation-only correction may use a separate documentation revision or a patch version.
- A model copied from another source should identify its original model and version.
Semantic versioning is a useful convention:
MAJORindicates an incompatible change, such as new output labels.MINORindicates a backward-compatible capability or retraining change.PATCHindicates a small fix that should not change the intended interface.
Version numbers alone are not enough. Record an immutable artifact identifier, such as a Git commit, registry URI, or file checksum.
from dataclasses import dataclass
@dataclass
class ModelDetails:
name: str
version: str
model_type: str
task: str
input_format: str
output_format: str
artifact_uri: str
code_revision: str
def summary(self) -> str:
return (
f"{self.name} v{self.version}\n"
f"Type: {self.model_type}\n"
f"Task: {self.task}\n"
f"Input: {self.input_format}\n"
f"Output: {self.output_format}\n"
f"Artifact: {self.artifact_uri}\n"
f"Code revision: {self.code_revision}"
)
details = ModelDetails(
name="support-ticket-classifier",
version="1.2.0",
model_type="DistilBERT text classifier",
task="Five-class support-ticket routing",
input_format="UTF-8 English text",
output_format="Class label and confidence score",
artifact_uri="registry.example/models/support-ticket-classifier/1.2.0",
code_revision="git:8f31c2a",
)
print(details.summary())Describe the model type and interface
“Text classifier” is useful, but it is not a complete description. State the architecture or model family when that information affects reuse. Also document the task and the interface:
- What inputs does the model accept?
- Which preprocessing steps are required?
- What outputs does it produce?
- Are scores calibrated probabilities, rankings, or raw model scores?
- What hardware, runtime, or dependency versions are required?
- Does the model depend on a base model or external service?
A downstream user should be able to decide whether the artifact fits their system without reading the training code.
| Field | Example | Why it matters |
|---|---|---|
| Model type | DistilBERT fine-tuned classifier | Shows the architecture and likely dependencies |
| Task | Route tickets to five queues | Defines the prediction problem |
| Input | UTF-8 English text, maximum 512 tokens | Defines the accepted interface |
| Output | Label and confidence score | Defines how predictions can be consumed |
| Artifact identifier | Registry URI and checksum | Identifies the exact released artifact |
State the license and ownership
A model license describes how the model artifact may be used, copied, modified, or redistributed. Record the license name and link to its full text. Also identify the copyright holder or organization responsible for the release.
Do not assume that the model license covers everything around the model. The training data, base model, code, tokenizer, and dependencies may have separate licenses. List those constraints or link to their notices.
A permissive software license does not guarantee unrestricted use. Data licenses, privacy terms, export restrictions, acceptable-use policies, and contractual conditions may still apply.
Provide contacts and provenance
A model card should name a responsible team or maintainer rather than only an individual who may leave the project. Include:
- An owner or maintaining organization
- A support email or issue tracker
- A security reporting channel when appropriate
- The release date and last review date
- Links to source code, training jobs, evaluation results, and related documentation
Keep contact information current. A stale address turns a documented risk into an unreported risk.
Review the details as release metadata
Model details are most useful when they are checked during release. Store them beside the model card, not only in a separate system that users cannot access. Require a reviewer to confirm that the version, artifact checksum, license links, and contacts match the release being published.
Exercise
A team retrains a classifier with new data but keeps the same labels and API. What should its model card record?
Show answer
It should publish a new model version, identify the new artifact and code or training revision, describe the changed training data, retain the interface description, and record the release date and reviewer.