ddp_posthoc_ema ¶
Official nitrous PostHocEMA lifecycle for native DDP training.
Classes¶
fastvideo.train.callbacks.ddp_posthoc_ema.DDPPostHocEMACallback ¶
DDPPostHocEMACallback(*, sigma_rels: list[float] | tuple[float, ...] = (0.05, 0.1), update_every: int = 1, checkpoint_every: int = 5000, checkpoint_folder: str | None = None, start_iter: int = 0, default_output_sigma: float = 0.05, step_size_correction: bool = True)
Bases: Callback
Run the exact nitrous_ema.PostHocEMA used by MMAudio.
Official MMAudio owns two complete CUDA EMA models on local rank zero and checkpoints them every 5,000 optimizer steps. Other DDP ranks do not hold EMA copies. This callback preserves that lifecycle while the ordinary FastVideo FSDP callback continues to maintain rank-local CPU shards.