-
Notifications
You must be signed in to change notification settings - Fork 31.3k
Deprecate models #24787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate models #24787
Conversation
|
The documentation is not available anymore as the PR was closed or merged. |
amyeroberts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this deprecation logic!
ydshieh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of the CI cost!
LysandreJik
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think the combination of:
- Keeping the models in the main init
- Marking them as deprecated
- Not having them tested
is good.
Co-authored-by: Lysandre Debut <lysandre.debut@reseau.eseo.fr>
|
FMI: (M=my) I probably need to do something with daily CI to take this PR's change into account! |
What does this PR do?
This PR creates the precedent of deprecating models in the library. By deprecating we indicate that we will stop maintaining such models, but there is no intention of actually removing those models and breaking support for them (they might one day move into a separate repo/on the Hub but we would still add the necessary imports to make sure backward compatibility stays). The main point is that we stop testing those models (to ease a bit the burden on our CI).
Deprecated models are moved in models/deprecated so direct import of objects from their modeling files will break (though that's easily fixed by adding the
.deprecatedin the path). They are removed from thetestsfolder and a mention is added in the doc page of the model.The heuristic to pick the deprecated models in this PR is: models older than a year that got less than a cumulated 1,000 downloads (over all checkpoints) in the last 30 days (counting deduplicated downloads).