fix: keep async rollouts version-consistent

- serialize shared-model optimizer updates with generation
- reject future or over-lagged rollout results after asynchronous scoring
- close cache publication races
- persist policy versions in online checkpoints
This commit is contained in:
0z5a
2026-09-03 12:01:24 +08:00
parent ce2f9d13b3
commit 587b0ee046
16 changed files with 531 additions and 49 deletions
+1 -2
View File
@@ -119,8 +119,7 @@ on_train_begin
if executor.sync_gradients:
before_optimizer_step
optimizer.step()
strategy.on_optimizer_step()
strategy.optimizer_step(optimizer)
optimizer.zero_grad()
if scheduler:
scheduler.step()