Skip to content

The issue of converting all model names to lowercase #634

Closed

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.

Activity

  1. danielhanchen commented on Jun 13, 2024

    @danielhanchen
    Member

    Oh whoops - I moved it only for online model names - sorry! Will push a commit later today

  2. danielhanchen commented on Jun 13, 2024

    @danielhanchen
    Member

    @DataLama Fixed!
    Please update Unsloth on local machines via: (Colab, Kaggle no need)

    pip uninstall unsloth -y
    pip install --upgrade --force-reinstall --no-cache-dir git+https://github.com/unslothai/unsloth.git
  3. DataLama commented on Jun 14, 2024

    @DataLama
    Author

    Good~!! It's working well. Thank you for the quick fix.

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