Skip to content

[rl] Reject nested native chunk wrappers for sample mean - #6462

Draft
vkuzo wants to merge 1 commit into
gh/vkuzo/13/headfrom
gh/vkuzo/14/head
Draft

vkuzo wants to merge 1 commit into
gh/vkuzo/13/headfrom
gh/vkuzo/14/head

Conversation

@vkuzo

@vkuzo vkuzo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Unwrap at most one native ChunkedLossWrapper when validating sample-mean admission. Reject an actual nested wrapper by its selected owner, even with a policy-gradient leaf, because the engine wires lm_head only on the outer loss. Keep owner-first handling for wrapper-shaped configs that actually build a policy loss.

Extend existing admission subcases without changing the 47-method CPU selection. The new nested-PG rejection fails on a6a48c; focused admission and all 47 selected CPU methods pass on the fix. Flake8, Black22, pydoclint, codespell and syntax/whitespace pass, with no new Pyrefly diagnostics. No nested execution feature, GPU/job/registry action or remote write.

[ghstack-poisoned]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant