Open vinodhanvino opened 2 months ago
I have the same issue on a linux system with a jupyterLab Notebook. Python 3.11.9 llama_cpp_python 0.2.87
Even the simple example:
model = Llama(model_path="/model/name.gguf")
does not not work with "Value Error: Model path does not exist"
Llama.__init__
just checks the existence of models by os.path.exists
method.
How does
os.path.exists("path/to/model.gguf")
turn out to be?
Out of reasons, i do not know, my system think the script in in the model folder.
import pathlib pathlib.Path().resolve()
Show your path. Maybe that will help vinodhanvino as well.
After i deletet the model part of the path string it is workling.
I was facing similar issue but later realized that the GGUF model was corrupt and had to be re-installed. Now it works. (Install the GGUF model using hugging face cli / through the browser only)
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
Please provide a detailed written description of what you were trying to do, and what you expected
llama-cpp-python
to do.Current Behavior
Please provide a detailed written description of what
llama-cpp-python
did, instead.Environment and Context
Please provide detailed information about your computer setup. This is important in case the issue is not reproducible except for under certain specific conditions.
$ lscpu
$ uname -a
Failure Information (for bugs)
Please help provide information about the failure if this is a bug. If it is not a bug, please remove the rest of this template.
Steps to Reproduce
Please provide detailed steps for reproducing the issue. We are not sitting in front of your screen, so the more detail the better.
Note: Many issues seem to be regarding functional or performance issues / differences with
llama.cpp
. In these cases we need to confirm that you're comparing against the version ofllama.cpp
that was built with your python package, and which parameters you're passing to the context.Try the following:
git clone https://github.com/abetlen/llama-cpp-python
cd llama-cpp-python
rm -rf _skbuild/
# delete any old buildspython -m pip install .
cd ./vendor/llama.cpp
cmake
llama.cpp./main
with the same arguments you previously passed to llama-cpp-python and see if you can reproduce the issue. If you can, log an issue with llama.cppFailure Logs
Please include any relevant log snippets or files. If it works under one configuration but not under another, please provide logs for both configurations and their corresponding outputs so it is easy to see where behavior changes.
Also, please try to avoid using screenshots if at all possible. Instead, copy/paste the console output and use Github's markdown to cleanly format your logs for easy readability.
Example environment info: