File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ def set_training_args_kwargs(cls, cfg):
63
63
64
64
grpo_args_kwargs ["max_completion_length" ] = trl .max_completion_length
65
65
grpo_args_kwargs ["log_completions" ] = trl .log_completions
66
+ grpo_args_kwargs ["num_completions_to_print" ] = trl .num_completions_to_print
66
67
67
68
if trl .reward_weights :
68
69
grpo_args_kwargs ["reward_weights" ] = trl .reward_weights
Original file line number Diff line number Diff line change @@ -67,6 +67,12 @@ class TRLConfig(BaseModel):
67
67
default = False ,
68
68
json_schema_extra = {"description" : "Whether to log completions" },
69
69
)
70
+ num_completions_to_print : int | None = Field (
71
+ default = None ,
72
+ json_schema_extra = {
73
+ "description" : "Number of completions to print. If `log_completions` is `True`, this will be the number of completions logged."
74
+ },
75
+ )
70
76
sync_ref_model : bool | None = Field (
71
77
default = False ,
72
78
json_schema_extra = {
You can’t perform that action at this time.
0 commit comments