Running basic example from docs results in TypeError: 'NoneType' object is not callable
#1998
Open
4 tasks done
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
I am trying to run the most basic examples from the docs.
I am trying to load a model that I've downloaded:
And I am also trying to load a model directly from Hugging Face hub:
I expect these basic examples to run without error and produce some reasonable looking output.
Current Behavior
In both cases -- whether using a pre-downloaded model or pulling from Hugging Face Hub -- I am getting the following exception:
This appears to be the line raising this exception:
llama-cpp-python/llama_cpp/_internals.py
Line 69 in 99f2ebf
In the case of using the pre-downloaded model, I see the printed model output first before I get the exception. In the case of pulling from Hugging Face Hub, I get the exception immediately.
Environment and Context
main
as of 2025-04-11)Steps to Reproduce
test-llama.py
.python test-llama.py
This seems to be an issue specific to the Python bindings, so I did not trying building
llama.cpp
.This issue is possibly related to #1442.
The text was updated successfully, but these errors were encountered: