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

This commit is contained in:
fzyzcjy
2025-06-20 00:39:34 +08:00
committed by GitHub
parent 3774f07825
commit 650127a173

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",