Skip to content
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

llama-cpp-python: Support for logprobs. #1039

Merged
merged 3 commits into from
Dec 26, 2024

Conversation

domdomegg
Copy link
Contributor

@domdomegg domdomegg commented Dec 22, 2024

This PR contains:

  • New features
  • Changes to dev-tools e.g. CI config / github tooling
  • Docs
  • Bug fixes
  • Code refactor

What is the current behavior? (You can also link to an open issue here)

Documentation indicates llama-cpp-python does not support logprobs. We did this because at the time it returned logpobs in the wrong format which broke things.

See previous discussion with jjallaire in #666 (review).

What is the new behavior?

Update the documentation to state that llama-cpp-python supports logprobs.

This is correct, now that abetlen/llama-cpp-python#1788 has been merged and released in llama-cpp-python 0.3.5.

NB: No 'real' code changes are needed, as I already set it up for logprobs previously. Now that llama-cpp-python returns them correctly when set, it's just a docs changed needed effectively.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No

@jjallaire jjallaire merged commit f6fe0fa into UKGovernmentBEIS:main Dec 26, 2024
9 checks passed
@domdomegg
Copy link
Contributor Author

Thank you for revieiwng and merging 🙌

And Merry Christmas :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants