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

MinP Sampler #277

Merged
merged 1 commit into from
Nov 13, 2023
Merged

MinP Sampler #277

merged 1 commit into from
Nov 13, 2023

Conversation

martindevans
Copy link
Member

Added support for the new MinP sampler in llama.cpp. This sampler keeps all tokens which are above a certain probability. Resolves #272.

  • Added support for the MinP sampler.
  • Cleaned up comments in implementations of IInferenceParams.
  • Removed default values for all parameters in LLamaContext.Sample - they're never used and probably shouldn't ever be used.

 - Cleaned up comments in implementations of `IInferenceParams`
 - Removed default values for all parameters in `LLamaContext.Sample` - they're never used and probably _shouldn't_ ever be used
@martindevans martindevans merged commit e3468d0 into SciSharp:master Nov 13, 2023
4 checks passed
@martindevans martindevans deleted the feature/min_p branch November 13, 2023 02:15
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.

MinP Sampling
1 participant