Skip to content
DistML Course
Course contents
On this page

Part 3 · ML Parallelism · Chapter 14

Context Parallelism

Introduction

Context parallelism distributes long-context attention across GPUs. This chapter will explain which data is partitioned, how attention obtains information from other ranks, and what the partitioning means for memory use and communication.

We will cover:

  • What is partitioned: Dividing the context and its associated tensors across ranks.
  • Attention across ranks: Organizing the communication needed to compute attention.
  • Memory and communication tradeoffs: Comparing memory savings with additional data movement.
  • Worked example and experiments: Implementing distributed attention and measuring its costs.

Stay tuned for the full chapter!