induwara.lk
induwara.lkDeveloper · AI

AI Model Card Generator — Hugging Face README & YAML Metadata

Fill a form and get a complete, Hub-valid README.md model card — correctly-keyed YAML frontmatter plus the standard Hugging Face sections. It runs in your browser, so nothing you type is uploaded.

By Induwara AshinsanaUpdated Jul 1, 2026
Build your model cardREADME.md + YAML
Spec verified
Start from a preset
71/300
si
induwara/sinhala-news
3/20
sinhalanewsdistilbert
Evaluation results
Metadata checklist5/5
  • Model name setThe H1 and the model-index name come from this.
  • License chosenThe Hub filters and gates downloads by license.
  • Task (pipeline_tag) setDrives discovery filters and the inference widget.
  • Summary writtenThe one-line lead under the H1; the first thing readers see.
  • At least one evaluation resultAdds a model-index block, unlocking the Hub's metrics badges.
README.mdValid frontmatter
---
license: apache-2.0
language:
- si
library_name: transformers
pipeline_tag: text-classification
base_model: distilbert-base-uncased
datasets:
- induwara/sinhala-news
tags:
- sinhala
- news
- distilbert
metrics:
- accuracy
model-index:
- name: sinhala-news-classifier
  results:
  - task:
      type: text-classification
    dataset:
      name: sinhala-news test
      type: sinhala-news-test
    metrics:
    - type: accuracy
      value: 0.912
---

# sinhala-news-classifier

DistilBERT fine-tuned to classify Sinhala news headlines into 6 topics.

## Model Details

### Model Description

- **Developed by:** induwara
- **Model type:** text-classification
- **Language(s):** si
- **License:** apache-2.0
- **Finetuned from model:** distilbert-base-uncased

## Uses

### Direct Use

Classify a Sinhala news headline into one of six topic labels.

### Downstream Use

[More Information Needed]

### Out-of-Scope Use

Not validated for long-form articles or languages other than Sinhala.

## Bias, Risks, and Limitations

Training data is drawn from a small set of publishers, so topic balance and regional coverage may be skewed.

### Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. [More Information Needed]

## How to Get Started with the Model

Use the code below to get started with the model.

```python
from transformers import pipeline

pipe = pipeline("text-classification", model="induwara/sinhala-news-classifier")
```

## Training Details

### Training Data

~40k labelled Sinhala headlines from the induwara/sinhala-news dataset.

### Training Procedure

[More Information Needed]

## Evaluation

### Testing Data, Factors & Metrics

[More Information Needed]

### Results

| Metric | Value | Dataset |
| --- | --- | --- |
| accuracy | 0.912 | sinhala-news test |

## Environmental Impact

Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in Lacoste et al. (2019).

- **Hardware Type:** [More Information Needed]
- **Hours used:** [More Information Needed]
- **Cloud Provider:** [More Information Needed]
- **Compute Region:** [More Information Needed]
- **Carbon Emitted:** [More Information Needed]

## Technical Specifications

[More Information Needed]

## Citation

**BibTeX:**

[More Information Needed]

Generated entirely in your browser — nothing you type is uploaded.

How it works

On the Hugging Face Hub, a model repository's README.md is the model card. It has two parts: a YAML metadata block between two ---fences at the very top, and Markdown documentation below it. Get the YAML keys wrong and the Hub quietly ignores them, so the model page shows "no model card" and ranks nowhere. This tool is a deterministic assembler — it maps your form fields to the exact keys and the exact section order the Hub documents.

YAML frontmatter. Only the fields you fill in are emitted, in the Hub-recognised order: license, language, library_name, pipeline_tag, base_model, datasets, tags, metrics, and model-index. Empty keys are dropped so the block stays clean and valid. Values containing YAML-hostile characters (a colon, a hash) are quoted automatically so the block never breaks.

Evaluation → model-index. Each evaluation row you add (metric, value, dataset) becomes one entry under model-index → results, with task.type taken from your pipeline tag and a slugified dataset.type. Numeric values stay bare; non-numeric ones are quoted. With zero rows, both metrics and model-index are omitted — the correct behaviour, not an oversight.

Body. The generator emits # Model name, your summary as the lead paragraph, then the fixed H2 skeleton in Hugging Face's annotated-template order: Model Details, Uses (Direct / Downstream / Out-of-Scope), Bias Risks and Limitations, How to Get Started (a framework-specific code snippet), Training Details, Evaluation, Environmental Impact, Technical Specifications, and Citation. Sections you leave blank carry the [More Information Needed] placeholder — exactly what the official template does — so the card is complete and honest about its gaps.

Cross-check.The "spec verified" badge is not decorative. After each keystroke an independent function re-scans the emitted frontmatter and confirms every top-level key is in the recognised set, that key order matches the documented order, and that model-index appears if and only if there is at least one evaluation row. The keys, license list and section order come straight from the Hugging Face docs cited below, last verified 2026-07-01.

Worked examples

Text-classification model (Sinhala news)

  • Name: sinhala-news-classifier · Author: induwara
  • License: apache-2.0 · Language: si
  • Task: text-classification · Base: distilbert-base-uncased
  • Datasets: induwara/sinhala-news · Tags: sinhala, news, distilbert
  • Eval: accuracy = 0.912 on sinhala-news test
---
license: apache-2.0
language:
- si
library_name: transformers
pipeline_tag: text-classification
base_model: distilbert-base-uncased
datasets:
- induwara/sinhala-news
tags:
- sinhala
- news
- distilbert
metrics:
- accuracy
model-index:
- name: sinhala-news-classifier
  results:
  - task:
      type: text-classification
    dataset:
      name: sinhala-news test
      type: sinhala-news-test
    metrics:
    - type: accuracy
      value: 0.912
---

# sinhala-news-classifier

DistilBERT fine-tuned to classify Sinhala news headlines into 6 topics.
...

Every top-level key is Hub-recognised. The one eval row produces one model-index result; 0.912 stays a bare number because it parses as numeric; dataset.type is the slug of the dataset name (sinhala-news-test).

Text-generation LLM, minimal metadata

  • Name: tiny-lk-llm (no author)
  • License: mit · Task: text-generation
  • No datasets, no evaluation rows
  • Out-of-scope: Not for medical, legal, or financial advice.
---
license: mit
library_name: transformers
pipeline_tag: text-generation
tags:
- chat
- sri-lanka
---

# tiny-lk-llm

A 1.1B parameter chat model for Sri Lankan English.
...
### Out-of-Scope Use

Not for medical, legal, or financial advice.
...

Zero eval rows ⇒ metrics and model-index are correctly omitted. The filled Out-of-Scope section appears; every other blank section carries the [More Information Needed] placeholder.

Edge case — empty form

  • License: (cleared) · Task: (cleared)
  • Every field left blank
---
---

# my-awesome-model

[More Information Needed]
...

With nothing supplied, the frontmatter is the minimal valid ---\\n---. The card is still emitted so you can see the full skeleton; the checklist flags license, task and summary as missing.

Frequently asked questions

Sources & references

The recognised YAML keys, the license list and the section order on this page were last cross-checked against the Hugging Face docs on 2026-07-01. The format is a documented specification; this page is reviewed whenever Hugging Face revises the model card template.

Related tools

Rate this tool
Be the first to rate

Comments & feedback

Spotted a bug or want an improvement? Tell us — our team reviews every comment, and good ideas get built. Comments are public and anonymous.

Found a bug, edge case, or want another card field supported?

Email me at [email protected] — most fixes ship within 24 hours.