Skip to content

ScheduleConfig

Module: fast_llm.engine.schedule.config

Fields

breadth_first_micro_batchescore

Type: int    Default: 1

Number of micro-batches processed breadth-first, i.e., interleaved across model stages.

depth_first_micro_batchescore

Type: int    Default: 1

Number of micro-batches processed depth-first, i.e., each runs through all model stages before the next begins. This is the standard way to perform gradient accumulation.

data_batch_warn_time_msoptional

Type: float    Default: 1000.0

Warn if a batch takes too long to load.

micro_batch_splitsperformance

Type: int    Default: 1

Number of splits for each micro-batch.

debug_schedulelogging

Type: bool    Default: False

Log the whole schedule.

debug_send_recvlogging

Type: bool    Default: False

Log the pipeline-parallel operations.

profile_schedulelogging

Type: bool    Default: False

Detailed time table for the schedule execution (cpu and gpu times).

throttle_cpuexpert

Type: bool    Default: True

Avoid scheduling too many operations in advance to limit memory fragmentation and prevent costly memory cache flushes.

throttle_cpu_delayexpert

Type: int    Default: 1

Synchronize with a cuda event registered this many steps before, to avoid a full synchronization.

throttle_cpu_rateexpert

Type: int    Default: 1

Number of schedule steps between each cpu throttling.

Used in