Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load local model : id must be in the form 'repo_name' or 'namespace/repo_name' #107

Open
flotos opened this issue Jul 11, 2023 · 4 comments

Comments

@flotos
Copy link

flotos commented Jul 11, 2023

Description of the bug

When loading a local model using this command :

python3 -m manifest.api.app \
    --model_type huggingface \
    --model_name_or_path /workspace/models/minotaur-15b \
    --device 0 \
    --model_generation_type text-generation

I get the following error message :
huggingface_hub.utils._validators.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/fsx/bigcode/experiments/pretraining/conversions/starcoderplus/large-model'. Use repo_type argument if needed.

The path is indeed or valid one pulled from https://huggingface.co/openaccess-ai-collective/minotaur-15b.
I tried by quoting "/workspace/models/minotaur-15b" or using a local path "./models/minotaur-15b".

To Reproduce

Clone the above repositor, and execute the specified command.

Expected behavior

It should load the model.

Environment (please complete the following information)

  • Runpod machine, 4090 GPU
@flotos
Copy link
Author

flotos commented Jul 11, 2023

After digging through the code it seems repo path meant /organization/repoID, but never local path. I saw I can use the --cache option to save the models locally. But this imply that I can't use a locally trained model ?

@lorr1
Copy link
Contributor

lorr1 commented Jul 13, 2023

Hey. I haven't seen this error before. Did you finetune minotaur and are trying to load it from a saved checkpoint? My immediate guess is the checkpoint is in a weird format but not sure. I have been able to load lots of finetuned models before.

@RealTong
Copy link

Same problem.

The local model cannot be loaded. It was downloaded from https://huggingface.co/NumbersStation/nsql-llama-2-7B

@lorr1
Copy link
Contributor

lorr1 commented Jan 17, 2024

Did you just try passing NumbersStation/nsql-llama-2-7B as the model_name_or_path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants