Skip to content

Pointing to local folder in python does not really work #35

Description

@mpulukkinen

This makes absolutely no sense, when the model_name_or_path is actually validated against the static list later on
def from_pretrained(model_name_or_path, device=None, model_half=True):

if model_name_or_path not in all_models: <-- This cannot ever contain the local path
raise ValueError(
f"Unknown model '{model_name_or_path}'. Valid models: {list(all_models)}"
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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