Update sampler.py to skip the success check (#2197)
This commit is contained in:
@@ -74,7 +74,7 @@ class Sampler(nn.Module):
|
|||||||
filter_apply_order="joint",
|
filter_apply_order="joint",
|
||||||
)
|
)
|
||||||
|
|
||||||
if not torch.all(success):
|
if self.use_nan_detectioin and not torch.all(success):
|
||||||
logger.warning("Detected errors during sampling!")
|
logger.warning("Detected errors during sampling!")
|
||||||
batch_next_token_ids = torch.zeros_like(batch_next_token_ids)
|
batch_next_token_ids = torch.zeros_like(batch_next_token_ids)
|
||||||
elif global_server_args_dict["sampling_backend"] == "pytorch":
|
elif global_server_args_dict["sampling_backend"] == "pytorch":
|
||||||
|
|||||||
Reference in New Issue
Block a user