Skip to main content
Glama
model-family-tree

model-family-tree

by h9-tec

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.

Models Links Updated Stars License: MIT

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-tree

Requires 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

Galaxy

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.

Explorer

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.

Leaderboard

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

black-forest-labs/FLUX.1-dev

43,693

43,415

214

695 / 42,844 / 138 / 16

FLUX.1

2

Qwen/Qwen1.5-0.5B

32,562

32,534

0

40 / 32,475 / 45 / 2

Qwen1.5

3

Qwen/Qwen1.5-1.8B

30,658

30,628

2

36 / 30,591 / 29 / 2

Qwen1.5

4

google/gemma-2b

24,120

24,040

8

313 / 23,706 / 90 / 11

Gemma 1

5

Qwen/Qwen2.5-7B

23,347

2,003

2,529

12,294 / 7,034 / 3,488 / 531

Qwen2.5

6

meta-llama/Llama-3.1-8B

21,839

3,227

1,625

9,614 / 6,253 / 5,141 / 831

Llama 3.1

7

meta-llama/Llama-3.1-8B-Instruct

15,416

7,513

1,272

6,951 / 4,174 / 3,593 / 698

Llama 3.1

8

Qwen/Qwen2.5-7B-Instruct

15,015

6,983

1,898

8,836 / 4,148 / 1,690 / 341

Qwen2.5

9

distilbert/distilbert-base-uncased

13,850

13,468

745

13,280 / 406 / 163 / 1

DistilBERT

10

Qwen/Qwen2.5-1.5B

11,730

1,101

1,987

5,321 / 4,389 / 1,857 / 163

Qwen2.5

11

mistralai/Mistral-7B-v0.1

11,648

4,018

89

3,010 / 5,186 / 2,072 / 1,365

Mistral

12

stabilityai/stable-diffusion-xl-base-1.0

11,624

11,137

269

1,431 / 10,083 / 56 / 54

Stable Diffusion

13

Qwen/Qwen3-4B-Instruct-2507

11,536

9,150

1,581

3,706 / 6,575 / 1,164 / 91

Qwen3

14

Qwen/Qwen3-8B-Base

10,297

937

1,969

5,132 / 3,176 / 1,915 / 73

Qwen3

15

HuggingFaceTB/SmolLM2-360M

10,267

210

1,558

9,218 / 672 / 372 / 5

SmolLM2

16

meta-llama/Meta-Llama-3-8B

10,264

1,726

97

4,245 / 2,072 / 2,974 / 973

Llama 3

17

Qwen/Qwen2.5-0.5B

10,220

1,488

1,288

6,231 / 2,507 / 1,423 / 59

Qwen2.5

18

google/gemma-7b

9,862

9,589

9

460 / 9,296 / 98 / 8

Gemma 1

19

HuggingFaceTB/SmolLM2-360M-Instruct

9,788

441

1,516

9,048 / 437 / 298 / 5

SmolLM2

20

HuggingFaceTB/SmolVLM-500M-Instruct

9,001

93

1,334

8,761 / 172 / 68 / 0

SmolLM2

21

HuggingFaceTB/SmolVLM2-500M-Video-Instruct

8,899

143

1,318

8,727 / 141 / 31 / 0

SmolLM2

22

Qwen/Qwen2.5-3B

8,863

1,151

1,173

3,996 / 3,256 / 1,553 / 58

Qwen2.5

23

lerobot/smolvla_base

8,752

8,664

1,296

8,622 / 123 / 7 / 0

SmolLM2

24

Qwen/Qwen3-8B

8,482

5,504

1,479

3,890 / 2,935 / 1,587 / 69

Qwen3

25

Qwen/Qwen3.5-9B-Base

7,764

830

3,801

3,132 / 1,687 / 2,810 / 135

Qwen3.5

Hot right now: new descendants in the last 90 days

Full top 500 →

#

Model

Descendants

Direct

Last 90d

Finetune / adapter / quantized / merge

Family

1

Qwen/Qwen3.8-27B

7,139

3,485

5,246

1,685 / 624 / 4,750 / 80

Qwen3.8

2

Qwen/Qwen3.5-4B-Base

6,943

612

4,137

2,875 / 1,886 / 2,116 / 66

Qwen3.5

3

Qwen/Qwen3.5-9B-Base

7,764

830

3,801

3,132 / 1,687 / 2,810 / 135

Qwen3.5

4

Qwen/Qwen3.5-4B

6,077

3,690

3,558

2,377 / 1,691 / 1,948 / 61

Qwen3.5

5

Qwen/Qwen3.5-9B

6,535

3,544

3,361

2,288 / 1,564 / 2,551 / 132

Qwen3.5

6

Qwen/Qwen3.5-0.8B-Base

4,054

338

2,555

1,733 / 1,102 / 1,206 / 13

Qwen3.5

7

Qwen/Qwen2.5-7B

23,347

2,003

2,529

12,294 / 7,034 / 3,488 / 531

Qwen2.5

8

Qwen/Qwen3.5-0.8B

3,506

2,336

2,208

1,486 / 1,000 / 1,009 / 11

Qwen3.5

9

Qwen/Qwen2.5-1.5B

11,730

1,101

1,987

5,321 / 4,389 / 1,857 / 163

Qwen2.5

10

Qwen/Qwen3-8B-Base

10,297

937

1,969

5,132 / 3,176 / 1,915 / 73

Qwen3

11

Qwen/Qwen2.5-7B-Instruct

15,015

6,983

1,898

8,836 / 4,148 / 1,690 / 341

Qwen2.5

12

Qwen/Qwen3-0.6B-Base

7,306

1,026

1,797

4,159 / 1,167 / 1,923 / 57

Qwen3

13

meta-llama/Llama-3.1-8B

21,839

3,227

1,625

9,614 / 6,253 / 5,141 / 831

Llama 3.1

14

Qwen/Qwen3-4B-Instruct-2507

11,536

9,150

1,581

3,706 / 6,575 / 1,164 / 91

Qwen3

15

HuggingFaceTB/SmolLM2-360M

10,267

210

1,558

9,218 / 672 / 372 / 5

SmolLM2

16

HuggingFaceTB/SmolLM2-360M-Instruct

9,788

441

1,516

9,048 / 437 / 298 / 5

SmolLM2

17

Qwen/Qwen3.5-2B-Base

2,902

227

1,514

1,262 / 682 / 949 / 9

Qwen3.5

18

Qwen/Qwen3-1.7B-Base

5,656

696

1,489

2,971 / 1,341 / 1,325 / 19

Qwen3

19

Qwen/Qwen3-8B

8,482

5,504

1,479

3,890 / 2,935 / 1,587 / 69

Qwen3

20

Qwen/Qwen3.8-Flash-Next

1,547

910

1,357

253 / 15 / 1,228 / 51

Qwen3.8

21

Qwen/Qwen3-4B-Base

7,203

785

1,342

3,653 / 1,772 / 1,695 / 83

Qwen3

22

HuggingFaceTB/SmolVLM-500M-Instruct

9,001

93

1,334

8,761 / 172 / 68 / 0

SmolLM2

23

Qwen/Qwen3.5-2B

2,570

1,570

1,324

1,099 / 613 / 850 / 8

Qwen3.5

24

HuggingFaceTB/SmolVLM2-500M-Video-Instruct

8,899

143

1,318

8,727 / 141 / 31 / 0

SmolLM2

25

Qwen/Qwen2.5-1.5B-Instruct

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

distilbert/distilbert-base-uncased

13,850

13,468

745

13,280 / 406 / 163 / 1

DistilBERT

2

Qwen/Qwen2.5-7B

23,347

2,003

2,529

12,294 / 7,034 / 3,488 / 531

Qwen2.5

3

meta-llama/Llama-3.1-8B

21,839

3,227

1,625

9,614 / 6,253 / 5,141 / 831

Llama 3.1

4

HuggingFaceTB/SmolLM2-360M

10,267

210

1,558

9,218 / 672 / 372 / 5

SmolLM2

5

HuggingFaceTB/SmolLM2-360M-Instruct

9,788

441

1,516

9,048 / 437 / 298 / 5

SmolLM2

6

Qwen/Qwen2.5-7B-Instruct

15,015

6,983

1,898

8,836 / 4,148 / 1,690 / 341

Qwen2.5

7

HuggingFaceTB/SmolVLM-500M-Instruct

9,001

93

1,334

8,761 / 172 / 68 / 0

SmolLM2

8

HuggingFaceTB/SmolVLM2-500M-Video-Instruct

8,899

143

1,318

8,727 / 141 / 31 / 0

SmolLM2

9

lerobot/smolvla_base

8,752

8,664

1,296

8,622 / 123 / 7 / 0

SmolLM2

10

google-bert/bert-base-uncased

7,718

7,472

454

7,476 / 148 / 87 / 7

BERT

11

meta-llama/Llama-3.1-8B-Instruct

15,416

7,513

1,272

6,951 / 4,174 / 3,593 / 698

Llama 3.1

12

Qwen/Qwen2.5-0.5B

10,220

1,488

1,288

6,231 / 2,507 / 1,423 / 59

Qwen2.5

13

Qwen/Qwen2.5-1.5B

11,730

1,101

1,987

5,321 / 4,389 / 1,857 / 163

Qwen2.5

14

Qwen/Qwen3-8B-Base

10,297

937

1,969

5,132 / 3,176 / 1,915 / 73

Qwen3

15

unsloth/Qwen2.5-7B-Instruct

5,725

5,674

682

4,914 / 772 / 37 / 2

Qwen2.5

16

FacebookAI/xlm-roberta-base

4,838

4,470

199

4,627 / 79 / 131 / 0

XLM-RoBERTa

17

google/gemma-3-4b-pt

6,919

406

551

4,585 / 1,084 / 1,234 / 16

Gemma 3

18

meta-llama/Meta-Llama-3-8B

10,264

1,726

97

4,245 / 2,072 / 2,974 / 973

Llama 3

19

Qwen/Qwen3-0.6B-Base

7,306

1,026

1,797

4,159 / 1,167 / 1,923 / 57

Qwen3

20

openai/whisper-small

4,865

4,505

344

4,144 / 365 / 356 / 0

Whisper

21

aubmindlab/bert-base-arabertv02

4,120

4,063

17

4,108 / 5 / 7 / 0

BERT

22

Qwen/Qwen2.5-3B

8,863

1,151

1,173

3,996 / 3,256 / 1,553 / 58

Qwen2.5

23

meta-llama/Llama-3.2-3B-Instruct

7,515

3,560

471

3,983 / 1,620 / 1,800 / 112

Llama 3.2

24

Qwen/Qwen3-8B

8,482

5,504

1,479

3,890 / 2,935 / 1,587 / 69

Qwen3

25

Qwen/Qwen3-4B-Instruct-2507

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

Qwen/Qwen2.5-7B

2

Qwen1.5

71,031

13

45

224 / 70,435 / 356 / 16

Qwen/Qwen1.5-0.5B

3

Qwen3

58,702

10,721

678

26,145 / 18,319 / 13,789 / 447

Qwen/Qwen3-4B-Instruct-2507

4

FLUX.1

44,158

244

16

790 / 43,148 / 203 / 17

black-forest-labs/FLUX.1-dev

5

Gemma 1

37,095

66

185

1,763 / 34,370 / 894 / 68

google/gemma-2b

6

Mistral

36,729

942

587

10,682 / 11,286 / 11,806 / 2,939

mistralai/Mistral-7B-v0.1

7

Llama 3.1

28,447

1,744

235

11,136 / 7,145 / 8,244 / 1,922

