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.