计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
vtrace_actor_critic_update【效率与协作】Run a deterministic V-trace actor-critic optimizer step with value loss and policy-gradient diagnostics.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to test whether a learner update follows the IMPALA V-trace actor-critic mechanism. Inputs are a small unroll with features, rewards, actions, behavior probabilities, and scalar trainable parameters. Outputs include loss before/after, gradients, parameter changes, V-trace targets, and optimizer-state evidence.
Workflow: compute learner target probabilities, call the V-trace target helper, form value and policy losses, estimate gradients deterministically, apply a bounded optimizer step, and verify that parameters or optimizer state changed. This is appropriate for reduced recovery, not for claiming full Atari or DMLab reproduction.
Validation: the included test asserts a loss decrease and changed parameters on a lagged trajectory. Limitations: finite differences and scalar parameters are used only to keep recovery auditable and bounded.