Skip to content

Commit

Permalink
Merge pull request #746 from riedgar-ms/riedgar-ms/llama-cpp-ub-remove
Browse files Browse the repository at this point in the history
[Test] llama-cpp-python update
  • Loading branch information
paulbkoch authored Apr 23, 2024
2 parents 0d06746 + 5d090a7 commit d592b69
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install model-specific dependencies
run: |
pip install "llama-cpp-python<0.2.58"
pip install "llama-cpp-python!=0.2.58"
- name: Run tests (except server)
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests_gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: GPU pip installs
run: |
pip install accelerate
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install "llama-cpp-python<0.2.58"
CMAKE_ARGS="-DLLAMA_CUBLAS=on" pip install "llama-cpp-python!=0.2.58"
- name: Check GPU available
run: |
python -c "import torch; assert torch.cuda.is_available()"
Expand Down
2 changes: 1 addition & 1 deletion guidance/models/llama_cpp/_llama_cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __init__(self, model, compute_log_probs, **kwargs):
)

with normalize_notebook_stdout_stderr():
self.model_obj = llama_cpp.Llama(model_path=model, **kwargs)
self.model_obj = llama_cpp.Llama(model_path=model, logits_all=True, **kwargs)
elif isinstance(model, llama_cpp.Llama):
self.model = model.__class__.__name__
self.model_obj = model
Expand Down

0 comments on commit d592b69

Please sign in to comment.