File size: 4,070 Bytes
cd35c66
 
 
 
b2ffb5d
 
cd35c66
8c4e0b3
 
 
 
 
cf28745
 
8c4e0b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
language:
- en
pretty_name: community base_model sprint data
tags:
- metadata
---
# Base Model Metadata Sprint

## Description
Join us in improving the discoverability and understanding of models on the Hugging Face Hub by adding base_model metadata! This sprint aims to enhance the information available for models derived from, fine-tuned on, or quantized versions of existing base models.

<em>🤗 Strong contributions will win prizes!! 🤗 <em>



## Why It Matters
Adding base_model metadata helps users:
1. Easily find models derived from specific architectures
2. Understand the lineage and potential capabilities of a model
3. Make informed decisions when choosing models for their projects
4. Enables a useful Model Tree on the model repo!

![image/png](/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F60107b385ac3e86b3ea4fc34%2FbD73XI9eVifAKbrG_oVE3.png%3C%2Fspan%3E)

## How to Contribute

1. **Access the Sprint CSV**
   - Visit the Sprint CSV file on the Hugging Face Hub [here](https://huggingface.co/datasets/librarian-bots/base_model_sprint/blob/main/no_base_model_specified_has_readme_and_chat_template.csv)
   - This CSV contains models that need to be checked for base_model metadata


![image/png](/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F60107b385ac3e86b3ea4fc34%2F-BuuHg5f1xfwTd7GyuCxT.png%3C%2Fspan%3E)%3C%2Fspan%3E

2. **Choose a Model**
   - Select a model from the CSV that hasn't been processed yet (PR_CREATED is false)
   - Prioritize models with higher 'likes' counts for maximum impact

3. **Check Existing PRs**
   - Before proceeding, check the model's discussion page to ensure no PR for base_model metadata has been created recently

4. **Investigate the Base Model**
   - Review the model card and repository for information about the original architecture
   - Look for mentions of base models in the model description or training details
   - If unclear, you may need to do some research on the model's origin

5. **Add the Base Model Metadata** (if applicable)
   - Open the model's README.md file on the Hub
   - Add or update the following in the YAML metadata section:
     ```yaml
     base_model: HuggingFaceH4/zephyr-7b-beta
     ```
   - For models derived from multiple base models, use a list:
     ```yaml
     base_model:
     - Endevor/InfinityRP-v1-7B
     - l3utterfly/mistral-7b-v0.1-layla-v4
     ```
   - Optionally, specify the relationship type:
     ```yaml
     base_model_relation: quantized
     ```
     (Valid options: "adapter", "merge", "quantized", "fine-tune")

![image/png](/static-proxy?url=https%3A%2F%2Fcdn-uploads.huggingface.co%2Fproduction%2Fuploads%2F60107b385ac3e86b3ea4fc34%2Fa8Zw4908xbyHk-wyK8Kk_.png%3C%2Fspan%3E)


6. **Open a Pull Request** (if needed)
   - If you've added or updated metadata, submit your changes as a pull request on the model's repository
   - In the PR description, explain your reasoning for adding the base_model metadata

7. **Update the Sprint CSV**
   - Update the row for the model you processed:
     - If you created a PR: Set PR_CREATED to "true" and add the PR link to the PR_LINK column
     - If no PR was needed: Set PR_CREATED to "Not Required"
   - Create a pull request to update the Sprint CSV with your changes

## Guidelines

- Focus on accuracy. It's better to mark "Not Required" than to add incorrect metadata.
- If you're unsure about a base model, you can open a discussion on the model's page to ask the author or community.
- For models with multiple potential base models, prioritize the most direct ancestor.
- Remember that some models may not have a clear base model or may not require this metadata. It's okay to mark these as "Not Required".

## Resources
- [Guide to Model Cards on Hugging Face](https://huggingface.co/docs/hub/model-cards)
- [Base Model Metadata Documentation](https://huggingface.co/docs/hub/models-cards#specifying-a-base-model)
- Sprint CSV: https://huggingface.co/datasets/librarian-bots/base_model_sprint/blob/main/no_base_model_specified_has_readme_and_chat_template.csv

Let's work together to make the Hugging Face Hub an even more valuable resource for the AI community!