You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/hub/model-cards.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ See the detailed model card metadata specification [here](https://github.com/hug
54
54
55
55
### Specifying a library
56
56
57
-
You can also specify the supported libraries in the model card metadata section. Find more about our supported libraries [here](./models-libraries). The library can be specified with the following order of priority
57
+
You can also specify the supported libraries in the model card metadata section. Find more about our supported libraries [here](./models-libraries). The library can be specified in the following order of priority
58
58
59
59
1. Specifying `library_name` in the model card (recommended if your model is not a `transformers` model)
60
60
@@ -74,6 +74,23 @@ If it's not specified, the Hub will try to automatically detect the library type
74
74
1. By looking into the presence of files such as `*.nemo` or `*saved_model.pb*`, the Hub can determine if a model is from NeMo or Keras.
75
75
2. If nothing is detected and there is a `config.json` file, it's assumed the library is `transformers`.
76
76
77
+
### Specifying a base model
78
+
79
+
If your model is a fine-tune or adapter of a base model, you can specify the base model in the model card metadata section:
80
+
81
+
```yaml
82
+
base_model: HuggingFaceH4/zephyr-7b-beta
83
+
```
84
+
85
+
This metadata will be used to display the base model on the model page. Users can also use this information to filter models by base model or find models that are fine-tuned from a specific base model.
0 commit comments