AdvancedWeekly lectures

Week 10 — Distributed Multimodal Training Infrastructure

Distributed · Pipeline Parallel · Systems

Advanced

III — Training the model

Overview

From model math to production training systems: comm/compute overlap, contrastive vision/text all-gather, disaggregated vision-encoder execution, long-sequence image sharding, context parallelism, shared state across pipeline stages, shadow indexers, microbatch lifetime, and sharded Engram storage. Cross-layer attention reuse is explicitly a distributed problem.

What You Will Learn

Core Concepts

Shared state across stages

A Reuse layer must materialize KV/indices produced on another pipeline stage; the schedule must order production before consumption.

Comm/compute overlap

Hidden state is the point: overlap communication with computation or the schedule stalls.

Prerequisites

Work these pages on this site before the lecture.

Lecture notes

CSA2 Reuse makes training a distributed problem: the layer that consumes KV/indices may live on another pipeline stage than the layer that produces them. If the schedule does not order production before consumption, you have a deadlock or a stale read — the same bug as week 4, now across devices.

Also in scope: context parallelism (shard the sequence), FSDP/Megatron-style parameter sharding, overlapping all-gather with compute, disaggregated vision encode, sharded Engram tables.

Your artifact is a schedule simulator (bubble fraction + state-movement bytes), not a real 8-GPU run.

Required readings

Lab / Implementation

Design a pipeline schedule for a CSA2 model where Full and Reuse layers are split across devices; simulate it and compute bubble fraction plus shared-state movement cost.

Not on this site (paper reading required)

Mastery Check


Part of CS/AI 684 — Efficient Long-Context Agent Systems.