You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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)
The text was updated successfully, but these errors were encountered: