Skip to content

[Quality] Strengthen LLM policy loss tests - #4164

Merged
vmoens merged 2 commits into
pytorch:mainfrom
quinnarnold:issue-4144-llm-policy-tests
Aug 27, 2026
Merged

vmoens merged 2 commits into
pytorch:mainfrom
quinnarnold:issue-4144-llm-policy-tests

Conversation

@quinnarnold

Copy link
Copy Markdown
Contributor

Summary

  • distinguish asymmetric GRPO clipping from symmetric clipping with exact ratios
  • exercise KL masking with tokens on both sides of the threshold
  • verify the CISPO clipped-importance objective numerically

Motivation

Related to #4144. The prior shape and finiteness checks did not distinguish these public behaviors. This PR intentionally does not close the broader audit issue.

Testing

  • 69 focused tests passed, with 3 optional-dependency skips
  • targeted mutation checks rejected incorrect behavior
  • git diff --check passed

cc @vmoens

@pytorch-bot

pytorch-bot Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/4164

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions github-actions Bot added quality code quality llm/ LLM-related PR, triggers LLM CI tests labels Aug 26, 2026
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 26, 2026

@vmoens vmoens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vmoens
vmoens merged commit 8bc9ce4 into pytorch:main Aug 27, 2026
65 of 69 checks passed
vmoens pushed a commit that referenced this pull request Aug 27, 2026
vmoens pushed a commit that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. llm/ LLM-related PR, triggers LLM CI tests quality code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants