Skip to content

_name_or_path no longer stored by transformers #591

@mvr

Description

@mvr

Hi,

I can't use from_pretrained to load a model that I've saved locally using save_pretrained, I think because this change:

huggingface/transformers@1c4b62b#diff-cdf9f9a04db31e893d5004d79f1a1005bbcd0d43716a7635b92b2b7ddfc2965fR873

has broken SetFit here:

st_id = config_dict.get("_name_or_path")

Downgrading transformers to 4.49 works for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions