Skip to main content

Model Card Generator: Hugging Face README Template + Completeness Checker

Fill in a form and get a Hugging Face model card: a README.md with valid YAML metadata (license, language, datasets, tags, base model, model-index results) and the sections from Mitchell et al. (2019).

A live completeness score flags metrics with no dataset, missing limitations and invalid license ids.

Copy or download.

Last updatedHow we build & check our tools

Interactive Tool

Loading interactive tool…

Enter your values once it appears to see your results.

Results will appear here once the tool finishes loading. Everything runs locally in your browser.

How the generator builds your README.md

Every part of the output follows a published spec, so the same form always gives the same file. Nothing leaves your browser.

  • YAML front matter. The fields and their shapes come from the Hugging Face model card metadata spec. One base model is written as a string and several (a merge) as a list. license_name and license_link appear only with license: other. Values YAML could misread (yes, null, 1.5, anything with ": " or a leading dash) are double-quoted.
  • model-index. Each metric row with a type, a value and a dataset becomes a result. Rows that share a dataset and split are grouped under one result, and numbers are written as numbers so the Hub results widget can read them.
  • Markdown body. The headings are those of the official annotated model card template, in the same order. Empty sections get the template's own placeholder, [More Information Needed], so reviewers see the gap instead of a missing heading.
  • Checks. Errors are things the Hub or a reader cannot work with: no model ID, a license id that is not on the Hub list, a metric with no value or no dataset. Warnings are gaps worth fixing: no limitations, no out-of-scope uses, language codes that are not ISO 639-1, a metric with no split.

Worked example: a support ticket router

The form opens with a made-up model, acme/support-ticket-router: DistilBERT fine-tuned on 48,200 support tickets to pick one of 6 queues, tested on 6,000 tickets from a later month. Two metric rows are filled in: accuracy 0.912 and macro F1 0.874, both on the test split of acme/support-tickets-2025.

  • Front matter. license: apache-2.0, language: [en], library_name: transformers, pipeline_tag: text-classification, base_model: distilbert/distilbert-base-uncased, and metrics: [accuracy, f1].
  • model-index. Both rows share a dataset and split, so they become one result: task type text-classification, the dataset name and id, split test, and two metrics with value 0.912 and 0.874.
  • Score. All 17 checks pass, so the card shows 100%.
  • Break it on purpose. Clear the limitations box and the score drops to 94% (16 of 17), with a warning. Clear the dataset from metric 1 and you get an error, and that row leaves the model-index, because a score with no data behind it cannot be compared.

The limitations in the example are specific: short tickets under 10 words are routed at 84.0% accuracy against 91.2% overall. That is the kind of number Mitchell et al. mean by factors and quantitative analyses. To work out per-class numbers for your own table, use the confusion matrix calculator.

Writing the sections people skip

  • Out-of-scope use. Name the uses you expect someone to try that the model was not built or tested for, and say why: "not for automatic routing with no human check", "not tested on non-English tickets".
  • Factors. List the groups or conditions you broke results down by, such as input length, language, channel, device or demographic group where relevant. Mitchell et al. argue that one overall number hides the cases where a model fails.
  • Bias, risks and limitations. Data the model never saw, groups it does worse on, inputs that break it. If you have a number, give it.
  • Recommendations. What a user should do about each risk: keep a person in the loop, set a confidence cut-off, re-test on fresh data every quarter.
  • Environmental impact. Hardware, hours and cloud provider are enough to estimate emissions with the ML CO2 Impact calculator from Lacoste et al. (2019), which the template links to.

Releasing training data with the model? Build and check the file with the fine-tuning dataset builder. For a classifier whose confidence scores you quote, add a calibration figure from the expected calibration error calculator.

What this generator cannot check

  • Whether the content is true. It checks that sections are filled and fields are well formed. It cannot tell if an accuracy figure is right or a limitation is honest.
  • Whether Hub ids exist. Dataset and base model ids are checked for shape (owner/name), not looked up. The Hub validates the metadata when you push README.md and will reject what it cannot parse.
  • Every task id. The pipeline tag menu lists the common tasks. If yours is missing, add it to the YAML by hand after copying.
  • The newer eval results format. Hugging Face also documents a simpler eval_results file. This tool writes the model-index format, which the Hub still reads.
  • Dataset cards. A dataset you publish needs its own card in the dataset repo.

Frequently Asked Questions

Common questions about the Model Card Generator: Hugging Face README Template + Completeness Checker

A short document that ships with a machine learning model and says what it is for, how it was trained and tested, how well it works and where it fails. The idea comes from Mitchell et al., "Model Cards for Model Reporting" (FAT* 2019), which proposed nine sections: model details, intended use, factors, metrics, evaluation data, training data, quantitative analyses, ethical considerations, and caveats and recommendations. On Hugging Face the model card is the README.md in the model repo.

From the same team

Stop paying per token — route AI requests to your own GPU

Wide Area AI is a local-first AI gateway: repeated requests hit an edge cache, the rest run free on your own hardware, and the cloud is only a failover. OpenAI-compatible endpoint, free tier.

Start routing — free

Sources & References

Model Cards for Model Reporting

Margaret Mitchell, Simone Wu, Andrew Zaldivar, Parker Barnes, Lucy Vasserman, Ben Hutchinson, Elena Spitzer, Inioluwa Deborah Raji and Timnit Gebru. Proceedings of FAT* 2019. Source of the nine model card sections the form follows.

Model Cards

Explains the README.md + YAML structure, the language, license (with license_name and license_link for other), library_name (explicit since August 2024), base_model and model-index fields.

Model card metadata specification (modelcard.md)

Full YAML spec. Basis of the required model-index keys: task.type, dataset.type and dataset.name, metrics type and value.

Annotated Model Card Template

Section-by-section guidance for the template whose headings the README follows, including the [More Information Needed] placeholder.

Licenses

The list of license identifiers accepted in a repo card. The license menu and the license check use this list (checked November 2026).

Quantifying the Carbon Emissions of Machine Learning

Alexandre Lacoste, Alexandra Luccioni, Victor Schmidt and Thomas Dandres. Source of the ML CO2 Impact calculator linked in the Environmental Impact section.

Explore More Tools

Explore these related tools for your next step.

ai
ai
ai
ai
ai
ai