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

examples out of date ? #572

Open
RonaldVanAalst opened this issue Nov 22, 2024 · 0 comments
Open

examples out of date ? #572

RonaldVanAalst opened this issue Nov 22, 2024 · 0 comments

Comments

@RonaldVanAalst
Copy link

Hi,

It seems the example code is out of date

I follow notebooks/text-classification.ipynb, as well as the blog on huggingface.
these use SetFitTrainer, which is deprecated, when I try to use Trainer, the parameters are no longer valid.
Unfortunelely I'm unable to infer how an up to date incantation should look like (should add training arguments data structure ?)

specifically loss_class=CosineSimilarityLoss, is not recognized.

(edit : it seems the example https://huggingface.co/docs/setfit/how_to/zero_shot contains clues as to how to call the trainer with trainerarguments data structure)

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

1 participant