Hugging Face model cards and MX, field by field
A Hugging Face model card is a README with YAML metadata on top. The metadata tells the Hub how to list and filter a model. The prose tells a person what it is for and where it fails. MX does the same job for any file a machine reads, not only for models. This page maps model cards and dataset cards onto MX, so a team that already writes these cards can state the same things as MX metadata without retyping or guessing.
The model card format belongs to Hugging Face, and the idea goes back to Mitchell et al. (2019). MX does not replace it. On the Hub, keep the card. When a model, or a document about it, travels beyond the Hub, MX puts the same statements in a form any agent can read.
How to read the ratings
- Exact: same meaning; the value copies across unchanged.
- Close: same meaning in a different shape; the value needs a small conversion.
- Partial: MX holds part of the statement, or holds it more strictly.
- None: no MX field matches. Either the field drives Hub features rather than describing the artefact, or MX has a gap.
YAML metadata fields
| Model card field | MX field | Rating | Note |
|---|---|---|---|
language |
inLanguage |
Close | Hugging Face takes ISO 639-1 codes or Hub language names; MX takes a BCP 47 tag. en is valid in both. |
license |
license |
Close | Both prefer standard identifiers. MX asks for SPDX (Apache-2.0); the Hub uses its own lowercase list (apache-2.0). |
license_name, license_link |
rights |
Close | MX rights holds the reference to a custom licence, the one license: other names. |
library_name |
(none) | None | Hub behaviour: picks the code snippet and loader. Not a fact about the content. |
pipeline_tag |
intendedUse |
Partial | The task a model performs is one of its permitted uses. The Hub also uses the tag to choose a widget, which MX does not model. |
tags |
tags |
Exact | Both are plain string lists for discovery. |
tags: arxiv:<id> |
refersToExternal |
Close | MX keeps cited works out of the tag list and in their own field. |
tags: not-for-all-audiences |
contentRating |
Close | MX gives the rating as a field, not a tag (adult, mature, or a rating from a named scheme), so an agent can act on it before showing the content. |
datasets |
dataSources |
Close | MX references a cog describing each source rather than a Hub dataset ID. |
base_model |
derivedFrom |
Close | Both name the upstream artefact. Hugging Face uses a Hub model ID; MX uses a path or URI. |
base_model_relation |
derivedFromRelation |
Close | Hugging Face: finetune, adapter, quantized, merge. MX: rendering, excerpt, summary, adaptation, fork. The values differ because MX describes documents, not weights; the idea of stating the relation is the same. |
new_version |
supersededBy |
Exact | Both point at the newer artefact. MX also has the inverse, replaces. |
release_date |
(none) | None | A pre-release countdown on the Hub. MX has expires for the end of authority, but no embargo date. |
thumbnail |
image |
Exact | Social-share preview. |
model-index |
evalTask, evalSubjects, evalResults |
Partial | The legacy Papers with Code structure. MX splits the task, the models tested, and the scores into separate fields. |
.eval_results/*.yaml |
evalResults, evalKey, evalGrading, evalRuns |
Close | Both pin the benchmark. Hugging Face pins the benchmark dataset revision; MX records when the answer key was fixed and where it lives (evalKey), how answers were scored (evalGrading) and how many runs (evalRuns). |
verifyToken |
corroboratedBy, integritySignature |
Partial | A Hub token says Hugging Face ran the evaluation. MX names the independent sources that state the result, and can sign it. |
co2_eq_emissions |
resourceProfile |
Partial | Hugging Face records grams of CO2 with a source, location, hardware and training type. MX records compute and energy with a unit, whether the figure was measured, estimated or declared, the method, and a comparison baseline. MX will not treat a figure without a basis and a baseline as an energy claim. |
widget |
(body) | None | Example inputs (text, src, example_title) and outputs for the Hub's hosted widget. They demonstrate the model rather than describe it, so in MX they stay in the body with other example code. |
Gated access fields
A gated model or dataset asks a visitor to fill in a form before download. These fields configure that form. The Hub enforces the gate. MX supplies inputs that an access check reads and never does the checking itself, so most of these have no MX counterpart.
| Field | MX field | Rating | Note |
|---|---|---|---|
gated |
(none) | None | Access control belongs to the host. MX can describe the terms, but it does not refuse a download. |
extra_gated_prompt, extra_gated_heading, extra_gated_description, extra_gated_button_content |
(none) | None | Wording for the request form. The licence or terms the form points at go in license or rights. |
extra_gated_fields |
dataProcessing |
Partial | The form collects personal data (names, countries, dates, free text). MX can state what is collected, why, on what legal basis and who receives it, in W3C Data Privacy Vocabulary terms. The form layout itself has no MX field. |
extra_gated_eu_disallowed |
(none) | None | Blocks EU visitors by IP address. MX has no field for refusing access by region; applicability.jurisdiction says where content is in force, which is a different statement. |
Card sections
The body of a model card follows the annotated template. Most sections are prose for people, but each one makes a statement a machine can use.
| Card section | MX field | Rating | Note |
|---|---|---|---|
| Model summary | description, purpose |
Close | description is the one-line summary; purpose says why the artefact exists. |
| Developed by, Shared by | author, publisher, stewardship |
Close | MX separates who made it, who publishes it, and who is accountable for it now. |
| Funded by | funder |
Close | MX names the person, organisation or funding scheme, as Schema.org funder does. |
| Model type, Language(s), License | type, inLanguage, license |
Close | See the YAML table above. |
| Finetuned from | derivedFrom, derivedFromRelation |
Close | See base_model above. |
| Model sources (repository, paper, demo) | refersToExternal, alternateFormats |
Close | Cited works go in refersToExternal; other renderings of the same thing go in alternateFormats. |
| Direct use, Downstream use | intendedUse (permitted) |
Close | MX lists permitted uses with notes. |
| Out-of-scope use | intendedUse (prohibited) |
Close | MX lists prohibited uses in the same field. |
| Bias and risks | inherentRisk, residualRisk |
Partial | MX records risk before and after controls, with a level, a basis and who accepted it. |
| Limitations | knownLimitations |
Close | MX lists the uses the artefact cannot support, one per entry, for the next reader. |
| Recommendations | runbook |
Partial | runbook tells an agent how to act on the document; card recommendations are advice to people. |
| How to get started | (body) | None | Example code stays in the body. MX has no field for it. |
| Training data | dataSources, trainingDataPolicy |
Partial | dataSources names the sources the system uses. trainingDataPolicy is the other direction: whether this document may be used to train a model. |
| Preprocessing | transformations |
Close | MX records each preparation step with its type, method, tool, date and who performed it. |
| Training hyperparameters, speeds and sizes | (body) | None | Technical detail stays in the body. |
| Evaluation: testing data, factors, metrics, results | evalTask, evalSubjects, evalGrading, evalResults |
Partial | Hugging Face asks for results split by factor and subgroup. MX holds each model's score and the cost of the run; a split by subgroup stays in the body. |
| Environmental impact | resourceProfile |
Partial | See co2_eq_emissions above. |
| Technical specifications | (body) | None | Architecture and infrastructure stay in the body. |
| Citation (BibTeX, APA) | citeAs |
Partial | MX holds the persistent identifier to cite (a DOI, an ARK, a stable URL); the formatted citation stays in the body. |
| Glossary | termGlossary |
Partial | MX binds only the terms a wrong reading would change, each to the sense it carries in this document. A full glossary stays in the body. |
| Model card authors | maintainedBy |
Close | Who last confirmed the card is accurate. |
| Model card contact | supportContact |
Exact | Where questions about the content go. |
Dataset cards
A dataset card uses the same pattern: YAML metadata on a README. Fields it shares with model cards (language, license, license_name, license_link, tags, the extra_gated_* fields) map as in the tables above.
| Dataset card field | MX field | Rating | Note |
|---|---|---|---|
language_details |
inLanguage |
Exact | Both take BCP 47 tags such as fr-FR. |
license_details |
rights |
Close | A legacy prose description of a custom licence. |
pretty_name |
displayName |
Exact | The name a person sees. |
source_datasets |
derivedFrom |
Close | The upstream datasets. Add derivedFromRelation when a reader needs to know whether it is an excerpt, an adaptation or a fork. |
annotations_creators |
transformations |
Partial | Hugging Face gives a category (crowdsourced, expert-generated, machine-generated). MX records each annotation step with its method, tool, date and who performed it. |
language_creators |
(none) | None | MX has no field for how the raw text was produced as a category. Name the sources in dataSources. |
task_categories, task_ids |
intendedUse |
Partial | The tasks the dataset supports are permitted uses. The Hub also uses them as filters. |
size_categories |
(none) | None | A Hub filter bucket. |
paperswithcode_id |
refersToExternal |
Close | A cited work, by identifier. |
configs |
(none) | None | Tells the loader which files make up each subset. Hub behaviour. |
dataset_info |
schema |
Partial | Hugging Face lists the feature types and split sizes. MX points at the schema the data follows; the feature list stays in the YAML. |
The body follows the dataset card template. Its sections on uses, risks and limitations, recommendations, citation and glossary, and its authors and contact, map as the model card sections do above.
| Dataset card section | MX field | Rating | Note |
|---|---|---|---|
| Dataset Description | description |
Close | The summary of what the dataset is. |
| Dataset Sources | refersToExternal |
Close | Repository, paper and demo links. |
| Dataset Structure | schema |
Partial | MX points at the schema. How splits were made and how data points relate stay in the body. |
| Curation Rationale | purpose |
Close | Why the dataset exists. |
| Source Data | dataSources |
Close | The sources behind the dataset. |
| Data Collection and Processing | transformations |
Close | Collection, filtering and normalisation, one step at a time. |
| Source data producers | parties |
Partial | MX names the parties and their roles. Demographics stay in the body. |
| Annotation process | transformations |
Close | Annotation is one more recorded step. |
| Annotators | transformations |
Partial | The actor on each annotation step. |
| Personal and Sensitive Information | dataProcessing |
Partial | MX states the personal data categories and the measures that protect them. Whether the data was anonymised and how stays in the body. |
| More Information | (body) | None | Free text. |
What MX adds
A model card says what the artefact is and how to use it. It does not let a reader check that the card is genuine, unchanged, or backed by anyone other than its publisher. MX adds those checks:
proofOfAuthorshiplinks the named author to the artefact, with a signature or a trust-chain identifier.integritySignaturelets a reader detect changes since publication.provenancePedigreetraces the chain back to the source, including each transformation.claimBasissays how the main claims are known: asserted, inferred, observed, or corroborated.corroboratedBylists independent sources that state the same claims.completenesssays whether a list is exhaustive, so a missing entry can be read as absent rather than unknown.
These fields are the reason to carry MX beside a model card rather than instead of it. The card says what the publisher believes. MX lets a machine check how far to believe it. MX is not a compliance grant: carrying these fields is evidence a reader can weigh, not a certificate.
What MX took from model cards
Two MX fields come straight from this format. derivedFromRelation follows base_model_relation: naming the source is not enough, and a reader needs to know whether the derived thing is a rendering, an excerpt, a summary, an adaptation, or a fork. knownLimitations follows the Limitations part of the card's "Bias, Risks, and Limitations" section, which keeps technical failure modes apart from social harms. Both are experimental in MX.