Skip to content

Commit 479fb10

Browse files
committed
fix grpo
1 parent fa82a69 commit 479fb10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/trainers/rlhf_trainer/grpo_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1351,7 +1351,7 @@ def _get_per_token_logps_and_entropies_single(self,
13511351
k: v
13521352
for k, v in inputs.items() if k not in [
13531353
'logits_to_keep', 'completion_mask', 'ref_per_token_logps', 'advantages', 'old_per_token_logps',
1354-
'truncated_mask', 'num_items_in_batch'
1354+
'truncated_mask', 'seq_lengths', 'num_items_in_batch'
13551355
]
13561356
}
13571357
if 'logits_to_keep' in self.model_kwarg_keys:

0 commit comments

Comments
 (0)