Skip to content

Commit 5e8ae4a

Browse files
authored
💡 Fix type hint in _generate_and_score_completions (huggingface#3336)
1 parent be531dc commit 5e8ae4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trl/trainer/grpo_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ def _prepare_inputs(
899899
return inputs
900900

901901
def _generate_and_score_completions(
902-
self, inputs: dict[str, Union[torch.Tensor, Any]]
902+
self, inputs: list[dict[str, Union[torch.Tensor, Any]]]
903903
) -> dict[str, Union[torch.Tensor, Any]]:
904904
device = self.accelerator.device
905905
mode = "eval" if self.control.should_evaluate else "train"

0 commit comments

Comments
 (0)