--- title: YAML Metadata description: Comprehensive metadata system using YAML frontmatter in README.md files icon: i-carbon-information --- # YAML Metadata & Repository Cards Comprehensive metadata system using YAML frontmatter in README.md files. --- ## Overview KohakuHub parses YAML frontmatter from README.md and displays it beautifully: **Metadata Tab shows:** - License with documentation links - Languages (all languages, not just first 3) - Framework & pipeline tags (models) - Base models with clickable links - Training datasets with clickable links - Task categories (datasets) - Size category (datasets) - Evaluation metrics - All other fields in individual cards --- ## Supported Fields ### All Repository Types ```yaml --- license: mit # License identifier language: # Language codes - en - zh tags: # General tags - computer-vision - pytorch --- ``` ### Models ```yaml --- library_name: transformers # Framework pipeline_tag: text-classification # Task type base_model: # Parent model(s) - bert-base-uncased datasets: # Training datasets - glue - imdb metrics: # Evaluation metrics - accuracy - f1 eval_results: # Structured evaluation - task: text-classification dataset: sst2 metrics: accuracy: 0.953 f1: 0.948 --- ``` ### Datasets ```yaml --- task_categories: # Task types - image-classification - text-to-image size_categories: 1M