Explicit State and Resource Contracts for Low-Precision Pipeline Parallel Training under Captured Graphs
Abstract
CUDA Graphs eliminate launch overheads by replaying tensor operations over static virtual addresses. However, FP8 pipeline training continuously alters the scaling states, microbatches, and deferred backward tasks that those fixed addresses represent. Split-backward schedules (e.g., 1F1B, Zero-Bubble) decouple input-gradient () and weight-gradient () computations to minimize bubbles, breaking traditional LIFO lifecycles. Standard dataflow graphs cannot inform the runtime of hidden numerical updates, non-LIFO work ownership, or cache validity, leading to silent cross-stream data corruption. We present QEffect, an explicit state and resource contract runtime for low-precision pipeline training. QEffect formalizes four foundational invariants: (1) temporal serialization of hidden scaling updates, (2) generational ownership of retained backward resources, (3) validity versioning for cached weights across optimizer boundaries, and (4) bidirectional caller-graph stream completion synchronization. These invariants uniformly govern eager and captured execution, allowing ephemeral graph resources to be cleanly rebuilt across process restarts. Leveraging work-ownership semantics, we also introduce an affine direct-gradient placement mechanism that eliminates redundant memory copies. Integrated with TorchTitan and NVIDIA Transformer Engine, QEffect maintains strict bitwise parity with native baselines across delayed-scaling rollovers, deterministically traps cross-stream ordering violations, and enables flawless cold-start resumption. On NVIDIA H800 GPUs, captured Transformer layers achieve 1.82--2.79x speedup over eager execution, while direct gradient placement delivers an additional 1.132x gain by eliminating 96 matrix copies per rank-step.
Create a lesson
Metadata
- Comments
- 12 pages, 5 figures
Related papers
ASHE: Asynchronous Stage-owned Heterogeneous Elastic-averaging for Pipeline-Parallel Training
Shared title terminologycs.DCHamin Jung, Sookwang Lee, Shinyoung Ahn et al.
Effective Parallel Discrete Event Simulation on NUMA Machines through Ubiquitous Simulation-Object State
Shared title terminologycs.DCFrancesco Quaglia
Half a Bit per Parameter: How Much Optimizer State Does Training Need to Survive a Failed GPU?
Shared title terminologycs.DCZiyang Lin, Zixuan Sun
Anatomy of a Data Pipeline in Deep Learning Training
Shared title terminologycs.DCJens Birk Andersen, Vivek Shah, Javier González et al.
Mind the Gap: Minimizing Bubbles in Pipeline-Parallel LLM Serving
Shared title terminologycs.DCYouhe Jiang, Yi Xu, Haoran Wu et al.
PipeAxes: Decoupling Compute and Communication Granularities for Pipeline-Parallel LLM Serving
Shared title terminologycs.DCXiaoqiang Guo, Yifan Lin, Yang Liu et al.