model-family-tree
This server exposes the Open Model Family Tree as six read-only tools for exploring Hugging Face model ancestry, descendants, and ecosystem leaderboards.
lineage(id, max_depth=12)— walk a model's declared ancestry up to its root, hop by hop, with each relation (finetune/adapter/quantized/merge) and descendant counts; merges list all parents.children(id, sort="downloads", limit=20, relation=null)— list a model's direct descendants, most downloaded (or most liked) first, optionally filtered to one relation type; live from the Hub with a nightly top-25 fallback.leaderboard(kind="all_time", limit=20, offset=0)— rank most-descended base models overall, in the last 90 days, finetune-only, by family, or by organization.family(name)— get one family's (e.g. "Qwen2.5", "FLUX.1") totals, relation breakdown, roots, orgs, and top models by descendants.search(query, limit=15)— find models that have descendants by id substring, most-descended first, across the ~88k parents.stats()— headline build numbers: models tracked, links, parents, roots, families, and dates.
Provides tools for exploring model ancestry, descendants, and ecosystem rankings on the Hugging Face Hub, including lineage lookup, children/derivatives listing, family grouping, search, and leaderboards of the most-built-on base models.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@model-family-tree what is unsloth/Qwen2.5-7B-Instruct based on, and which Qwen base has the most finetunes?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fly through the Model Galaxy → · 997,369 models in one zoomable WebGL map · Explorer → · search any model, walk its pedigree, share a link.
Open Model Family Tree
Every model on the Hugging Face Hub, its ancestry, and a leaderboard of the base models the ecosystem actually builds on. Rebuilt nightly.
3,273,553 models · 949,917 declare a base model (29%) · 982,986 parent links · 94,649 models have descendants · 47,413 roots in 25,396 families
The most built-on model on the Hub is black-forest-labs/FLUX.1-dev with 43,693 descendants. In the last 90 days it is Qwen/Qwen3.8-27B with 5,246 new ones. The biggest family is Qwen2.5 (72,879).
Install into your agent
claude plugin marketplace add h9-tec/model-family-tree
claude plugin install model-family-tree@model-family-treeRequires uv on PATH. Then ask Claude: what is unsloth/Qwen2.5-7B-Instruct based on, and which Qwen base has the most finetunes? It answers from the lineage and leaderboard MCP tools.
{"mcpServers": {"model-family-tree": {"command": "uv", "args": ["run", "--frozen", "--no-dev", "--directory", "/path/to/model-family-tree", "python", "mcp/server.py"]}}}Tools: lineage(id), children(id), leaderboard(kind), family(name), search(query).
Related MCP server: Dev AI Ecosystem MCP
See it
Every model that has an ancestor or a descendant (997,369 points) in one WebGL map. Families are circle-packed clusters, base models are stars, each derivative is a dot colored by relation and sized by downloads. Scroll to zoom from the whole Hub down to one model, click any dot. | |
Type any model id. Its pedigree is drawn as a radial tree: every ancestor path fans out to the left (merges show all parents), the most downloaded descendants to the right, unfoldable level by level, live from the Hub. | |
All 94,649 models with descendants, sortable and filterable, plus the curated views below. |
Most-descended base models
Unique descendants of every kind: finetunes, adapters (LoRA), quantizations and merges, each counted once however many paths reach it. † marks a base that was deleted or made private but is still referenced. Full top 500 →
# | Model | Descendants | Direct | Last 90d | Finetune / adapter / quantized / merge | Family |
1 | 43,693 | 43,415 | 214 | 695 / 42,844 / 138 / 16 | FLUX.1 | |
2 | 32,562 | 32,534 | 0 | 40 / 32,475 / 45 / 2 | Qwen1.5 | |
3 | 30,658 | 30,628 | 2 | 36 / 30,591 / 29 / 2 | Qwen1.5 | |
4 | 24,120 | 24,040 | 8 | 313 / 23,706 / 90 / 11 | Gemma 1 | |
5 | 23,347 | 2,003 | 2,529 | 12,294 / 7,034 / 3,488 / 531 | Qwen2.5 | |
6 | 21,839 | 3,227 | 1,625 | 9,614 / 6,253 / 5,141 / 831 | Llama 3.1 | |
7 | 15,416 | 7,513 | 1,272 | 6,951 / 4,174 / 3,593 / 698 | Llama 3.1 | |
8 | 15,015 | 6,983 | 1,898 | 8,836 / 4,148 / 1,690 / 341 | Qwen2.5 | |
9 | 13,850 | 13,468 | 745 | 13,280 / 406 / 163 / 1 | DistilBERT | |
10 | 11,730 | 1,101 | 1,987 | 5,321 / 4,389 / 1,857 / 163 | Qwen2.5 | |
11 | 11,648 | 4,018 | 89 | 3,010 / 5,186 / 2,072 / 1,365 | Mistral | |
12 | 11,624 | 11,137 | 269 | 1,431 / 10,083 / 56 / 54 | Stable Diffusion | |
13 | 11,536 | 9,150 | 1,581 | 3,706 / 6,575 / 1,164 / 91 | Qwen3 | |
14 | 10,297 | 937 | 1,969 | 5,132 / 3,176 / 1,915 / 73 | Qwen3 | |
15 | 10,267 | 210 | 1,558 | 9,218 / 672 / 372 / 5 | SmolLM2 | |
16 | 10,264 | 1,726 | 97 | 4,245 / 2,072 / 2,974 / 973 | Llama 3 | |
17 | 10,220 | 1,488 | 1,288 | 6,231 / 2,507 / 1,423 / 59 | Qwen2.5 | |
18 | 9,862 | 9,589 | 9 | 460 / 9,296 / 98 / 8 | Gemma 1 | |
19 | 9,788 | 441 | 1,516 | 9,048 / 437 / 298 / 5 | SmolLM2 | |
20 | 9,001 | 93 | 1,334 | 8,761 / 172 / 68 / 0 | SmolLM2 | |
21 | 8,899 | 143 | 1,318 | 8,727 / 141 / 31 / 0 | SmolLM2 | |
22 | 8,863 | 1,151 | 1,173 | 3,996 / 3,256 / 1,553 / 58 | Qwen2.5 | |
23 | 8,752 | 8,664 | 1,296 | 8,622 / 123 / 7 / 0 | SmolLM2 | |
24 | 8,482 | 5,504 | 1,479 | 3,890 / 2,935 / 1,587 / 69 | Qwen3 | |
25 | 7,764 | 830 | 3,801 | 3,132 / 1,687 / 2,810 / 135 | Qwen3.5 |
Hot right now: new descendants in the last 90 days
# | Model | Descendants | Direct | Last 90d | Finetune / adapter / quantized / merge | Family |
1 | 7,139 | 3,485 | 5,246 | 1,685 / 624 / 4,750 / 80 | Qwen3.8 | |
2 | 6,943 | 612 | 4,137 | 2,875 / 1,886 / 2,116 / 66 | Qwen3.5 | |
3 | 7,764 | 830 | 3,801 | 3,132 / 1,687 / 2,810 / 135 | Qwen3.5 | |
4 | 6,077 | 3,690 | 3,558 | 2,377 / 1,691 / 1,948 / 61 | Qwen3.5 | |
5 | 6,535 | 3,544 | 3,361 | 2,288 / 1,564 / 2,551 / 132 | Qwen3.5 | |
6 | 4,054 | 338 | 2,555 | 1,733 / 1,102 / 1,206 / 13 | Qwen3.5 | |
7 | 23,347 | 2,003 | 2,529 | 12,294 / 7,034 / 3,488 / 531 | Qwen2.5 | |
8 | 3,506 | 2,336 | 2,208 | 1,486 / 1,000 / 1,009 / 11 | Qwen3.5 | |
9 | 11,730 | 1,101 | 1,987 | 5,321 / 4,389 / 1,857 / 163 | Qwen2.5 | |
10 | 10,297 | 937 | 1,969 | 5,132 / 3,176 / 1,915 / 73 | Qwen3 | |
11 | 15,015 | 6,983 | 1,898 | 8,836 / 4,148 / 1,690 / 341 | Qwen2.5 | |
12 | 7,306 | 1,026 | 1,797 | 4,159 / 1,167 / 1,923 / 57 | Qwen3 | |
13 | 21,839 | 3,227 | 1,625 | 9,614 / 6,253 / 5,141 / 831 | Llama 3.1 | |
14 | 11,536 | 9,150 | 1,581 | 3,706 / 6,575 / 1,164 / 91 | Qwen3 | |
15 | 10,267 | 210 | 1,558 | 9,218 / 672 / 372 / 5 | SmolLM2 | |
16 | 9,788 | 441 | 1,516 | 9,048 / 437 / 298 / 5 | SmolLM2 | |
17 | 2,902 | 227 | 1,514 | 1,262 / 682 / 949 / 9 | Qwen3.5 | |
18 | 5,656 | 696 | 1,489 | 2,971 / 1,341 / 1,325 / 19 | Qwen3 | |
19 | 8,482 | 5,504 | 1,479 | 3,890 / 2,935 / 1,587 / 69 | Qwen3 | |
20 | 1,547 | 910 | 1,357 | 253 / 15 / 1,228 / 51 | Qwen3.8 | |
21 | 7,203 | 785 | 1,342 | 3,653 / 1,772 / 1,695 / 83 | Qwen3 | |
22 | 9,001 | 93 | 1,334 | 8,761 / 172 / 68 / 0 | SmolLM2 | |
23 | 2,570 | 1,570 | 1,324 | 1,099 / 613 / 850 / 8 | Qwen3.5 | |
24 | 8,899 | 143 | 1,318 | 8,727 / 141 / 31 / 0 | SmolLM2 | |
25 | 6,462 | 4,486 | 1,299 | 2,963 / 2,446 / 937 / 116 | Qwen2.5 |
Finetunes only
Adapters and quantizations inflate the all-time table (tens of thousands of auto-generated LoRAs sit on a few small bases). This view counts descendants whose own relation to their parent is finetune. Full top 500 →
# | Model | Descendants | Direct | Last 90d | Finetune / adapter / quantized / merge | Family |
1 | 13,850 | 13,468 | 745 | 13,280 / 406 / 163 / 1 | DistilBERT | |
2 | 23,347 | 2,003 | 2,529 | 12,294 / 7,034 / 3,488 / 531 | Qwen2.5 | |
3 | 21,839 | 3,227 | 1,625 | 9,614 / 6,253 / 5,141 / 831 | Llama 3.1 | |
4 | 10,267 | 210 | 1,558 | 9,218 / 672 / 372 / 5 | SmolLM2 | |
5 | 9,788 | 441 | 1,516 | 9,048 / 437 / 298 / 5 | SmolLM2 | |
6 | 15,015 | 6,983 | 1,898 | 8,836 / 4,148 / 1,690 / 341 | Qwen2.5 | |
7 | 9,001 | 93 | 1,334 | 8,761 / 172 / 68 / 0 | SmolLM2 | |
8 | 8,899 | 143 | 1,318 | 8,727 / 141 / 31 / 0 | SmolLM2 | |
9 | 8,752 | 8,664 | 1,296 | 8,622 / 123 / 7 / 0 | SmolLM2 | |
10 | 7,718 | 7,472 | 454 | 7,476 / 148 / 87 / 7 | BERT | |
11 | 15,416 | 7,513 | 1,272 | 6,951 / 4,174 / 3,593 / 698 | Llama 3.1 | |
12 | 10,220 | 1,488 | 1,288 | 6,231 / 2,507 / 1,423 / 59 | Qwen2.5 | |
13 | 11,730 | 1,101 | 1,987 | 5,321 / 4,389 / 1,857 / 163 | Qwen2.5 | |
14 | 10,297 | 937 | 1,969 | 5,132 / 3,176 / 1,915 / 73 | Qwen3 | |
15 | 5,725 | 5,674 | 682 | 4,914 / 772 / 37 / 2 | Qwen2.5 | |
16 | 4,838 | 4,470 | 199 | 4,627 / 79 / 131 / 0 | XLM-RoBERTa | |
17 | 6,919 | 406 | 551 | 4,585 / 1,084 / 1,234 / 16 | Gemma 3 | |
18 | 10,264 | 1,726 | 97 | 4,245 / 2,072 / 2,974 / 973 | Llama 3 | |
19 | 7,306 | 1,026 | 1,797 | 4,159 / 1,167 / 1,923 / 57 | Qwen3 | |
20 | 4,865 | 4,505 | 344 | 4,144 / 365 / 356 / 0 | Whisper | |
21 | 4,120 | 4,063 | 17 | 4,108 / 5 / 7 / 0 | BERT | |
22 | 8,863 | 1,151 | 1,173 | 3,996 / 3,256 / 1,553 / 58 | Qwen2.5 | |
23 | 7,515 | 3,560 | 471 | 3,983 / 1,620 / 1,800 / 112 | Llama 3.2 | |
24 | 8,482 | 5,504 | 1,479 | 3,890 / 2,935 / 1,587 / 69 | Qwen3 | |
25 | 11,536 | 9,150 | 1,581 | 3,706 / 6,575 / 1,164 / 91 | Qwen3 |
Families
Roots grouped by series name across organizations (so unsloth/Llama-3.1-8B re-uploads count toward Llama 3.1). Grouping is a heuristic with hand overrides in data/families.yaml; PRs welcome. Full table →
# | Family | Descendants | Last 90d | Roots | Finetune / adapter / quantized / merge | Biggest root |
1 | Qwen2.5 | 72,879 | 8,321 | 720 | 35,203 / 21,055 / 15,071 / 1,550 | |
2 | Qwen1.5 | 71,031 | 13 | 45 | 224 / 70,435 / 356 / 16 | |
3 | Qwen3 | 58,702 | 10,721 | 678 | 26,145 / 18,319 / 13,789 / 447 | |
4 | FLUX.1 | 44,158 | 244 | 16 | 790 / 43,148 / 203 / 17 | |
5 | Gemma 1 | 37,095 | 66 | 185 | 1,763 / 34,370 / 894 / 68 | |
6 | Mistral | 36,729 | 942 | 587 | 10,682 / 11,286 / 11,806 / 2,939 | |
7 | Llama 3.1 | 28,447 | 1,744 | 235 | 11,136 / 7,145 / 8,244 / 1,922 | |
8 | Qwen3.5 | 25,708 | 12,826 | 160 | 10,176 / 5,834 / 9,409 / 288 | |
9 | Llama 3 | 24,221 | 391 | 550 | 8,137 / 5,878 / 7,759 / 2,447 | |
10 | BERT | 23,687 | 931 | 308 | 22,872 / 466 / 341 / 8 | |
11 | Llama 3.2 | 21,289 | 1,157 | 506 | 9,877 / 5,717 / 5,137 / 558 | |
12 | Gemma 3 | 18,811 | 1,462 | 141 | 10,760 / 3,345 / 4,487 / 219 | |
13 | Stable Diffusion | 18,191 | 606 | 31 | 3,443 / 14,559 / 115 / 74 | |
14 | Whisper | 16,186 | 1,789 | 208 | 11,883 / 2,387 / 1,908 / 8 | |
15 | DistilBERT | 15,455 | 813 | 81 | 14,648 / 506 / 300 / 1 | |
16 | SmolLM2 | 14,374 | 2,022 | 63 | 11,437 / 1,729 / 1,190 / 18 | |
17 | Gemma 4 | 13,388 | 4,800 | 142 | 4,128 / 2,416 / 6,641 / 203 | |
18 | Gemma 2 | 12,403 | 379 | 230 | 5,097 / 3,266 / 3,106 / 934 | |
19 | Llama 2 | 11,685 | 263 | 412 | 2,997 / 7,094 / 1,381 / 213 | |
20 | Qwen2 | 10,835 | 166 | 167 | 3,201 / 6,052 / 1,496 / 86 | |
21 | DeepSeek-R1 | 9,041 | 570 | 130 | 2,918 / 1,540 / 3,736 / 847 | |
22 | Qwen3.8 | 8,916 | 6,756 | 73 | 1,972 / 646 / 6,169 / 129 | |
23 | Qwen3.6 | 6,557 | 1,650 | 55 | 1,322 / 1,204 / 3,928 / 96 | |
24 | XLM-RoBERTa | 6,515 | 365 | 49 | 6,174 / 138 / 202 / 0 | |
25 | ViT | 6,165 | 189 | 74 | 5,264 / 754 / 147 / 0 |
Organizations
Descendants of every root owned by the organization, deduplicated. Full table →
# | Organization | Descendants of its roots | Last 90d | Roots | Biggest root |
1 | 252,911 | 41,716 | 149 | ||
2 | 95,428 | 8,424 | 330 | ||
3 | 69,284 | 3,401 | 50 | ||
4 | 46,294 | 798 | 20 | ||
5 | 33,168 | 1,341 | 33 | ||
6 | 24,154 | 253 | 273 | ||
7 | 22,747 | 1,203 | 259 | ||
8 | 20,010 | 2,106 | 21 | ||
9 | 18,286 | 1,351 | 510 | ||
10 | 17,821 | 933 | 9 | ||
11 | 17,098 | 2,250 | 29 | ||
12 | 15,406 | 392 | 73 | ||
13 | 15,027 | 594 | 12 | ||
14 | 14,760 | 1,634 | 79 | ||
15 | 10,163 | 521 | 19 |
How it works
Source. The daily
cfahlgren1/hub-statsdump of the Hub's/api/models(Apache-2.0), which carries thebase_modelmetadata model authors declare in their cards, plus the legacybase_model:tags as a fallback.Graph. Child → parent edges with the declared relation (
finetune,adapter,quantized,merge). Merges give a DAG, mis-tagged cards give the occasional cycle (78 nodes today); both are handled.Counts. Descendant sets are built children-first and unioned, so every model is counted once per ancestor.
directis declared children;totalis the whole subtree.Families. Roots (models that declare no parent) are grouped by a series heuristic over the model name, with overrides in
data/families.yaml.Galaxy layout. Each root's subtree is a radial tree (depth rings sized by population, wedges by subtree size); roots are circle-packed inside their family and families into the galaxy, with a port of d3's front-chain packing. Positions ship as a 10 MB binary, ids load lazily in chunks.
Refresh. A GitHub Action rebuilds everything nightly, commits
dist/andREADME.md, and attaches the full node and edge tables plus the galaxy data to thedata-latestrelease, which the site reads.
Caveats
Declared ancestry only. 29% of models declare a base. Untagged re-uploads and GGUF conversions without metadata are invisible, so every number is a floor.
Activity, not quality. A base with 30,000 adapters was mostly a tutorial default. Read the finetune-only and 90-day tables alongside the all-time one.
Ghost parents. 4,724 referenced bases are no longer public. They stay in the tree, marked †.
Families are heuristic. Series detection is a regex over names. Fix a wrong grouping by editing
data/families.yaml.
Data files
File | What |
Top 500 models (all time, 90 days, finetune-only), families, organizations | |
Every model with descendants, compact columns | |
Monthly new descendants for the top families and models | |
Top 25 children by downloads for the 3,000 most-descended parents | |
Plain-text summary for LLMs | |
|
|
Build it yourself
uv sync
uv run python scripts/build.py all # downloads the dump (~1.6 GB), builds in about 15 seconds
uv run python scripts/build.py build # rebuild from the cached dump
uv run pytestRelated
Arabic AI Atlas: the same idea for one language's ecosystem, with a map.
Hugging Face shows the tree for one model on its page; this repo aggregates the whole Hub.
License
Code MIT. Generated data CC BY 4.0, derived from Hub metadata via cfahlgren1/hub-stats (Apache-2.0).
Generated 2026-11-28.
Available Tools
6 toolschildrenB
Direct descendants of a model, most downloaded first (or sort="likes").
`relation` filters to finetune, adapter, quantized or merge. Live from the Hub API;
falls back to the nightly top-25 list when offline. Example: children(id="Qwen/Qwen3-8B", relation="finetune")
Inputs: id (required), sort, limit, relation.
familyC
One model family (e.g. "Qwen2.5", "Llama 3.1", "FLUX.1"): totals, relation breakdown, roots, organizations and the top models in it by descendants.
Inputs: name (required).
leaderboardB
Most-descended base models on the Hub.
kind: all_time (unique descendants of every kind), 90d (new descendants in the last 90
days), finetune (finetune descendants only; filters out LoRA and quantization noise),
families (roots grouped by series across orgs), orgs (by organization owning the roots).
Inputs: kind, limit, offset. Returns: result
lineageA
Ancestry of one Hugging Face model: the chain of declared base models up to the root, plus how many descendants the model itself has.
Walks `base_model` metadata live from the Hub (first parent at each step; merges list all
parents in `parents`). Each hop carries the relation (finetune, adapter, quantized, merge)
and the parent's descendant counts from the nightly build.
Example: lineage(id="unsloth/Qwen2.5-7B-Instruct")
Inputs: id (required), max_depth.
searchA
Find models with descendants whose id contains the query (case-insensitive), most descended first. Covers the 88k models that have at least one declared child.
Inputs: query (required), limit. Returns: result
statsB
Headline numbers for the current build: models tracked, links, parents, roots, families, dates.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The core directional tools are clearly distinct: lineage walks ancestry upward while children lists descendants downward, and search/stats are unambiguous. family vs leaderboard have some conceptual overlap (family gives a single family's totals/roots/orgs while leaderboard ranks families), but the descriptions differentiate them adequately.
All six tools use a single, lowercase noun (family, lineage, children, leaderboard, search, stats), with no camelCase/snake_case mixing or verb-noun deviations. The convention is uniform and predictable across the whole set.
Six tools is well within the sweet spot for this domain, and each covers a distinct query type (single-family, ancestry, descendants, rankings, search, aggregate stats). Nothing feels redundant or missing in terms of count.
The surface covers the full genealogy lifecycle: upward ancestry, downward descendants, per-family breakdowns, rankings, search, and build stats. Minor gaps exist (e.g. no direct relation-type aggregation or merge-graph view beyond lineage), but core workflows are well served.
Maintenance
Related MCP Connectors
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Web knowledge fetching tools for your agent.
Search curated open-weight AI model releases, licenses, architectures, and primary sources.
GitHub, npm, PyPI, Stack Overflow, arXiv and OpenAlex paper search as agent tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables access to the Hugging Face Hub API to search and retrieve information about machine learning models, datasets, and their metadata. Provides comprehensive tools for exploring the Hugging Face ecosystem including model details, dataset information, and parquet file access.8MIT
- FlicenseNot gradedqualityCmaintenanceProvides AI agents with 6 tools for searching Hugging Face models, GitHub trending repos, analyzing GitHub repositories, fetching dev.to articles, Show HN launches, and Product Hunt daily launches. Built for dev tooling research and AI ecosystem analysis.-
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with a toolset to query model inventories, trace dependencies, and analyze the impact of changes across machine learning models and data pipelines.569 PyPI17Apache 2.0
- AlicenseBqualityCmaintenanceEnables LLMs to search and retrieve read-only information from the Hugging Face Hub about models, datasets, Spaces, papers, and collections. It also supports model comparison and paper summarization prompts.10MIT