Skip to content

5c Self-play swaps opponents mid-game #620

Description

@MischaU8

In 5c boundary_reached is sticky, while finished environments immediately reset and continue. When the final environment reaches its boundary, others may already be mid-game. The scheduler then loads new opponent weights without resetting environments or RNN state.

Games can therefore start against one checkpoint and finish against another, corrupting self-play trajectories and win-rate metrics.

Problematic code: swap logic

Expected: reset affected environments and RNN state when swapping opponents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions