Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Base Model Metadata Sprint
|
2 |
+
|
3 |
+
## Description
|
4 |
+
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.
|
5 |
+
|
6 |
+
|
7 |
+
|
8 |
+
## Why It Matters
|
9 |
+
Adding base_model metadata helps users:
|
10 |
+
1. Easily find models derived from specific architectures
|
11 |
+
2. Understand the lineage and potential capabilities of a model
|
12 |
+
3. Make informed decisions when choosing models for their projects
|
13 |
+
4. Enables a useful Model Tree on the model repo!
|
14 |
+
|
15 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/60107b385ac3e86b3ea4fc34/bD73XI9eVifAKbrG_oVE3.png)
|
16 |
+
|
17 |
+
## How to Contribute
|
18 |
+
|
19 |
+
1. **Access the Sprint CSV**
|
20 |
+
- 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)
|
21 |
+
- This CSV contains models that need to be checked for base_model metadata
|
22 |
+
|
23 |
+
|
24 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/60107b385ac3e86b3ea4fc34/-BuuHg5f1xfwTd7GyuCxT.png)
|
25 |
+
|
26 |
+
2. **Choose a Model**
|
27 |
+
- Select a model from the CSV that hasn't been processed yet (PR_CREATED is false)
|
28 |
+
- Prioritize models with higher 'likes' counts for maximum impact
|
29 |
+
|
30 |
+
3. **Check Existing PRs**
|
31 |
+
- Before proceeding, check the model's discussion page to ensure no PR for base_model metadata has been created recently
|
32 |
+
|
33 |
+
4. **Investigate the Base Model**
|
34 |
+
- Review the model card and repository for information about the original architecture
|
35 |
+
- Look for mentions of base models in the model description or training details
|
36 |
+
- If unclear, you may need to do some research on the model's origin
|
37 |
+
|
38 |
+
5. **Add the Base Model Metadata** (if applicable)
|
39 |
+
- Open the model's README.md file on the Hub
|
40 |
+
- Add or update the following in the YAML metadata section:
|
41 |
+
```yaml
|
42 |
+
base_model: HuggingFaceH4/zephyr-7b-beta
|
43 |
+
```
|
44 |
+
- For models derived from multiple base models, use a list:
|
45 |
+
```yaml
|
46 |
+
base_model:
|
47 |
+
- Endevor/InfinityRP-v1-7B
|
48 |
+
- l3utterfly/mistral-7b-v0.1-layla-v4
|
49 |
+
```
|
50 |
+
- Optionally, specify the relationship type:
|
51 |
+
```yaml
|
52 |
+
base_model_relation: quantized
|
53 |
+
```
|
54 |
+
(Valid options: "adapter", "merge", "quantized", "fine-tune")
|
55 |
+
|
56 |
+
![image/png](https://cdn-uploads.huggingface.co/production/uploads/60107b385ac3e86b3ea4fc34/a8Zw4908xbyHk-wyK8Kk_.png)
|
57 |
+
|
58 |
+
|
59 |
+
6. **Open a Pull Request** (if needed)
|
60 |
+
- If you've added or updated metadata, submit your changes as a pull request on the model's repository
|
61 |
+
- In the PR description, explain your reasoning for adding the base_model metadata
|
62 |
+
|
63 |
+
7. **Update the Sprint CSV**
|
64 |
+
- Update the row for the model you processed:
|
65 |
+
- If you created a PR: Set PR_CREATED to "true" and add the PR link to the PR_LINK column
|
66 |
+
- If no PR was needed: Set PR_CREATED to "Not Required"
|
67 |
+
- Create a pull request to update the Sprint CSV with your changes
|
68 |
+
|
69 |
+
## Guidelines
|
70 |
+
|
71 |
+
- Focus on accuracy. It's better to mark "Not Required" than to add incorrect metadata.
|
72 |
+
- If you're unsure about a base model, you can open a discussion on the model's page to ask the author or community.
|
73 |
+
- For models with multiple potential base models, prioritize the most direct ancestor.
|
74 |
+
- 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".
|
75 |
+
|
76 |
+
## Resources
|
77 |
+
- [Guide to Model Cards on Hugging Face](https://huggingface.co/docs/hub/model-cards)
|
78 |
+
- [Base Model Metadata Documentation](https://huggingface.co/docs/hub/models-cards#specifying-a-base-model)
|
79 |
+
- Sprint CSV: https://huggingface.co/datasets/librarian-bots/base_model_sprint/blob/main/no_base_model_specified_has_readme_and_chat_template.csv
|
80 |
+
|
81 |
+
Let's work together to make the Hugging Face Hub an even more valuable resource for the AI community!
|