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

Allow sampler modifications #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

pminev
Copy link
Contributor

@pminev pminev commented Jan 3, 2025

In the beginning I thought that we should be able to tweak each type of sampler, but that might not an easy task since there e since there are no methods for sampler modification.

I checked how they do it in llama.cpp server and it seems like they are resetting the sampler which is what we're doing right now.

closes #23

@pminev pminev requested a review from iboB January 3, 2025 12:46

Sampler& sampler() noexcept { return *m_sampler; }

// Change sampler settings by resetting it
Copy link
Member

Choose a reason for hiding this comment

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

add comment: "warning: this will clear any previous sampler state"

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.

Allow sampler config
2 participants