Skip to content

examples out of date ?  #572

Open
Open
@RonaldVanAalst

Description

@RonaldVanAalst

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions