Repository navigation
GRPO: reduce the IS ratio metric per sequence for geometric modes and the env override - #14192
Merged
Merged
Conversation
…nd the UNSLOTH_GRPO_VLLM_IS_MODE override The sampling/importance_sampling_ratio metrics treated only sequence_* as one ratio per sequence, so unsloth_zoo's geometric_* modes (and a mode set through UNSLOTH_GRPO_VLLM_IS_MODE) were token weighted. Config-only TRL modes are unchanged.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
danielhanchen
added a commit
that referenced
this pull request
Oct 19, 2026
## Summary The `Core zoo` cells in `consolidated-tests-ci.yml` keep hitting their 25 minute job cap after the tests have already passed. In one cancelled cell: - the zoo `pytest -n 4` step ran from 08:41 to 09:03 and passed (3015 passed, 620 skipped), - the job was then cancelled at 25:17 during `test_apply_fused_lm_head` and the pip cache save. The comment above the cap assumed a ~7.6 min zoo suite. It now takes up to about 23 minutes on a busy runner, so the cap cancels cells that have already passed. Today that cancelled Core zoo cells on #14152, #14165, #14188, #14192, #14199 and #14207, and on staging runs. Each one needs a manual rerun before the PR can merge. This raises the cap to 35 minutes, the same as `consolidated`. Hung tests are still bounded: `PYTEST_TIMEOUT: 300` in the step still names the culprit per test. ## Tests The workflow-parsing tests (`git grep -l consolidated-tests-ci -- tests`): 158 passed, 3 skipped. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The GRPO IS ratio metric was reduced per sequence only for TRL's
sequence_mask/sequence_truncatemodes. unsloth-zoo'sgeometric_*modes (verlseq_mean_k1) also give one ratio per sequence, but their metric was token-weighted. TheUNSLOTH_GRPO_VLLM_IS_MODEoverride, which zoo'sgrpo_accumulated_lossapplies over the config value, was ignored here too.The new
_unsloth_grpo_is_sequence_levelcoverssequence_*andgeometric_*, and reads the env override the same way zoo does. For the TRL config-only modes the metric is the same as before. The loss itself is not touched.Tests
tests/test_grpo_is_metrics_mask.py: 10 new cases fail on current main (helper missing, geometric modes and the env override token-weighted); all 14 pass on this branch.