Open bharathc346 opened 2 weeks ago
I'm having a similar experience trying the named entity extraction example from the cookbook using llama_cpp with a local model (zephyr-7b) on an M1 Mac.
Here is the interesting part of the error:
ValidationError: 1 validation error for Order __root__ Expecting value: line 1 column 1 (char 0) [type=value_error.jsondecode, input_value='AbstractAbstractAbstract...bstractAbstractAbstract', input_type=str]
Looks like outlines is making the model output lots of 'Abstract'.
Outlines version 0.1.3. Python version 3.11.7 llama_cpp_python version 0.3.1
Describe the issue as clearly as possible:
examples/llamcpp_example.py
is brokenIt seems like the model is producing some garbage output (which shouldnt be allowed by the logit processor). Posted my debug below.
Steps/code to reproduce the bug:
Expected result:
Error message:
Outlines/Python version information:
Outlines version
0.1.1
Python version
Python 3.12.5 (main, Aug 6 2024, 19:08:49) [Clang 15.0.0 (clang-1500.1.0.2.5)]
Context for the issue:
I put a breakpoint here
and it seems the value of
completions
isSo not sure whats going on, I guess llama cpp is not using the logit processor correctly?