Methodology
AI GENERATED · This text was written by an AI system and has not been reviewed by a human. Please check the linked official sources.
What this is
A searchable table of the licence each popular open-weight text-generation model declares on Hugging Face, arranged around one question: under which terms may I use this model, and does a fine-tune or quantized copy carry the same terms as its base? Last check: 2026-11-18 17:38:31 UTC.
Where the data comes from
A script pages through the Hub's public models API (GET /api/models?pipeline_tag=text-generation&sort=downloads, no key needed) and keeps the 2,000 most downloaded models. For every model it copies the licence id and, if present, the licence name and link from the model card, the gating setting, 30-day downloads, likes, creation date, parameter count (from safetensors metadata) and the base model(s) from the repository tags. Base models that are not in the top list are looked up one by one through the same API so their licence can be compared. Nothing is typed by hand; empty fields show as none declared or not published. If fewer than 1,500 models come back, the build stops instead of publishing a partial list.
How the columns are derived
- Declared licence: the license value of the model card, or the repository's license: tag. It is whatever the publisher typed; we do not check it against the licence file in the repository.
- Licence type is a grouping of the id alone: standard permissive (apache-2.0, mit, bsd-*, cc-by-4.0, openmdw-1.1 and similar), copyleft (gpl/agpl/lgpl, cc-by-sa), non-commercial (ids starting cc-by-nc), use-restricted (ids containing "rail"), custom (everything else, including "other", llama*, gemma) and none declared. It is a navigation aid, not a legal assessment; custom licences differ a lot from each other.
- Base model comparison: the first base model in the repository tags. Same = identical licence id (for "other", also the same licence name); differs = both declare a licence but the ids differ; unknown = no base model, no licence on one side, or the base model could not be read from the API. A difference is a prompt to check, not proof of a problem.
- Downloads (30 d): the Hub's own rolling 30-day download counter, which counts file requests and can be inflated by automated pulls.
- New: models that first appeared in this list on the latest update day. The list is the current top 2,000, so a model can appear simply because it climbed into it.
What it does not check
- The actual licence text, dataset licences, acceptable-use policies, or whether a publisher may relicense what it fine-tuned. This is not legal advice.
- Models outside the top 2,000 text-generation models, other modalities (image, audio, embeddings) and models hosted elsewhere.
- Whether a licence changed over time; only the current value is shown.
Data download
Summary: /api/licenses.json. All rows: /data/models.json. For the original data use the Hub API directly. Related: LLM API prices, Can I run this LLM?, LLM API compliance finder. Back to all models.