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

Version issue #553

Open
DhavalRepo18 opened this issue Sep 15, 2024 · 3 comments
Open

Version issue #553

DhavalRepo18 opened this issue Sep 15, 2024 · 3 comments

Comments

@DhavalRepo18
Copy link

DhavalRepo18 commented Sep 15, 2024

The DatasetFilter class was introduced in Hugging Face Hub version 0.12.0 and was deprecated in version 0.21.0. It was completely removed in version 0.24.0.

You can find more information about this change in the Hugging Face Hub release notes:

Version 0.21.0: https://github.com/huggingface/huggingface_hub/releases
Version 0.24.0: https://github.com/huggingface/huggingface_hub/releases

from setfit import SetFitModel, Trainer, TrainingArguments, sample_dataset
this has issue.

@tomaarsen
Copy link
Member

Hello!

The issue has been resolved in the main branch, expect a new version to release in the coming week with this fix applied. In the meantime, you can use:

pip install git+https://github.com/huggingface/setfit
  • Tom Aarsen

@imessien
Copy link

imessien commented Sep 16, 2024

There's a new version issue now:

RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback): cannot import name 'is_mlu_available' from 'accelerate.utils' (/cis/home/iessien1/.local/lib/python3.9/site-packages/accelerate/utils/__init__.py)

Even when using the pip installed using git. The github/colab examples also don't work.

@tomaarsen
Copy link
Member

Hello!

My guess is that your accelerate version is a bit too old:

pip install -U accelerate
  • 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

No branches or pull requests

3 participants