Reintroduce tiny fix sampler error when prob is not contiguous (#7354)
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user