Skip to content

ValueError: Model path does not exist #226

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

Closed
valdesguefa opened this issue May 17, 2023 · 9 comments
Closed

ValueError: Model path does not exist #226

valdesguefa opened this issue May 17, 2023 · 9 comments
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right question Further information is requested windows A Windoze-specific issue

Comments

@valdesguefa
Copy link

Please i need help. I have this issue when i try to run vicuna-13b model.
root@DESKTOP-EEQG16M:/mnt/f/AI_and_data/LLAMA_models# python3 test_LLama_cpp.py
Traceback (most recent call last):
File "test_LLama_cpp.py", line 2, in
llm = Llama(
File "/usr/local/lib/python3.8/dist-packages/llama_cpp/llama.py", line 155, in init
raise ValueError(f"Model path does not exist: {model_path}")
ValueError: Model path does not exist: F:\AI_and_data\LLAMA_models\llama.cpp\models\ggml-vicuna-13b-4bit.bin
Exception ignored in: <function Llama.del at 0x7f1db5ea4b80>
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/llama_cpp/llama.py", line 1076, in del
if self.ctx is not None:
AttributeError: 'Llama' object has no attribute 'ctx'

@gjmulder
Copy link
Contributor

Model path does not exist: F:\AI_and_data\LLAMA_models\llama.cpp\models\ggml-vicuna-13b-4bit.bin

That looks like a Windows path but you seem to be on Linux?

@gjmulder gjmulder added invalid This doesn't seem right question Further information is requested labels May 17, 2023
@valdesguefa
Copy link
Author

i use WSL

@Celppu
Copy link

Celppu commented May 17, 2023

In wsl you need to use the path where windows file system is mounted. For example "/mnt/c/Users/..." to access the model in windows file system

@valdesguefa
Copy link
Author

I use relative path

@gjmulder
Copy link
Contributor

And?

@gjmulder gjmulder added the windows A Windoze-specific issue label May 18, 2023
@valdesguefa
Copy link
Author

valdesguefa commented May 18, 2023

I have the same issue

@gjmulder gjmulder added the duplicate This issue or pull request already exists label May 23, 2023
@gjmulder
Copy link
Contributor

Can you review #225, please?

@gjmulder gjmulder changed the title 'Llama' object has no attribute 'ctx' ValueError: Model path does not exist May 23, 2023
@gjmulder
Copy link
Contributor

gjmulder commented Jun 2, 2023

Closing. Reopen if the issue is not resolved.

@gjmulder gjmulder closed this as completed Jun 2, 2023
@asmaemou
Copy link

I have this issue can you help me solve it:
raise ValueError(f"Model path does not exist: {model_path}")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists invalid This doesn't seem right question Further information is requested windows A Windoze-specific issue
Projects
None yet
Development

No branches or pull requests

4 participants