Explain LLM predictions, using logprobs to highlight token probability#53
Merged
Explain LLM predictions, using logprobs to highlight token probability#53
Conversation
Contributor
Author
|
Would be cool to support that with open source models, likely in a future PR, I had a look:
|
Contributor
There was a problem hiding this comment.
Copilot reviewed 10 out of 18 changed files in this pull request and generated 2 comments.
Files not reviewed (8)
- README.rst: Language not supported
- docs/source/libraries/index.rst: Language not supported
- docs/source/libraries/openai.rst: Language not supported
- docs/source/overview.rst: Language not supported
- docs/source/tutorials/explain_llm_logprobs.rst: Language not supported
- docs/update-notebooks.sh: Language not supported
- eli5/templates/weighted_spans.html: Language not supported
- tox.ini: Language not supported
|
You can use optillm for that - https://github.com/codelion/optillm see algorithmicsuperintelligence/optillm#168 (reply in thread) you can also visualize the ouputs using the logprobs visualizer - https://huggingface.co/spaces/codelion/LogProbsVisualizer |
Contributor
Author
|
Thanks you @codelion , do you mind if I add those links to the end of the tutorial here https://eli5.readthedocs.io/en/stable/tutorials/explain_llm_logprobs.html#open-source-and-other-models ? |
|
@lopuhin please go ahead, thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This can allow to see when model is less certain:
TODO: