Skip to content

Allow sampler modifications#28

Merged
pminev merged 3 commits intomasterfrom
pminev/sampler-config
Feb 13, 2025
Merged

Allow sampler modifications#28
pminev merged 3 commits intomasterfrom
pminev/sampler-config

Conversation

@pminev
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

fed

@pminev pminev force-pushed the pminev/sampler-config branch from 730524f to 4f351c7 Compare February 13, 2025 10:09
@pminev pminev merged commit eae383c into master Feb 13, 2025
pminev added a commit that referenced this pull request Feb 13, 2025
@pminev pminev deleted the pminev/sampler-config branch February 19, 2025 09:32
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