-
Notifications
You must be signed in to change notification settings - Fork 591
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 ModelFilter/DatasetFilter
#2028
Deprecate ModelFilter/DatasetFilter
#2028
Conversation
…method Moved all attributes from ModelFilter class to list_models arguments and added a filter query builder to build a query. Updated list_models to take both filter as an Iterable and also update the filter list based on other arguments in the method
Hi @druvdub! Thanks for the PR ❤️ I've tried to answer all of your questions in #1676 (comment). Please let me know if some parts are still unclear :) Regarding this PR, would it be possible to fix the styling? The PR change diff is very big at the moment due to some whitespaces/newlines added or removed. This makes the PR quite difficult to review. You can fix this with the following steps:
I believe the current changes were due to a "autoformat" or "format on save" feature in your IDE. Make sure to always run |
ModelFilter/DatasetFilter
Yup no worries, for some reason the makefile did not work, So I had to now manually run the ruff checks |
@Wauplin I think this should be all in terms of functionality changes. Should I update READMEs and completely remove And finally in terms of test changes should I just update the existing tests to take arguments instead of |
Thanks for all the modifications and taking care of the special cases @druvdub! I'll have a look at it on tomorrow if that's fine with you :) |
Yea sounds good to me :) |
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 the PR @druvdub! Logic-wise it looks good to me! 🔥 I left a couple of comments regarding the code + API but overall very nice one :) Once addressed, we will have to review some tests, especially if ModelFilter / DatasetFilter are used (since deprecation warning make the CI fail, on purpose). I can help on this part if needed (we have a expect_deprecation
decorator for tests that are meant to break).
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Hey @Wauplin I have addressed all the comments so far, and hopefully I can look at the tests now. In the meantime, is this expected? And similarly do we need to update the README.md files as well UPDATE: |
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
…lFilter`) This PR remove deprecated import of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
Hello 👋 This PR updates some attributes and methods that are now deprecated in the `huggingface_hub` library. - `modelId` is getting deprecated huggingface/huggingface_hub#2408 - `ModelFilter` has been deprecated for some time (see huggingface/huggingface_hub#2028) This PR will make the codebase more future-proof while being compatible with existing versions of `huggingface_hub`. Let me know if you have any questions 🤗
* Update hf_formatter.py (remove deprecated use of `ModelFilter`) This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details. * fix: hf_formatter.py continue if exception --------- Co-authored-by: Prasad Chalasani <[email protected]>
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
This PR remove deprecated use of `ModelFilter`. Arguments can now be passed to `list_models` directly. See huggingface/huggingface_hub#2028 for more details.
Related to #1676
Moved all attributes from ModelFilter class to list_models arguments and added a filter query builder to build a query. Updated list_models to take both filter as an Iterable and also update the filter list based on other arguments in the method