Skip to content

Reset opponent environments when swapping historical policies - #672

Open
bagel786 wants to merge 1 commit into
PufferAI:5cfrom
bagel786:fix/reset-opponents-on-swap
Open

Reset opponent environments when swapping historical policies#672
bagel786 wants to merge 1 commit into
PufferAI:5cfrom
bagel786:fix/reset-opponents-on-swap

Conversation

@bagel786

Copy link
Copy Markdown

Summary

When a historical opponent checkpoint is swapped in, reset every CPU environment assigned to that policy before the next rollout. Clear environment boundaries, recurrent state, reward state, and terminal state, then upload the refreshed buffers so episodes cannot span two different opponent policies.

Fixes #620.

Testing

  • git diff --check passed.
  • CUDA build/runtime validation was not available on this machine and should run in CI or on a CUDA host before merge.

@bagel786
bagel786 marked this pull request as ready for review August 30, 2026 04:31
Copilot AI lite review requested due to automatic review settings August 30, 2026 04:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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