Skip to content

Clamp top_k to vocab size in sample_logits and add edge-case tests

d65c225
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fix sample_logits crash when top_k exceeds vocab size #1347

Clamp top_k to vocab size in sample_logits and add edge-case tests
d65c225
Select commit
Loading
Failed to load commit list.

Annotations

1 warning
Compatibility Checks (3.11)
succeeded May 29, 2026 in 22m 57s