pub struct TrainingConfig {
pub initial_step: u64,
pub total_steps: u64,
pub steps_per_epoch: u64,
pub epoch_steps: Vec<u64>,
pub batch_size: u64,
pub sequence_length: u64,
pub sequence_unit: String,
pub source_units_per_sample: f64,
pub source_unit: String,
pub timer_name: String,
pub enable_gpu_timing: bool,
}Fields§
§initial_step: u64Completed optimizer steps restored before this lifecycle starts. total_steps remains the absolute final budget, not an additional-step count. Restored steps select the next epoch/cursor/scheduler position but are excluded from this process’s loss and timing aggregates.
total_steps: u64Completed-step budget; zero keeps the loop open-ended.
steps_per_epoch: u64Fixed steps per epoch; zero disables epoch boundaries.
epoch_steps: Vec<u64>Variable epoch lengths. When nonempty, these replace steps_per_epoch and their sum becomes total_steps.
batch_size: u64Samples completed by one step. Zero is normalized to one.
sequence_length: u64Optional sequence work per sample for throughput accounting.
sequence_unit: StringHuman-readable sequence unit used by progress and summary callbacks.
source_units_per_sample: f64Optional fixed source units consumed by one sample.
source_unit: StringHuman-readable source unit used by progress and summary callbacks.
timer_name: StringStable name for the device timer represented in reports.
enable_gpu_timing: boolCollect exact device timestamps around submitted training work.