Skip to content

docs: drop dangling Dr.GRPO custom-reducer example reference#2096

Merged
zhuzilin merged 1 commit into
THUDM:mainfrom
EazyReal:docs/drop-dangling-reducer-example
Jun 18, 2026
Merged

docs: drop dangling Dr.GRPO custom-reducer example reference#2096
zhuzilin merged 1 commit into
THUDM:mainfrom
EazyReal:docs/drop-dangling-reducer-example

Conversation

@EazyReal

Copy link
Copy Markdown
Contributor

Problem

--custom-pg-loss-reducer-function-path's help and the customization docs (en + zh) reference a Dr.GRPO reducer example that does not exist in the repo:

  • slime/utils/arguments.py help: (e.g., examples/Dr.GRPO/custom_reducer.py:get_pg_loss_reducer)
  • docs/en/get_started/customization.md §11 and docs/zh/...: **Example**: examples/DrGRPO/custom_reducer.py:get_pg_loss_reducer

git ls-tree -r confirms there is no examples/DrGRPO/ (or examples/Dr.GRPO/) and no custom_reducer.py anywhere — so anyone following the pointer hits a dead path. (The help also misspells the directory as Dr.GRPO.)

This PR

Removes the three dead references. The §11 walkthrough is unaffected — it still documents the hook, its full signature, and the Dr.GRPO use case inline.

Maintainer's choice

If you'd rather keep an example, the alternative is to add examples/DrGRPO/custom_reducer.py instead of removing the pointers — happy to send that version. (Note: a first-class built-in for this exact use case — --loss-aggregation constant for Dr.GRPO — is proposed in #2090, which would make a standalone custom-reducer example redundant.)

🤖 Generated with Claude Code

The --custom-pg-loss-reducer-function-path help and the customization docs
(en + zh) point at examples/DrGRPO/custom_reducer.py (the help spells it
examples/Dr.GRPO/), but that example file does not exist anywhere in the
repo. Remove the dead references; the section still documents the hook,
its signature, and the Dr.GRPO use case inline.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@zhuzilin zhuzilin merged commit 21b1b33 into THUDM:main Jun 18, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants