pub struct PpoUpdateProgram { /* private fields */ }Expand description
Reusable fixed-geometry PPO backward and AdamW programs.
Retain this value across trainers when checkpointing between rollouts. Each minibatch reuses one bounded tape’s storage, accumulating sample-weighted gradients before exactly one AdamW step per epoch. Tail shapes compile once. Drop never submits or waits. Different models/configurations are rejected.
Implementations§
Source§impl PpoUpdateProgram
impl PpoUpdateProgram
Sourcepub fn invalidate_updates(&mut self)
pub fn invalidate_updates(&mut self)
Discard captured update graphs while retaining the reusable rollout storage.
Call between completed trainers when loss parameters change. The next update captures its new configuration; collection plans retain their buffer identities. Model parameters and optimizer state remain owned by their existing owners.
Sourcepub fn replay_count(&self) -> u64
pub fn replay_count(&self) -> u64
Number of complete epochs submitted through the compiled program.
Sourcepub fn command_recording_count(&self) -> u64
pub fn command_recording_count(&self) -> u64
Full graph-command recordings, excluding timestamp bracket commands.
Sourcepub fn is_compiled(&self) -> bool
pub fn is_compiled(&self) -> bool
Whether the fixed update programs have been compiled.