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

Batched Beam Search #796

Merged
merged 4 commits into from
Jun 26, 2024
Merged

Conversation

martindevans
Copy link
Member

An example of how to efficiently implement beam search using the batched executor. Nice to have this, since native support was removed in #783.

Copy link
Contributor

@patrick-hovsepian patrick-hovsepian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth adding anything to the readme?

LLama.Examples/Examples/BatchedExecutorBeamSearch.cs Outdated Show resolved Hide resolved
 - Added beam normalization, to prevent `CumulativeProbability=0.0` when beams get longer
@martindevans martindevans merged commit c1302ef into SciSharp:master Jun 26, 2024
6 checks passed
@martindevans martindevans deleted the batched-beams branch June 26, 2024 00:20
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