Skip to content

Commit

Permalink
Fix self-play RL initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfi1 committed Nov 18, 2024
1 parent 9c24732 commit 7ca05af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slippi_ai/rl/run_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ def run(config: Config):
elif config.teacher:
logging.info(f'Initializing from teacher: {config.teacher}')
teacher_state = saving.load_state_from_disk(config.teacher)
rl_state = teacher_state
step = 0
else:
raise ValueError('Must pass exactly one of "teacher" and "restore".')
Expand Down

0 comments on commit 7ca05af

Please sign in to comment.