Skip to content

Loading the model from a single *.safetensors file in the root of a repo #2454

@zetyquickly

Description

@zetyquickly

Hello, I'm scrutinizing the docs and PRs and cannot find an answer.

Is there a way to do from_pretrained on the folder which contains a single *.safetensors file with a json config?

Or it has to be a set of folders containing each part in safetensors format?

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