trias702 commited on
Commit
bad4dec
·
1 Parent(s): b4fbb98

Removed p_mask assert for compatibility with nemo-rl

Browse files

Signed-off-by: Daniel Egert <degert@nvidia.com>

Files changed (1) hide show
  1. modeling_ministral_dlm.py +1 -1
modeling_ministral_dlm.py CHANGED
@@ -518,7 +518,7 @@ class MinistralDiffEncoderModel(Ministral3PreTrainedModel, GenerationMixin):
518
 
519
  if labels is not None and self.config.dlm_paradigm != 'autoregressive':
520
  if masked_indices is not None:
521
- assert p_mask is not None
522
 
523
  if loss_mask is not None:
524
  masked_indices[loss_mask == 0] = 0
 
518
 
519
  if labels is not None and self.config.dlm_paradigm != 'autoregressive':
520
  if masked_indices is not None:
521
+ #assert p_mask is not None
522
 
523
  if loss_mask is not None:
524
  masked_indices[loss_mask == 0] = 0