MCPcopy Create free account
hub / github.com/OpenBMB/AgentCPM-GUI / GRPOScriptArguments

Class GRPOScriptArguments

rft/configs.py:22–42  ·  view source on GitHub ↗

Script arguments for the GRPO training script. Args: reward_funcs (`list[str]`): List of reward functions. Possible values: 'accuracy', 'format'.

Source from the content-addressed store, hash-verified

20
21@dataclass
22class 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected