Skip to content

Commit

Permalink
Model Library detection has changed on August 2nd (#1365)
Browse files Browse the repository at this point in the history
* Model Library detection has changed on August 2nd

* Update docs/hub/model-cards.md

---------

Co-authored-by: Omar Sanseviero <[email protected]>
  • Loading branch information
julien-c and osanseviero authored Aug 9, 2024
1 parent 28a063e commit 05b6515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/hub/model-cards.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ tags:
- flair
```
If it's not specified, the Hub will try to automatically detect the library type. Unless your model is from `transformers`, this approach is discouraged and repo creators should use the explicit `library_name` as much as possible.
If it's not specified, the Hub will try to automatically detect the library type. However, this approach is discouraged, and repo creators should use the explicit `library_name` as much as possible.

1. By looking into the presence of files such as `*.nemo` or `*.mlmodel`, the Hub can determine if a model is from NeMo or CoreML.
2. If nothing is detected and there is a `config.json` file, it's assumed the library is `transformers`.
2. In the past, if nothing was detected and there was a `config.json` file, it was assumed the library was `transformers`. For model repos created after August 2024, this is not the case anymore – so you need to `library_name: transformers` explicitly.

### Specifying a base model

Expand Down

0 comments on commit 05b6515

Please sign in to comment.