Script arguments for the GRPO training script. Args: reward_funcs (`list[str]`): List of reward functions. Possible values: 'accuracy', 'format'.
| 20 | |
| 21 | @dataclass |
| 22 | class GRPOScriptArguments(ScriptArguments): |
| 23 | """ |
| 24 | Script arguments for the GRPO training script. |
| 25 | |
| 26 | Args: |
| 27 | reward_funcs (`list[str]`): |
| 28 | List of reward functions. Possible values: 'accuracy', 'format'. |
| 29 | """ |
| 30 | |
| 31 | reward_funcs: list[str] = field( |
| 32 | default_factory=lambda: ["accuracy", "format"], |
| 33 | metadata={"help": "List of reward functions. Possible values: 'accuracy', 'format'"}, |
| 34 | ) |
| 35 | max_line_res: Optional[int] = field( |
| 36 | default=None, |
| 37 | metadata={"help": "Maximum number of pixels for the longest line of the image"}, |
| 38 | ) |
| 39 | eval_dataset_name: Optional[str] = field( |
| 40 | default=None, |
| 41 | metadata={"help": "Eval dataset name or path"} |
| 42 | ) |
| 43 | |
| 44 | |
| 45 | @dataclass |
nothing calls this directly
no outgoing calls
no test coverage detected