Skip to content
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

Don't use deprecated DatasetFilter + update deps #527

Merged

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented May 22, 2024

DatasetFilter has been deprecated since version 0.21.0 and will be removed in next version of huggingface_hub (0.24.0). This PR updates the code to get rid of DatasetFilter and use plain args instead. I also took the liberty to update the minimal huggingface_hub version. For the record transformers/datasets/diffusers latest versions are already set to use 0.22.0+ so should be fine. I also removed tests for Python3.7 since latest versions don't support it (since June 2023).

Related deprecation PR: huggingface/huggingface_hub#2028.

cc @tomaarsen

@HuggingFaceDocBuilderDev

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.

@tomaarsen
Copy link
Member

I appreciate it. I'll look at this PR (and others on SetFit) after the v3.0 Sentence Transformers release (scheduled this month). Apologies for the delays.

  • Tom Aarsen

@Wauplin
Copy link
Contributor Author

Wauplin commented May 22, 2024

No worries, that's fine I think. Just wanted to make sure we don't forget.

Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@TimbusCalin
Copy link

No updates on this?

@tomaarsen tomaarsen merged commit 6167a03 into huggingface:main Sep 12, 2024
1 of 9 checks passed
@tomaarsen
Copy link
Member

Hello!

Apologies for the delay! I've merged these changes into main and resolved the remaining outstanding issues as well. I expect this'll all be included in a release quite soon (this week?). Thanks a bunch for making this PR!

  • Tom Aarsen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants