Unverified Commit 650127a1 authored by fzyzcjy's avatar fzyzcjy Committed by GitHub
Browse files

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

parent 3774f078
...@@ -91,7 +91,7 @@ class Sampler(nn.Module): ...@@ -91,7 +91,7 @@ class Sampler(nn.Module):
) )
else: else:
batch_next_token_ids = top_k_top_p_sampling_from_probs( batch_next_token_ids = top_k_top_p_sampling_from_probs(
probs, probs.contiguous(),
sampling_info.top_ks, sampling_info.top_ks,
sampling_info.top_ps, sampling_info.top_ps,
filter_apply_order="joint", filter_apply_order="joint",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment