Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels