Skip to content

Confusing message when not having enough space on device #3561

@KennethEnevoldsen

Description

@KennethEnevoldsen

I didn't have enough space on the device to download the model, but the error I got was:

from sentence_transformers import SentenceTransformer
model = SentenceTransformer("emillykkejensen/EmbeddingGemma-Scandi-300m")
# OSError: Can't load the model for 'emillykkejensen/EmbeddingGemma-Scandi-300m'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'emillykkejensen/EmbeddingGemma-Scandi-300m' is the correct path to a directory containing a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack.

Which makes it seem like there is a model implementation error rather than a local one.

Removing large files resolves the issue.

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