meta-llama/Llama-3.1-8B

8

Qwen3.5

25,708

12,826

160

10,176 / 5,834 / 9,409 / 288

Qwen/Qwen3.5-9B-Base

9

Llama 3

24,221

391

550

8,137 / 5,878 / 7,759 / 2,447

meta-llama/Meta-Llama-3-8B

10

BERT

23,687

931

308

22,872 / 466 / 341 / 8

google-bert/bert-base-uncased

11

Llama 3.2

21,289

1,157

506

9,877 / 5,717 / 5,137 / 558

meta-llama/Llama-3.2-3B-Instruct

12

Gemma 3

18,811

1,462

141

10,760 / 3,345 / 4,487 / 219

google/gemma-3-4b-pt

13

Stable Diffusion

18,191

606

31

3,443 / 14,559 / 115 / 74

stabilityai/stable-diffusion-xl-base-1.0

14

Whisper

16,186

1,789

208

11,883 / 2,387 / 1,908 / 8

openai/whisper-small

15

DistilBERT

15,455

813

81

14,648 / 506 / 300 / 1

distilbert/distilbert-base-uncased

16

SmolLM2

14,374

2,022

63

11,437 / 1,729 / 1,190 / 18

HuggingFaceTB/SmolLM2-360M

17

Gemma 4

13,388

4,800

142

4,128 / 2,416 / 6,641 / 203

google/gemma-4-E4B

18

Gemma 2

12,403

379

230

5,097 / 3,266 / 3,106 / 934

google/gemma-2-9b

19

Llama 2

11,685

263

412

2,997 / 7,094 / 1,381 / 213

meta-llama/Llama-2-7b-hf

20

Qwen2

10,835

166

167

3,201 / 6,052 / 1,496 / 86

Qwen/Qwen2-0.5B

21

DeepSeek-R1

9,041

570

130

2,918 / 1,540 / 3,736 / 847

deepseek-ai/DeepSeek-R1-Distill-Qwen-1.5B

22

Qwen3.8

8,916

6,756

73

1,972 / 646 / 6,169 / 129

Qwen/Qwen3.8-27B

23

Qwen3.6

6,557

1,650

55

1,322 / 1,204 / 3,928 / 96

Qwen/Qwen3.6-35B-A3B

24

XLM-RoBERTa

6,515

365

49

6,174 / 138 / 202 / 0

FacebookAI/xlm-roberta-base

25

ViT

6,165

189

74

5,264 / 754 / 147 / 0

google/vit-base-patch16-224-in21k

Organizations

Descendants of every root owned by the organization, deduplicated. Full table →

How it works

  1. Source. The daily cfahlgren1/hub-stats dump of the Hub's /api/models (Apache-2.0), which carries the base_model metadata model authors declare in their cards, plus the legacy base_model: tags as a fallback.

  2. 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.

  3. Counts. Descendant sets are built children-first and unioned, so every model is counted once per ancestor. direct is declared children; total is the whole subtree.

  4. Families. Roots (models that declare no parent) are grouped by a series heuristic over the model name, with overrides in data/families.yaml.

  5. 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.

  6. Refresh. A GitHub Action rebuilds everything nightly, commits dist/ and README.md, and attaches the full node and edge tables plus the galaxy data to the data-latest release, 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

dist/leaderboard.json

Top 500 models (all time, 90 days, finetune-only), families, organizations

dist/parents.json

Every model with descendants, compact columns

dist/timeseries.json

Monthly new descendants for the top families and models

dist/children_top.json

Top 25 children by downloads for the 3,000 most-descended parents

dist/llms.txt

Plain-text summary for LLMs

data-latest release

nodes.parquet and edges.parquet, the full graph

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 pytest
  • 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 tools
childrenB

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.

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

    A3.5/5.0

    Scored across 6 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      8
      MIT
    • F
      license
      Not graded
      quality
      C
      maintenance
      Provides 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.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides 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 PyPI
      17
      Apache 2.0