Skip to main content

Module checkpoint_manager

Module checkpoint_manager 

Source
Expand description

Checkpoint pruning and validation for gradient checkpoints.

This module provides CheckpointPruner for retention-policy-based pruning and CheckpointValidator for CRC-32 integrity verification.

Structs§

CheckpointPruner
Applies a RetentionPolicy to a collection of CheckpointRecords and determines which records should be deleted.
CheckpointRecord
Metadata about a single gradient checkpoint.
CheckpointValidator
Validates checkpoint data against stored CRC-32 and size metadata.
RetentionPolicy
Configures which checkpoints the CheckpointPruner should keep.

Enums§

ValidationError
Errors that can occur during checkpoint validation.

Functions§

crc32
Compute the CRC-32 (IEEE polynomial) of data.