DevTools Logo

Model Card YAML Viewer

Model Card YAML Viewer

Paste a Hugging Face README to see its metadata, lineage and missing safety fields — no API calls.

Runs in your browser6 findingsapache-2.0
Try an example

Audit result

6 findings
tag.format: Tag "Conversational" is not kebab-case.
pipeline.unknown: Unknown pipeline_tag "text-generaton" — did you mean text-generation?.
model-index.empty: model-index exists but has no results/metrics.
body.limitations: No Limitations section.
body.bias: No bias or risk discussion found.
title.mismatch: Markdown title differs from the name field.

tiny-support-assistant

License: apache-2.0 · Library: transformers

Pipeline: text-generaton — did you mean text-generation?

Lineage

  • example/base-7b

Datasets

support_tickets

Tags

Conversational

Languages

none

Corrected YAML skeleton

missing fields only
license: apache-2.0
library_name: transformers
pipeline_tag: text-generation
tags:
  - llm
  - custom-model
datasets: []
base_model: []
model-index:
  - results:
      - task:
          type: text-generation
        metrics: []

Examples

Complete card

Input
Sample README with a typo
Output
Card view plus PIPELINE_TYPO warning

The tool suggests text-generation for text-generaton.

Missing fields

Input
name and tags only
Output
NO_LICENSE, NO_INTENDED_USE, NO_LIMITATIONS

The skeleton emits only the missing fields.

Revision diff

Input
Two pasted cards
Output
added / removed / changed frontmatter keys

Useful before publishing a model update.

About this tool

The Model Card YAML Viewer reads a Hugging Face README and separates YAML frontmatter from the markdown body, then interprets the fields the Hub actually cares about: license, base_model, datasets, tags, library_name, pipeline_tag, language and model-index. Scalar and list forms are normalized so ordinary hand-written cards parse without complaint.

The audit checks for a missing license, license: other without license_name, unknown or misspelled pipeline tags, non-kebab-case tags, empty model-index blocks and absent Intended Use, Limitations or bias sections. A lineage view chains base_model values with a depth cap and cycle detection, and pasting parent cards extends the chain.

Body previews render a small markdown subset after escaping all HTML, and link schemes are allowlisted. Cards stay in the tab: nothing is fetched from Hugging Face, and the corrected YAML skeleton contains only the fields the audit found missing.

What this tool does not do

  • Allowlists of licenses and pipeline tags are bundled snapshots and may lag the Hub; unknown values become informational notes, not errors.
  • The markdown preview intentionally covers a small subset: headings, lists, links, code, bold and italic.
  • No Hugging Face API is contacted; lineage beyond a single card requires pasting parent cards.

How to use this tool

  1. Paste a README

    Use a full model README or only the frontmatter block. YAML syntax errors are reported with line and column numbers.

  2. Review the card

    Read identity, lineage, datasets, tags and metrics in the card tab; switch to issues for the audit list.

  3. Extend the lineage

    Paste parent cards into the optional field to follow base_model links beyond the first model.

  4. Fix and export

    Copy the YAML skeleton for missing fields, export the audit summary, or compare two revisions key by key.

Use cases

Pre-release review

Catch a missing license or limitations section before publishing a model.

Org compliance audit

Check a batch of cards against the same safety baseline without leaving the browser.

Lineage research

Inspect a fine-tune's base chain, including cycles introduced by hand-written metadata.

Checks at a glance

AreaWhat is checked
Metadatalicense, license_name, pipeline_tag, library_name, tags, datasets, language
SafetyIntended Use, Limitations, bias/risk discussion, model-index metrics
Lineagebase_model chain, depth cap 10, cycle detection, optional parent cards

Frontmatter-only pastes skip body section checks and say so explicitly.

Common mistakes

Mistake:Assuming any YAML is a valid model card.

Fix:This tool checks HF conventions, not generic YAML syntax alone; use a YAML validator for syntax-only problems.

Mistake:Writing license: other without license_name.

Fix:Add license_name — the paired-field rule is reported as a warning.

Mistake:Pasting unrendered HTML into the body.

Fix:The preview escapes it and blocks javascript: links; read the raw body tab for exact text.

Frequently asked questions

Which frontmatter fields does Hugging Face use?

Common fields include name, license and license_name, base_model, datasets, tags, library_name, pipeline_tag, language, inference and model-index. The viewer renders all of them, accepts scalar or list forms where the Hub does, and reports unknown fields without discarding them.

What safety fields are checked?

The audit looks for a license, a license_name when license is other, an Intended Use section, a Limitations section, some discussion of bias or risks, and a model-index with actual metrics. Missing items are tagged error, warning or info depending on how serious they are.

How is base_model lineage built?

Each base_model value becomes a node. If you paste parent cards, their name and base_model fields are linked in, up to ten levels; a repeated model marks a cycle and stops the walk. Without parent cards the chain is one level and the tool says so.

Does it fetch anything from Hugging Face?

No. The tool is paste-only by design because pre-release model cards can be confidential. Parsing, auditing and rendering happen entirely in your browser tab; no API key or network access is involved.

What is model-index and why is an empty one a warning?

model-index is the structured eval-results block on a Hub card. Its results arrays contain task definitions and metric rows. An empty block looks complete to a reader but provides no reproducible numbers, so the audit warns and the skeleton offers a valid example row.

How do I fix a pipeline_tag typo?

The audit compares your value against a bundled list of Hub pipeline tags using edit distance and offers a did-you-mean suggestion. Copy the corrected YAML skeleton or edit the card directly, then paste it again to confirm the warning is gone.