Skip to content

sampling : make sure samplers return at least 1 token #13822

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

Merged
merged 3 commits into from
May 27, 2025
Merged

Conversation

ggerganov
Copy link
Member

fix #13405

Fixes min-p and typical samplers + adjust unit tests.

@bjodah
Copy link

bjodah commented May 27, 2025

I can confirm that the assert is no longer triggered for gh-13405 when using this branch.

@ggerganov ggerganov merged commit f9cd683 into master May 27, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc. bug: llama-sampling.cpp:204: GGML_ASSERT(cur_p->size > 0) failed
2 participants