Skip to content

[rl] Add optional globally normalized sample-mean policy loss - #6460

Draft
vkuzo wants to merge 1 commit into
gh/vkuzo/11/headfrom
gh/vkuzo/12/head
Draft

vkuzo wants to merge 1 commit into
gh/vkuzo/11/headfrom
gh/vkuzo/12/head

Conversation

@vkuzo

@vkuzo vkuzo commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Compute fixed whole-TrainingSample weights and the eligible sample count in the batcher. Carry them through generic loss inputs, CP sharding and chunked loss; keep token-default operations and diagnostic token denominators unchanged.

CPU: 41 selected unittest methods pass with zero skips, including FP32/BF16 byte-exact default controls, DP-global accumulation with eight loss chunks, CP/gloo permutation and metadata RDMA roundtrip. The sole excluded LoRA/Flex compiler ABI failure reproduces on the untouched pinned base. Black22, pydoclint, codespell and syntax/whitespace checks pass; native flake8/pyrefly introduce no diagnostics relative to the pinned base. GPU validation and consumer wiring remain separate.

[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