Skip to content

Commit 6a5ecc4

Browse files
Merge pull request #4334 from AI-Hypercomputer:fix-tunix-pr-1637-degen-groups
PiperOrigin-RevId: 944068388
2 parents eab9d7e + 659513d commit 6a5ecc4

3 files changed

Lines changed: 0 additions & 7 deletions

File tree

src/maxtext/configs/post_train/rl.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ rl:
6666
off_policy_steps: 0
6767
# System prompt injected into the agent at rollout time.
6868
system_prompt: ''
69-
# If true, mask degenerate groups (all-zero advantages) from contributing to the loss.
70-
degenerate_group_masking: true
7169
# Upper-bound clipping epsilon for GRPO loss; defaults to grpo_epsilon when null.
7270
epsilon_high: null
7371
# Number of model keys to chunk for resharding tensors between trainer and rollout devices.

src/maxtext/configs/types.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2156,10 +2156,6 @@ class RL(BaseModel):
21562156
"",
21572157
description="System prompt injected into the agent at rollout time (agentic only).",
21582158
)
2159-
degenerate_group_masking: bool = Field(
2160-
True,
2161-
description="Mask degenerate groups (all-zero advantages) from contributing to loss (agentic only).",
2162-
)
21632159
epsilon_high: Optional[float] = Field(
21642160
None,
21652161
description="Upper-bound clipping epsilon for GRPO loss. Defaults to epsilon when None (agentic only).",

src/maxtext/trainers/post_train/rl/train_rl.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ def _reward_fn(**kwargs):
580580
max_concurrency=trainer_config.rl.max_concurrency,
581581
off_policy_steps=trainer_config.rl.off_policy_steps,
582582
system_prompt=trainer_config.rl.system_prompt,
583-
degenerate_group_masking=trainer_config.rl.degenerate_group_masking,
584583
epsilon_high=trainer_config.rl.epsilon_high,
585584
)
586585
# Instantiate the custom MaxText chat parser

0 commit comments

Comments
 (0)