Reintroduce tiny fix sampler error when prob is not contiguous (#7354)

This commit is contained in:
fzyzcjy authored and GitHub committed 2025-06-19 09:39:34 -07:00
1 parent 3774f07825
commit 650127a173
1 file changed
+1 -1
+1 -1
View File
@@ -91,7 +91,7 @@ class Sampler(nn.Module):
)
else:
batch_next_token_ids = top_k_top_p_sampling_from_probs(
probs,
probs.contiguous(),
sampling_info.top_ks,
sampling_info.top_ps,
filter_apply_order="joint",