Skip to content

The issue of converting all model names to lowercase #634

@DataLama

Description

@DataLama

Hello. I have been using unsloth well, but today while developing, I encountered the following error in the model.

from unsloth import FastLanguageModel
model = FastLanguageModel.from_pretrained("/data/backbone/meta-llama+Meta-Llama-3-8B/")

>>> RuntimeError: Unsloth: /data/backbone/meta-llama+meta-llama-3-8b/ is not a full model or a PEFT model.

I found it strange, so I looked at the code and noticed that the following code was committed yesterday.

model_name = model_name.lower()

Is there a particular reason why the model_name must be converted to lowercase?

If there isn’t a specific reason, it would be good to modify the part where all model names are converted to lowercase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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