lineage
Trace a Hugging Face model's ancestry up to its root base model and see how many descendants it has, including relation type and parent counts at each hop.
Instructions
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")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| max_depth | No |