Skip to content

Auth token not used when loading pretrained model. #278

@ken-myers

Description

@ken-myers

The below error is given when loading an uncached private model with SetFitModel.from_pretrained() using the function's token parameter.

RepositoryNotFoundError: 401 Client Error: Repository not found for url:

It appears that the token was not being passed to the SentenceTransformer in SetFitModel's _from_pretrained method in modeling.py. I've created a PR that should fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions