CUDA Adam Checkpoints #
The eager trainer records parameter leaves before input leaves on every step. Their tape identifiers are the stable zero-based parameter slots used by this internal format. The reader checks every slot against the shared optimizer schema before installing any state.
Device-side Adam moment buffers for one parameter leaf.
- m : Cuda.Buffer
First moment buffer.
- v : Cuda.Buffer
Second moment buffer.
- t : ℕ
Adam step counter for this parameter.
Instances For
Adam moment state keyed by the eager trainer's parameter-leaf slot.
Instances For
The update rule associated with a CUDA Adam-family state.
- adam : CudaAdamKind
- adamW : CudaAdamKind
Instances For
Instances For
Hyperparameters that determine the meaning of retained Adam-family moments.
- kind : CudaAdamKind
- beta1 : Float
- beta2 : Float
- epsilon : Float
- weightDecay : Float
Instances For
Human-readable name used in checkpoint diagnostics.
Instances For
Compare configurations by exact floating-point bit pattern.
Instances For
Reject non-finite or mathematically invalid Adam-family hyperparameters.
Instances For
Versioned header for CUDA Adam and AdamW checkpoints.
Instances For
Release every device buffer owned by an Adam state map.
Instances For
Bind an in-memory moment map to one optimizer configuration.
Changing Adam to AdamW, or changing a moment-defining hyperparameter, requires a fresh state rather than silently reinterpreting existing moments.
Instances For
Instances For
Instances For
Stream CUDA Adam or AdamW moments to disk.
The file includes the optimizer configuration and the complete ordered parameter schema. Saving before the first Adam-family update is rejected because no optimizer state has yet been defined.
Instances For
Instances For
Restore CUDA Adam or AdamW moments after validating their optimizer and parameter metadata.
The old state remains live until the replacement has been parsed completely. Duplicate ids, frozen or out-of-range parameters, zero step counters, trailing bytes, and truncated payloads are rejected.