---
title: "Efficient Large-Scale Language Model Training on GPU Clusters"
description: "How Megatron-LM combines tensor, pipeline, and data parallelism to train large language models efficiently across thousands of GPUs."
canonical: "https://research.elamur.ai/free/en/papers/narayanan-2021-efficient-large-scale-language-model/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/narayanan-2021-efficient-large-scale-language-model/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM

# Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM

Paper · 2021 · Deepak Narayanan, Mohammad Shoeybi, Jared Casper et al.

**Authors:** [Deepak Narayanan](https://md.research.elamur.ai/free/en/authors/deepak-narayanan/), [Mohammad Shoeybi](https://md.research.elamur.ai/free/en/authors/mohammad-shoeybi/), [Jared Casper](https://md.research.elamur.ai/free/en/authors/jared-casper/), [Patrick LeGresley](https://md.research.elamur.ai/free/en/authors/patrick-legresley/), [Mostofa Patwary](https://md.research.elamur.ai/free/en/authors/mostofa-patwary/), [Vijay Anand Korthikanti](https://md.research.elamur.ai/free/en/authors/vijay-korthikanti/), Dmitri Vainbrand, Prethvi Kashinkunti, [Julie Bernauer](https://md.research.elamur.ai/free/en/authors/julie-bernauer/), [Bryan Catanzaro](https://md.research.elamur.ai/free/en/authors/bryan-catanzaro/), [Amar Phanishayee](https://md.research.elamur.ai/free/en/authors/amar-phanishayee/) and [Matei Zaharia](https://md.research.elamur.ai/free/en/authors/matei-zaharia/) · **Year:** 2021 · **Venue:** arXiv:2104.04473 · **Licence:** [arXiv — non-exclusive licence to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**574** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3153553004|W3187255235) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/2104.04473)
- [arXiv 2104.04473](https://arxiv.org/abs/2104.04473)
- [OpenAlex](https://openalex.org/W3187255235)

## Deep dive: Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM

How Megatron-LM combines tensor, pipeline, and data parallelism to train large language models efficiently across thousands of GPUs. · about 36 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Training a large [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) requires more than enough memory to hold its parameters. The work must also be divided so that many processors remain busy, communication does not overwhelm computation, and distributing the calculation preserves the intended learning procedure. This paper studies how to satisfy those requirements together. Its subject is the training system: how to organize a large transformer across a GPU cluster so that training can finish within a practical period.

The authors combine complementary ways of distributing work. Tensor parallelism divides calculations inside a layer among GPUs. Pipeline parallelism assigns different parts of the network to different devices and moves small groups of examples through them. Data parallelism runs copies of this distributed network on different examples and combines their gradients. Their combined approach, PTD-P, places frequent tensor-parallel communication within a server, uses pipeline communication between servers, and adds data-parallel replicas when memory permits. Implemented in Megatron-LM, it also incorporates carefully arranged memory layouts, fused computational operations, and a communication optimization that avoids repeatedly sending identical information between servers.

The paper introduces an interleaved pipeline schedule. Rather than assigning each device one continuous stretch of layers, it gives that device several smaller groups from different positions in the network. This reduces the idle period created when the pipeline starts and finishes a training batch. The tradeoff is additional communication, so the schedule works together with the communication optimization instead of offering an unconditional improvement. The authors report throughput gains reaching 10% over earlier schedules with similar memory requirements. Their broader experiments show why configuration matters: an unsuitable balance between tensor and pipeline parallelism can produce up to 2× lower throughput, while selecting a suitable microbatch size can improve throughput by 15%.

At the largest evaluated scale, training iterations for a GPT network with 1 trillion parameters achieve 502 petaFLOP/s across 3072 A100 GPUs. The reported throughput per GPU is 163 teraFLOP/s, corresponding to 52% of the device’s theoretical peak. These measurements include communication, data handling, optimization, and logging. Using that throughput and an assumed training volume of 450 billion tokens, the authors estimate a training duration of 84 days; they do not report completing that entire run. Comparisons with ZeRO-3 favor PTD-P by 70% for the evaluated 175- and 530-billion-parameter networks at the larger compared GPU counts, but the ZeRO-3 baseline does not include tensor parallelism. The central result is therefore a demonstrated systems configuration for efficient large-scale training, accompanied by an explanation of where its efficiency comes from and which conditions it depends on.

### Ideas worth borrowing

Match communication to the hardware hierarchy. Different ways of distributing a calculation generate different communication patterns. Tensor parallelism repeatedly combines intermediate results, making it sensitive to the speed of connections between participating GPUs. Pipeline parallelism sends information between neighboring stages and can tolerate a different placement. PTD-P exploits that distinction by keeping tensor-parallel groups inside a server and extending pipelines across servers. The reusable principle is to examine how frequently information moves, how much moves, and which devices must participate before assigning work to hardware. It applies wherever local connections are substantially faster than connections between machines.

Separate fitting from scaling. A system needs enough model parallelism to accommodate parameters, intermediate values, and training state. Additional devices can then be used for data parallelism instead of continuing to fragment every calculation. This matters because a smaller shard does not automatically execute more efficiently: it can create less favorable matrix operations or more communication. The paper’s recommendation is a practical way to distinguish a memory requirement from a throughput decision. Engineers can use the same distinction when an application supports several ways to distribute its state but only some of them increase useful work per device.

Treat a schedule as a resource tradeoff. The interleaved pipeline reduces idle time by making stages smaller, but it increases communication. The ordinary alternating schedule reduces the amount of stored activation data compared with an all-forward schedule, without removing the pipeline’s idle period. These are different improvements to different costs. The useful habit is to describe a scheduling change through its effects on computation, memory, communication, and waiting time separately. That makes the reasoning portable to other staged computations, where reducing one visible inefficiency may expose another.

Spend computation to unlock a better operating point. Activation recomputation repeats some forward calculations so that fewer intermediate values need to remain in memory. At a fixed small batch size, this extra work can reduce throughput. Yet the freed memory can support a larger batch, reducing pipeline idle time enough to improve the best achievable throughput. This suggests evaluating memory-saving methods across the configurations they enable, instead of judging them only at an unchanged configuration. The same reasoning applies whenever memory capacity constrains batching or concurrency.

Remove redundant traffic before buying more bandwidth. Tensor-parallel ranks hold identical outputs at a pipeline boundary. Sending each copy across the network wastes the slow connection. The scatter/gather optimization sends different pieces from different ranks, then reconstructs the complete value using faster connections at the destination. The transferable idea is to inspect whether replicated state is causing replicated external communication. A system can sometimes exchange inexpensive local work for a substantial reduction in traffic between machines.

Measure the complete iteration. Fast matrix multiplication does not establish that a training system is fast. PTD-P’s end-to-end measurements include the surrounding operations that consume time in practice. Its analysis also distinguishes measured iteration throughput from an estimated duration for an entire training run. Both habits are reusable: measure at the boundary that matters to the application, and label extrapolations according to their assumptions. This is especially useful when a local optimization looks impressive in isolation but may have a smaller effect once communication, synchronization, storage, and bookkeeping are included.

### How Mova uses it

For [Mova](https://md.research.elamur.ai/free/en/projects/mova/), the small transparent language system written in Rust, this paper is most useful as a way to reason about execution costs. The available account does not establish that Mova implements PTD-P, distributed transformer training, interleaved pipelines, or Megatron-LM’s GPU kernels. Those should be treated as possible applications, with their usefulness depending on Mova’s eventual workload and hardware.

A concrete application would be to make the cost of each processing stage visible. Mova could distinguish time spent calculating, moving data, retaining intermediate values, and waiting for another stage. That would follow the paper’s analytical approach without requiring a large cluster. Transparency would then include how execution resources are used, alongside an explanation of the language system’s behavior. Such measurements could help identify whether a proposed optimization addresses the actual bottleneck.

The distinction between fitting and scaling is also relevant. If a Mova training component eventually exceeded the memory of one device, distributing its state would solve a capacity problem. Whether that distribution improved speed would remain a separate question. The paper gives a reason to keep those decisions separate: distributing a calculation more finely can increase communication and reduce the efficiency of the smaller calculations. For a small system, the first useful outcome might therefore be a clear memory budget and a measured local implementation, rather than a distributed architecture.

Data layout and operation fusion offer a more direct line of investigation. Megatron-LM avoids unnecessary rearrangements of tensors and combines operations that would otherwise repeatedly read and write intermediate results. Mova could investigate the analogous question in its own Rust components: which intermediate objects exist only to connect adjacent operations, and which data arrangements force avoidable copying? The paper supports asking those questions. It does not establish that its specific transformer kernels would transfer to Mova or that a Rust implementation would obtain the same gains.

Recomputation offers another conditional idea. If retained intermediate state became a substantial memory cost in a differentiable component, Mova could compare storing that state with reconstructing it later. The important lesson is to compare the complete feasible configurations. A memory-saving option might be useful because it enables more concurrent work, even if reconstructing an individual intermediate value is slower than loading a saved copy.

Finally, the paper suggests how Mova could document performance claims. A report could identify the workload, hardware, batch settings, memory policy, and operations included in timing. It could also distinguish an observed run from a projected completion time. These are modest practices compared with building a cluster training system, but they fit a transparent project well. The numerical results in this paper would remain evidence about Megatron-LM on its evaluated hardware, not performance promises for Mova.

### The problem and its context

#### Memory capacity is only the first obstacle

The paper begins from the rapid growth of transformer-based language systems. It places that growth in the context of work such as [Attention Is All You Need](https://md.research.elamur.ai/free/en/papers/vaswani-2017-attention-all-need/), [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/), and [Language Models are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/). In the authors’ account, larger datasets and more available computation had helped produce strong results, including systems that could perform tasks with little task-specific demonstration.

The immediate engineering difficulty is that the network and its training state can exceed a GPU’s memory. The paper mentions A100 devices with 80GB of memory, yet the systems it aims to train are too large even for a server containing several GPUs. Distributing storage is therefore necessary.

Storage alone does not solve the problem. The authors estimate that training the 175-billion-parameter GPT-3 network on a single V100 GPU would take roughly 288 years. Moving parameters between host memory and GPU memory might make some calculation possible, but it would not supply the aggregate computational power needed to finish promptly. Capacity and elapsed time impose separate requirements.

This distinction shapes the entire paper. The target is not merely to demonstrate that a large network can execute a training step. It is to organize enough devices that a sustained training run becomes plausible, while ensuring that communication and synchronization do not consume the expected speedup.

#### Why ordinary data parallelism reaches a limit

Data parallelism is conceptually straightforward. Workers hold equivalent parameters, process different examples, and combine their gradients so that subsequent updates remain consistent. The paper connects this approach to [PyTorch Distributed](https://md.research.elamur.ai/free/en/papers/li-2020-pytorch-distributed-experiences-accelerating-data/).

For a fixed global batch, however, adding workers gives each worker fewer examples. Small local workloads can use a GPU poorly, while communication becomes more prominent relative to useful calculation. Eventually there are also too few examples to assign work to additional workers.

The other obstacle is memory. A complete training copy may not fit on a worker. Data parallelism can be applied to matching shards of a distributed network, but it cannot independently remove that requirement.

The authors contrast this setting with earlier high-performance image-classification training. Their discussion of [large-minibatch ImageNet training](https://md.research.elamur.ai/free/en/papers/goyal-2017-accurate-large-minibatch-sgd-training/) concerns networks that fit on an accelerator and allow very large batches. Those properties make extensive data parallelism easier. The transformer workloads here require a different balance because their state is larger and the chosen training batch constrains the available parallel work.

#### Why dividing layers internally is insufficient

Tensor parallelism partitions operations inside a layer. Earlier Megatron work and [Mesh-TensorFlow](https://md.research.elamur.ai/free/en/papers/shazeer-2018-mesh-tensorflow-deep-learning-supercomputers/) provide the immediate background. Instead of placing an entire matrix multiplication on one GPU, a system can divide its matrices and combine the resulting partial calculations.

That approach helps with memory and creates more parallel work. Its difficulty is the frequency of communication. Intermediate results must be combined repeatedly throughout the network, not only once after a whole batch.

Within a server, fast GPU connections can make this practical. Across servers, slower links can turn those same repeated combinations into a bottleneck. Increasing the tensor-parallel degree also reduces the size of the matrix multiplication assigned to each GPU. A smaller local matrix operation can achieve lower utilization, so more devices need not mean proportionally less execution time.

The paper describes tensor parallelism as effective for networks up to 20 billion parameters on the discussed DGX A100 configuration. Its broader point is conditional: once the partition extends beyond the fast local interconnect, the balance between calculation and communication changes.

#### Why pipelines introduce waiting

Pipeline parallelism divides a network by depth. A worker handles one part, passes its output onward, and later receives the information needed for back-propagation. A batch is divided into microbatches so that different workers can process different examples concurrently.

This arrangement creates a scheduling problem. The first stage cannot immediately fill all later stages with work. At the end, the remaining microbatches must finish. When the system synchronizes updates after each batch, it must drain the pipeline before starting work that uses the new weights. The resulting idle period is the pipeline bubble.

The paper discusses GPipe and the schedule associated with [Memory-Efficient Pipeline-Parallel DNN Training](https://md.research.elamur.ai/free/en/papers/narayanan-2020-memory-efficient-pipeline-parallel-dnn/). It also considers work that avoids flushing by permitting delayed or asynchronous updates. Those alternatives can improve throughput, but they change the relationship between forward calculations, backward calculations, and parameter versions.

Here the authors choose strict synchronous optimizer behavior. An example should not unexpectedly encounter a weight update during its backward calculation that was absent from its forward calculation. That choice makes the idle period an explicit cost to reduce rather than something to remove by changing training semantics.

#### The contribution is a coordinated design

PTD-P does not introduce every underlying form of parallelism. Its contribution is to combine them with a schedule, a hardware-aware placement, and implementation choices that work together.

The paper also distinguishes this approach from automatic graph placement. Systems such as FlexFlow and [DAPPLE](https://md.research.elamur.ai/free/en/papers/fan-2020-dapple-pipelined-data-parallel-approach/) search for partitions using cost estimates. PTD-P instead provides practical heuristics and studies the interactions among the important choices.

This is a systems question within [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/): given a training batch, a network, and a collection of devices, how should the computation be arranged? The answer depends on memory, arithmetic efficiency, synchronization, and network topology together. Optimizing any of those in isolation can select a configuration that performs poorly overall.

### The method, step by step

#### Start from the whole training iteration

A [transformer](https://md.research.elamur.ai/free/en/concepts/transformer/) consists of repeated blocks that transform token representations. Training involves a forward calculation, a backward calculation that obtains gradients, and an optimizer update. Intermediate activations connect the forward and backward calculations, so deciding where work runs also determines where those activations reside and how long they remain necessary.

PTD-P distributes that process at several levels. Inside a server, GPUs cooperate on individual layers. Across servers, pipeline stages hold different portions of the network. Additional groups repeat that arrangement on other examples, then combine corresponding gradients.

The method can be understood through the following sequence:

Organizing training with PTD-P The steps in order.

The ordering describes the design logic rather than an automatic optimization algorithm. The implementation uses heuristics to select a configuration, and the experiments explain why particular choices are effective.

#### Define the parallel dimensions

The authors denote the pipeline degree by p, the tensor degree by t, and the data-parallel degree by d. These dimensions must account for the available GPUs:

```
p · t · d = n
```

Here n is the total GPU count. The symbol p counts the devices along a pipeline dimension, t counts the GPUs cooperating within the tensor-parallel dimension, and d counts data-parallel replicas. The multiplication expresses how the dimensions compose.

The global batch size is B. Each microbatch contains b examples, and each data-parallel replica receives its share of the global batch. The microbatch count within a pipeline is:

```
m = B / (b · d)
```

Here m is the number of microbatches processed by that pipeline for the batch. B, b, and d respectively denote global batch size, microbatch size, and data-parallel degree. This relationship is central because pipeline efficiency depends on how many microbatches are available relative to the pipeline depth.

The same global batch can therefore create different schedules under different partitions. Increasing data parallelism reduces the examples assigned to each replica. Increasing the microbatch size reduces the number of separate microbatches within each replica. Both changes affect how much work is available to cover pipeline startup and completion.

#### Understand the ordinary pipeline bubble

GPipe schedules all forward calculations for a batch before its backward calculations. If each stage takes the same amount of time, the startup and completion costs can be expressed directly:

```
t_pb = (p − 1) · (t_f + t_b)
```

The symbol t_pb denotes pipeline bubble time. The symbols t_f and t_b are the forward and backward times for one microbatch on a stage, and p is the pipeline degree. The expression accounts for the otherwise unoccupied stage intervals during startup and draining.

The corresponding ideal useful processing time is:

```
t_id = m · (t_f + t_b)
```

Here t_id denotes the processing time under the paper’s idealized fully utilized schedule, while m is the microbatch count. The other symbols retain their meanings.

Dividing those quantities gives:

```
t_pb / t_id = (p − 1) / m
```

The left side is bubble time relative to ideal useful processing time. On the right, p is the pipeline degree and m is the microbatch count. This is not defined as bubble time divided by the complete elapsed iteration time, a distinction that matters when interpreting the expression.

The result explains why more microbatches help. Startup and draining are spread over more useful work. It also explains why deeper pipelines are harder to utilize at a fixed microbatch count.

GPipe’s ordering has an additional memory consequence. Forward activations remain necessary until the corresponding backward calculations occur. Keeping the forward calculations for the whole batch ahead of the backward calculations can therefore require storing activation information for all its microbatches.

#### Alternate forward and backward work

The default schedule used by the authors is PipeDream-Flush. After a warmup, each worker alternates a forward calculation with a backward calculation. This ordering is called 1F1B.

The improvement concerns outstanding work. A microbatch whose forward calculation has finished but whose backward calculation remains unfinished still needs saved activation information. Alternating the two directions limits how many such microbatches accumulate.

The paper states that PipeDream-Flush retains activation information for at most p microbatches, instead of the m microbatches associated with GPipe’s ordering. That makes a substantial difference when the microbatch count is large compared with pipeline depth.

This schedule still flushes before the optimizer update. Its idealized bubble is therefore unchanged. It saves memory by changing the order of operations, while preserving the same synchronized batch boundary and its associated idle period.

#### Interleave smaller groups of layers

The new schedule addresses that remaining bubble. Each device receives several groups of layers from different positions in the network. The authors call each group a model chunk.

Their example starts with devices holding 4 consecutive layers. They replace that assignment with chunks containing 2 layers, so a device can handle an early chunk and return later to handle another. Physical devices are reused at several positions in the logical pipeline.

Let v be the number of chunks on each device. Under the balanced timing assumptions, an individual chunk has a smaller forward duration:

```
t_f,chunk = t_f / v
```

Here t_f,chunk is the forward time for one chunk, t_f is the previous forward time covering the device’s complete layer assignment, and v is the chunk count.

The analogous backward duration is:

```
t_b,chunk = t_b / v
```

Here t_b,chunk denotes backward time for a chunk, t_b is the complete assignment’s backward time, and v again counts chunks.

The smaller scheduling units shorten the idle period:

```
t_pb,int = ((p − 1) · (t_f + t_b)) / v
```

The symbol t_pb,int denotes bubble time for the interleaved schedule. The remaining symbols denote pipeline degree, forward time, backward time, and chunks per device as defined above.

Relative to ideal useful processing time, the result is:

```
t_pb,int / t_id = (1 / v) · ((p − 1) / m)
```

Here t_id is ideal useful processing time, m is the microbatch count, and the other symbols retain their meanings. Interleaving reduces the analytical bubble by the chunk factor.

That result comes with a corresponding communication cost. More chunk boundaries require more transfers, and the paper states that communication increases by v. Its interleaved schedule also requires the microbatch count to be divisible by the pipeline degree. A smaller analytical bubble is therefore only part of the performance argument.

#### Partition the feed-forward calculations

Tensor parallelism works inside a transformer block. The feed-forward component first applies a learned linear transformation and a GeLU nonlinearity:

```
Y = GeLU(XA)
```

Here X is the input activation matrix, A is the first learned weight matrix, and Y is the resulting intermediate activation matrix. GeLU denotes the nonlinear activation operation.

The next transformation is:

```
Z = Dropout(YB)
```

Here B is the second learned weight matrix, Z is the output, and Dropout denotes the dropout operation applied after the matrix multiplication. In these feed-forward equations, B is a matrix, distinct from the global batch-size symbol used elsewhere.

The important partition is column-wise for the first weight matrix:

```
A = [A₁, A₂]
```

Here A₁ and A₂ are column partitions of A, and the brackets mean horizontal concatenation. Each partition can be placed on a different GPU.

The resulting nonlinear calculations remain independent:

```
[Y₁, Y₂] = [GeLU(XA₁), GeLU(XA₂)]
```

Here Y₁ and Y₂ are the corresponding output partitions. X is available to the participating ranks, and A₁ and A₂ are their weight partitions. Because each partition produces complete output coordinates, GeLU can be applied locally.

This is why the partition direction matters. A different split could produce partial sums that need to be combined before applying the nonlinearity. The chosen split postpones communication.

The second weight matrix is divided compatibly:

```
B = [B₁; B₂]
```

Here B₁ and B₂ are row partitions of B, and the semicolon indicates vertical stacking. They align with the column partitions Y₁ and Y₂. Local matrix products can be calculated without first exchanging the intermediate activation partitions; their outputs are then reduced before dropout.

#### Partition attention along its heads

The attention component provides another natural opportunity for partitioning. Its query, key, and value transformations can be divided by columns so that different GPUs handle different portions of the attention calculation.

The output projection uses a compatible row partition. As in the feed-forward component, choosing adjacent partitions together avoids an unnecessary exchange between the component operations.

For the complete transformer layer, the described design needs two all-reduces during the forward calculation and two during the backward calculation. An all-reduce combines contributions across a group and makes the combined result available to its members.

The paper represents these communication boundaries using operators f and g. In the forward direction, f does nothing and g performs the reduction. During back-propagation, their roles reverse. This expresses how the distributed layer can preserve the intended calculation while keeping communication at specific boundaries.

#### Compare communication costs before choosing placement

Pipeline communication transfers activations or activation gradients between neighboring stages. The paper expresses the tensor size for one directional transfer as:

```
C_pipe = b · s · h
```

Here C_pipe denotes the communicated tensor volume in the paper’s size accounting, b is microbatch size, s is sequence length, and h is hidden dimension. Converting this element count into bytes requires the representation size.

Tensor parallelism performs repeated collective operations inside every layer. The paper gives the per-device communication amount for a layer and microbatch as:

```
C_tensor,layer = 8bsh · ((t − 1) / t)
```

Here C_tensor,layer is the tensor-parallel communication volume for that layer, b is microbatch size, s is sequence length, h is hidden dimension, and t is tensor-parallel degree. The numerical factor captures the collective communication associated with forward and backward work in the stated accounting.

A device responsible for several layers incurs:

```
C_tensor,stage = l_stage · 8bsh · ((t − 1) / t)
```

Here l_stage counts the layers on the pipeline stage, and C_tensor,stage is its corresponding communication volume per microbatch. Other symbols retain their meanings.

This comparison motivates the placement heuristic. Repeated tensor collectives benefit from the fastest local connections. Pipeline transfers provide a less communication-intensive way to extend the network across servers.

There is also a bubble tradeoff. With no data replication, the paper rewrites the bubble relationship as:

```
(p − 1) / m = (n / t − 1) / m
```

Here p is pipeline degree, m is microbatch count, n is GPU count, and t is tensor degree. Increasing t reduces the necessary pipeline depth for fixed n, but can make communication more expensive. Neither dimension should therefore be maximized independently.

#### Add data replicas when memory permits

The paper also examines data parallelism while holding tensor parallelism absent from the simplified analysis:

```
(p − 1) / m = (n − d) / b′
```

Here p is pipeline degree, m is microbatch count, n is GPU count, and d is data-parallel degree. In this analysis, b′ means the global batch size divided by microbatch size.

The expression shows that increasing data parallelism can reduce the bubble by shortening each pipeline. The limitation is whether the resulting larger shard still fits in a GPU’s memory.

A ring-based gradient reduction has a communication scaling factor:

```
(d − 1) / d = 1 − 1 / d
```

Here d is the data-parallel degree. This factor helps explain why adding data replicas need not increase communication in proportion to replica count, although actual time also depends on the network and implementation.

The resulting recommendation is to use sufficient model parallelism for the complete memory footprint, then use data parallelism to expand useful work across additional devices. It is a heuristic constrained by batch size and memory, instead of an unconditional rule.

#### Choose microbatches through competing effects

A larger microbatch can improve the efficiency of GPU operations. Yet at a fixed batch size it creates fewer microbatches, leaving less work over which to amortize the pipeline bubble.

The authors estimate batch processing time, excluding communication, with:

```
t_batch ≈ (b′ / b + p − 1) · (t_f(b) + t_b(b))
```

Here t_batch is estimated batch processing time, p is pipeline degree, b is microbatch size, and t_f(b) and t_b(b) give forward and backward durations at that size. In this part of the paper, b′ means the global batch divided by data-parallel degree, rather than the earlier batch-to-microbatch ratio.

The changed meaning of b′ matters when following the derivation. The expression combines the number of useful microbatch slots with startup and completion slots, then multiplies by measured or estimated execution time.

The authors use this calculation as a practical approximation. It captures why increasing microbatch size can first help and then hurt, without claiming to predict every effect of hierarchical communication.

#### Save activations or reconstruct them

Activation recomputation stores selected inputs and reruns forward operations when back-propagation needs the omitted intermediates. It exchanges additional arithmetic for a smaller memory footprint.

The checkpoint memory estimate is:

```
A_saved = c · A_input + (l / c) · A_intermediate
```

Here A_saved is the estimated stored activation footprint, c is the number of checkpoints, and l is the number of layers in the stage. A_input is the input activation size for a layer, while A_intermediate is its intermediate activation size.

The minimizing checkpoint count in this analytical expression is:

```
c = √(l · (A_intermediate / A_input))
```

Here c is checkpoint count, l is stage layer count, and the activation-size symbols retain their meanings. Based on empirical measurements of intermediate activation size, the authors find that placing checkpoints at intervals of one or two transformer layers works well in most cases they examine.

This is distinct from saving a complete training checkpoint to storage. Activation checkpoints support back-propagation within an iteration; persistent training checkpoints support saving and restoring the training state.

#### Avoid replicated transfers between servers

The transformer output at a pipeline boundary is replicated among tensor-parallel ranks. A straightforward implementation would send each identical copy to a corresponding rank in the next stage.

The scatter/gather optimization sends different pieces instead. Each rank transfers its assigned piece through its network interface, and the destination ranks reconstruct the full tensor using an all-gather over the faster local GPU interconnect.

The cross-server volume becomes:

```
C_pipe,shard = bsh / t
```

Here C_pipe,shard denotes the transferred shard size for a rank, b is microbatch size, s is sequence length, h is hidden dimension, and t is tensor-parallel degree. The optimization relies on the replicated boundary representation and the availability of efficient local reconstruction.

This design helps make interleaving useful. The schedule creates more communication boundaries, while scatter/gather reduces the expensive traffic associated with each boundary.

#### Make the local operations efficient

PTD-P extends Megatron-LM using [PyTorch](https://md.research.elamur.ai/free/en/papers/paszke-2019-pytorch-imperative-style-high-performance/) and uses NCCL for device communication. The authors also change how local calculations are expressed.

One change rearranges tensor dimensions to avoid expensive transpose operations and support suitable batched matrix multiplication kernels. Another fuses bias addition with GeLU, and combines bias addition, dropout, and residual addition. Further custom kernels join scaling, masking, and softmax.

These changes target operations that spend substantial time moving data instead of performing arithmetic. They complement distributed scheduling: keeping a GPU busy is less useful if the work assigned to it repeatedly moves intermediate values through memory unnecessarily.

#### Account for network size and training work

For the evaluated GPT architectures, the authors calculate parameter count using:

```
P = 12lh² · (1 + 13 / (12h) + (V + s) / (12lh))
```

Here P is parameter count, l is transformer layer count, h is hidden dimension, V is vocabulary size, and s is sequence length. The expression includes the dominant transformer weights and the additional terms represented by the architecture.

Their iteration FLOP estimate is:

```
F = 96Bslh² · (1 + s / (6h) + V / (16lh))
```

Here F is floating-point operations per training iteration, B is global batch size, s is sequence length, l is layer count, h is hidden dimension, and V is vocabulary size. This estimate includes activation recomputation and focuses on the principal matrix multiplications.

The appendix explains the count through matrix multiplication:

```
F_matmul = 2mkn
```

Here F_matmul is the operation count for multiplying a matrix with dimensions m by k by a matrix with dimensions k by n. The symbols m, k, and n are matrix dimensions in this equation, distinct from microbatch count and GPU count elsewhere.

The transformer’s forward work per layer is:

```
F_layer,forward = 24Bsh² + 4Bs²h
```

Here F_layer,forward denotes forward operations for one transformer layer. B, s, and h retain their batch, sequence, and hidden-dimension meanings. The terms cover projection, attention, and feed-forward matrix calculations.

Including backward calculation and recomputation gives:

```
F_layer,train = 4 · (24Bsh² + 4Bs²h)
```

Here F_layer,train is the corresponding training operation count for a layer. The factor accounts for the original forward calculation, the backward calculation, and the repeated forward work used for recomputation.

The output projection contributes:

```
F_logits = 6BshV
```

Here F_logits is the training operation count for transforming hidden representations into vocabulary logits. B, s, h, and V retain their earlier meanings.

Finally, training over a token budget requires:

```
I = T / (B · s)
```

Here I is iteration count, T is the training token budget, B is global batch size, and s is sequence length.

Under the size assumptions stated for their evaluated configurations, the authors approximate elapsed training time as:

```
t_train ≈ 8TP / (nX)
```

Here t_train is estimated training duration, T is token count, P is parameter count, n is GPU count, and X is measured end-to-end throughput per GPU. This estimate connects demonstrated iteration performance with an assumed full training workload; it does not replace a completed run.

### Experiments and results

#### What is measured

The evaluation is about computational throughput, scaling, memory feasibility, and communication. Its principal performance measure is floating-point operations per second, typically reported per GPU. Some activation-recomputation comparisons instead use sequences processed per second.

The experiments use GPT architectures chosen to fit the model-parallel resources available in each test. The largest end-to-end series spans a billion parameters through 1 trillion parameters. Those runs use a vocabulary containing 51,200 entries and sequences of length 2048. Hidden dimension, attention-head count, layer count, global batch, and GPU allocation change with scale.

The paper does not identify a named text corpus for this throughput study, present a training-data mixture, or evaluate linguistic accuracy on downstream benchmarks. It therefore establishes the efficiency of the training system under the reported workloads, rather than a new result on language-task quality.

All experiments use mixed precision on Selene. Each node contains 8 A100 GPUs with 80-GB memory, connected through NVLink and NVSwitch. Application communication uses eight 200Gbps InfiniBand interfaces per node. The cluster network has a hierarchical fat-tree arrangement, and a shared parallel filesystem supplies storage.

This environment is part of the result. The paper does not present software efficiency as independent of the surrounding hardware. Its placement, collective communication, scatter/gather transfers, and checkpoint handling are designed to exploit those resources.

#### Scaling the complete system

The end-to-end scaling evaluation enables both interleaving and scatter/gather. As the evaluated network becomes larger, the authors increase the available GPUs and batch size.

They report super-linear throughput scaling across this series, attributing it to improved GPU utilization from larger matrix multiplications without a corresponding increase in communication relative to calculation. This is a weak-scaling result: the problem being executed changes as resources increase.

The largest configuration uses 3072 GPUs across 384 nodes. It obtains 502 petaFLOP/s in aggregate and 163 teraFLOP/s per GPU for the trillion-parameter network. The authors report 52% of theoretical peak for this configuration, compared with 44% for the smallest network in the series.

The throughput includes operations outside the main matrix multiplications: data loading, optimization, communication, and logging all contribute to the measured elapsed time. The FLOP numerator, however, comes from an analytical estimate dominated by matrix multiplication. The authors describe it as a lower bound that should be close to the complete operation count.

That combination makes the reported efficiency useful but specific. It is an end-to-end timing measurement paired with an estimated computational workload, rather than a direct count of every operation performed by every kernel.

#### Estimated training durations

For the 175-billion-parameter GPT-3 architecture, the authors use a training budget of 300 billion tokens. With 1024 A100 GPUs, a global batch of 1536, and measured throughput of 140 teraFLOP/s per GPU, they estimate 34 days.

For the trillion-parameter network, the assumed training budget is 450 billion tokens. The measured throughput at 3072 GPUs yields the estimate of 84 days.

These figures answer a practical question: does the demonstrated iteration speed make the intended workload plausible? They do not show that the full token budgets were processed, that a particular loss was reached, or that the resulting networks achieved a reported language-task score.

The distinction is especially important for the trillion-parameter result. The paper demonstrates training iterations at that scale and estimates the duration of a complete run. Its conclusion about practical duration depends on sustained throughput and the chosen token budget.

#### Comparison with ZeRO-3

The main external baseline is ZeRO-3, integrated through DeepSpeed. It distributes parameters, gradients, and optimizer state among data-parallel workers and obtains required state when needed for computation.

The comparison covers the standard GPT-3 architecture with 175 billion parameters and a GPT architecture with 530 billion parameters. Global batch size is held fixed as GPU count increases within the scaling comparisons.

At the smaller GPU counts and a microbatch size of 4, PTD-P has 6% higher throughput for the 175-billion-parameter network and 24% higher throughput for the 530-billion-parameter network. At the larger compared GPU counts, the reported advantage reaches 70% for both.

The authors attribute the scaling difference to cross-server communication. PTD-P partitions the calculation so that frequent communication remains local where possible, while ZeRO-3 must exchange the sharded state needed for computation.

There is an important feasibility qualification. The 530-billion-parameter ZeRO-3 configuration did not fit on 560 GPUs with a microbatch size of 4. The authors therefore used 640 GPUs and a global batch of 2560 for the marked throughput estimate.

The baseline also excludes tensor parallelism. The authors explicitly allow that combining ZeRO-3 with model parallelism could improve its scaling. The experiment supports a comparison with this evaluated configuration, not a general claim against every combination incorporating ZeRO.

#### The measured value of local optimization

Operator fusion provides particularly clear numerical comparisons because the paper states both the original and optimized throughput. For the 175-billion-parameter GPT-3 architecture, the gain is reported as 19%.

Operator fusion for GPT-3 with 175 billion parameters, throughput per GPU Fusing adjacent operations improves throughput for the evaluated GPT-3 configuration.

**The numbers**

| System or setting | teraFLOP/s per GPU |
| --- | --- |
| Without fusion | 113 |
| With fusion (this paper) | 135 |

For the 530-billion-parameter GPT architecture, fusion produces a reported gain of 11%.

Operator fusion for GPT with 530 billion parameters, throughput per GPU Fusion also improves throughput for the larger evaluated architecture.

**The numbers**

| System or setting | teraFLOP/s per GPU |
| --- | --- |
| Without fusion | 133 |
| With fusion (this paper) | 148 |

These comparisons show that distributed placement is only one part of the result. Reducing memory traffic inside a GPU materially affects the speed of the complete training system.

#### Network and storage demands

The largest run makes substantial use of the network. For the trillion-parameter configuration, the paper reports effective bisection bandwidth of 892 GB/s for pipeline point-to-point communication and 12.9 TB/s for data-parallel all-reduces.

These are descriptions of communication achieved by the implementation in its cluster environment. They help explain why a similar software arrangement on slower inter-server links might scale differently.

Persistent checkpointing also places large demands on storage. The trillion-parameter training checkpoint occupies 13.8 terabytes. During initial loading across 384 nodes, peak read bandwidth reaches 1TB/s. Checkpoint saving reaches 40% of the filesystem’s peak write bandwidth, reported as 273 GB/s.

Those measurements broaden the meaning of a practical system. An architecture that executes training steps quickly still needs to initialize, save progress, and interact with storage at the scale of its state.

### What the ablations show

#### Pipeline depth interacts with available batch work

The pipeline weak-scaling experiment holds the tensor-parallel degree at 8 and increases pipeline depth. The evaluated GPT architecture has 128 attention heads and a hidden dimension of 20,480, with microbatch size 1.

At pipeline degree 1, the network contains 3 transformer layers and 15 billion parameters. At degree 8, it contains 24 layers and 121 billion parameters. The GPU allocation ranges from 8 to 64.

The comparison uses different batch sizes to expose the bubble cost. Larger batches supply more microbatches, so startup and draining consume less time relative to useful work. The observed scaling follows that expectation.

This analysis supports the bubble model instead of proving that arbitrary depth can be added efficiently. It shows that pipeline performance depends on the relationship between stage count and available microbatches.

#### Interleaving helps most when bubbles matter

The schedule comparison uses the 175-billion-parameter GPT-3 architecture on 96 GPUs. Its configuration has 96 transformer layers, 96 attention heads, and hidden dimension 12,288.

With scatter/gather enabled, the interleaved schedule outperforms the non-interleaved schedule. The paper’s broader account reports improvements reaching 10% with comparable memory use.

The advantage narrows as batch size grows. More microbatches already reduce the ordinary schedule’s bubble, leaving less idle time for interleaving to eliminate. Meanwhile, interleaving performs more communication per example, so its extra transfers become increasingly relevant.

Without scatter/gather, the authors state that the ordinary schedule can perform better at larger batch sizes. This is a useful qualification: the new schedule depends on making its additional communication affordable. The scheduling idea and the transfer optimization reinforce each other.

#### Tensor and pipeline parallelism solve different costs

A controlled comparison fixes the GPU budget while changing the balance between tensor and pipeline parallelism. The evaluated architecture is large enough to require substantial distribution, and the test uses 64 A100 GPUs.

The paper identifies the architecture as 161 billion parameters in its discussion, while the corresponding figure caption names 162.2 billion parameters. The qualitative finding is the same: the best balance keeps tensor parallelism within the server and uses pipeline stages to extend across servers.

Too much tensor parallelism creates expensive cross-server collectives and smaller local matrix multiplications. Too much pipeline parallelism increases startup and draining costs. The favorable configuration uses tensor degree 8, matching the GPUs within a DGX A100 node.

The authors report that unsuitable combinations can yield up to 2× lower throughput. The analysis therefore supports the combination of methods, rather than merely showing that each method can run independently.

#### Data parallelism is preferable after memory needs are met

The data-versus-pipeline and data-versus-tensor comparisons use a smaller GPT architecture so that low model-parallel degrees remain feasible. It has 5.9 billion parameters, 32 layers, 32 attention heads, and hidden dimension 3840.

These experiments use 64 GPUs and initially fix microbatch size at 1. When more of the fixed GPU budget is assigned to pipeline parallelism, throughput decreases for each examined batch size. The extra pipeline depth creates more idle time than the corresponding data-parallel arrangement.

The tensor comparison reveals a related cost. Tensor communication occurs throughout the computation, whereas data-parallel gradient aggregation occurs at the batch boundary. Increasing the tensor degree can also lower local arithmetic efficiency.

These findings motivate a practical default: use model parallelism to meet the memory constraint, then favor data replicas for additional scale. They do not remove the earlier limits on data parallelism imposed by global batch size and per-worker workload.

#### Microbatch size has an interior optimum

The microbatch experiment evaluates a GPT architecture with 91 billion parameters using tensor degree 8 and pipeline degree 8 on 64 GPUs. Its best reported microbatch size is 2.

That result differs from the earlier analytical example, where the best value is 4 for a billion-parameter architecture under the examined conditions. The difference is evidence against a universal microbatch recommendation.

The mechanism is visible in both cases. Larger microbatches improve the arithmetic efficiency of local operations, but reduce the number of microbatches available to cover the pipeline bubble. The best setting balances those effects while respecting memory.

The paper reports that microbatch selection can improve throughput by 15%. The useful lesson is to measure the competing effects for the actual architecture and parallel arrangement instead of treating microbatch size as a minor implementation detail.

#### Recomputation changes what is feasible

The activation-recomputation comparison uses a GPT architecture with 145 billion parameters on 128 A100 GPUs. It contains 80 layers, 96 attention heads, and hidden dimension 12,288, with tensor degree 8 and pipeline degree 16.

At small batch sizes, recomputation causes throughput in sequences per second to fall by up to 33%. That is the direct cost of repeating forward work.

At larger batches, memory becomes decisive. Recomputation permits batch settings that cannot otherwise fit. The best throughput at those larger feasible batches is up to 2× the best result achieved without recomputation at a smaller batch.

This comparison separates two questions that are frequently confused. Repeating work can make a fixed configuration slower, yet improve the best configuration available under a memory limit. The result supports evaluating a memory technique through the operating points it enables.

#### Scatter/gather reduces an identified redundancy

The scatter/gather comparison uses the interleaved schedule for the 175-billion-parameter architecture on 96 A100 GPUs. The reported improvement reaches 11% in communication-intensive settings.

Unlike a change that simply adds more network capacity, this optimization removes repeated transfers of identical boundary tensors. Its largest benefit occurs when the schedule places substantial pressure on cross-server communication.

Together with the fusion experiments, this analysis shows why the final throughput is a product of several coordinated choices. The pipeline schedule reduces waiting, scatter/gather limits the communication it creates, and fusion improves the efficiency of the local calculation.

### Limitations

#### Boundaries the authors explicitly identify

The authors do not automatically search the full configuration space. They offer heuristics supported by analysis and experiments. The paper therefore does not establish that its chosen settings are globally optimal for every architecture, batch, or hardware topology.

Their pipeline treatment focuses on repeated transformer blocks. They leave more asymmetric architectures to other placement methods. Equal layer counts provide a convenient partition for this workload, but that convenience does not establish balanced execution for arbitrary networks.

The communication models estimate traffic volume and explain qualitative behavior. The authors do not provide a direct predictive model for communication time across the hierarchical cluster network. Equal traffic volumes can produce different elapsed times depending on placement, contention, collective implementation, and overlap.

The chosen schedules preserve strict synchronous optimizer semantics through flushing. The paper explicitly leaves delayed and asynchronous alternatives outside its main treatment. It acknowledges that those methods may deliver higher throughput while introducing possible consequences for convergence or final accuracy.

The ZeRO-3 comparison is also deliberately limited. It evaluates ZeRO-3 without tensor parallelism, and the authors state that adding model parallelism could improve its behavior. The reported advantage should retain that qualification.

#### Limits visible in the experimental design

The largest scaling result changes architecture size, batch size, and resource count together. It demonstrates that progressively larger workloads can use a larger cluster efficiently. It does not show that a fixed network and fixed batch would preserve the same scaling behavior across the entire GPU range.

The full training durations are estimates. In particular, the trillion-parameter estimate assumes 450 billion tokens and sustained measured throughput. The paper does not demonstrate a complete training trajectory over that budget or establish that the budget is sufficient for a particular quality target.

No downstream language benchmarks accompany the systems evaluation. Preserving synchronous optimizer behavior is valuable, but it is not an empirical comparison of final language quality. The paper’s main evidence concerns execution performance, not whether a particular trained network is better at answering questions, generating text, or transferring to another task.

The hardware setting is unusually important to interpretation. The system uses fast A100 GPUs, high-bandwidth connections within servers, substantial networking between servers, and high-performance shared storage. The authors argue that some principles apply to other accelerators, but the numerical results are not measurements on those alternatives.

The FLOP estimate also has a defined boundary. It emphasizes major matrix multiplications and is described as a lower bound. Throughput expressed with that count should be interpreted using the same convention, especially when comparing systems that might count recomputation or other operations differently.

#### Costs that remain outside the headline result

The paper’s throughput measurements do not establish energy efficiency, financial cost, or the reliability of a long production run. Its storage measurements show that checkpointing is feasible on the evaluated filesystem, but they do not quantify the full effect of interruptions and recovery over an entire training campaign.

Interleaving is not a universal improvement. Its extra communication can outweigh its smaller bubble, particularly when large batches already keep an ordinary pipeline busy. Similarly, activation recomputation can be a poor choice at a fixed configuration that already fits in memory.

The broader limit is that the recommendations are relationships among costs, not permanent settings. Keeping tensor collectives local works because of the evaluated hardware hierarchy. Choosing more data parallelism works while memory and batch constraints permit it. The paper is strongest when read as a measured explanation of those relationships.

### What came after

The later citation record places this work in several lines of research: large training projects, automated distribution, memory optimization, inference systems, and surveys. A citation establishes a connection in the literature, but it does not by itself show which component was adopted. Where a later title identifies a concrete continuation, that continuation can be described; more specific implementation claims would require evidence from the later study.

#### Large training projects

[Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B](https://md.research.elamur.ai/free/en/papers/smith-2022-using-deepspeed-megatron-train-megatron/) is the clearest continuation named in the later works. Its title explicitly places DeepSpeed and Megatron together in a large training project. That makes it relevant to this paper’s distinction between evaluating one sharding baseline and combining complementary systems techniques. The citation information does not establish that every PTD-P setting or schedule was carried over.

[PaLM](https://md.research.elamur.ai/free/en/papers/chowdhery-2022-palm-scaling-language-modeling-pathways/) also cites the paper and addresses scaling language training through Pathways. [The Llama 3 Herd](https://md.research.elamur.ai/free/en/papers/grattafiori-2024-llama-3-herd-models/) belongs to the later citation record as well. These connections show the paper’s relevance to subsequent large training efforts, but they do not justify attributing a particular parallel layout, throughput result, or pipeline schedule to those projects.

[MegaScale](https://md.research.elamur.ai/free/en/papers/jiang-2024-megascale-scaling-large-language-model/) makes the scale question explicit in its title: training extends to more than 10,000 GPUs. Its subject continues the concern that simply adding devices is insufficient without controlling communication and execution overhead. The available citation information supports that shared problem, while leaving the later system’s particular mechanisms and measured advantages unspecified.

#### Automation and memory

[Alpa](https://md.research.elamur.ai/free/en/papers/zheng-2022-alpa-automating-inter-intra-operator/) addresses automatic inter-operator and intra-operator parallelism. This is a natural neighboring direction because PTD-P supplies heuristics rather than an automatic search across all relevant choices. The relationship is a shared partitioning problem: deciding which operations should run together and which should be divided internally. The title does not establish that Alpa reproduces PTD-P’s placement rules.

[Reducing Activation Recomputation](https://md.research.elamur.ai/free/en/papers/korthikanti-2022-reducing-activation-recomputation-large-transformer/) follows a memory issue that PTD-P makes central. Its stated motivation is that saved activations occupy substantial GPU memory when training very large transformers. PTD-P shows why recomputation can unlock better batch settings; the later work’s named focus is reducing that recomputation burden. The citation information does not supply a numerical comparison or enough detail to describe its exact method.

[Sequence Parallelism](https://md.research.elamur.ai/free/en/papers/li-2023-sequence-parallelism-long-sequence-training/) identifies long-sequence training as another systems problem. It extends the surrounding research agenda beyond the particular parameter and pipeline partitions emphasized here. The relevant continuity is the search for additional ways to distribute a workload when memory and communication constrain execution, rather than an established reuse of the interleaved schedule.

#### Inference and serving

[FlexGen](https://md.research.elamur.ai/free/en/papers/sheng-2023-flexgen-high-throughput-generative-inference/) studies high-throughput generative inference with a single GPU. Its setting differs sharply from the large synchronous training cluster evaluated here. Its presence among the citations shows that the paper is also relevant to a broader efficiency literature, where placement and limited device resources remain important even though gradients and training-batch flushes are absent from the stated task.

[AlpaServe](https://md.research.elamur.ai/free/en/papers/li-2023-alpaserve-statistical-multiplexing-model-parallelism/) explicitly connects model parallelism with statistical multiplexing for serving. That shifts attention from repeated synchronized training iterations to serving workloads. The title establishes that model distribution remains part of the problem, but it does not establish that PTD-P’s particular schedule transfers unchanged.

[Llumnix](https://md.research.elamur.ai/free/en/papers/sun-2024-llumnix-dynamic-scheduling-large-language/) likewise names dynamic scheduling for serving as its subject. The connection worth retaining is the importance of coordinating placement and execution. Training and serving have different dependencies and objectives, so the citation should not be read as evidence that a training pipeline is directly reused.

#### Broader accounts of the field

[A Survey of Large Language Models](https://md.research.elamur.ai/free/en/papers/zhao-2023-survey-large-language-models/) identifies a gap between earlier reviews of pretrained language systems and the need for a dedicated account of large language systems. PTD-P contributes a concrete systems result to that broader subject: it explains how a large parameter count can be supported by an efficient execution arrangement.

[Efficient Large Language Models: A Survey](https://md.research.elamur.ai/free/en/papers/wan-2023-efficient-large-language-models-survey/) places the work within a wider efficiency discussion. That is an appropriate setting for its most reusable contribution: an account of how memory, communication, arithmetic efficiency, and scheduling interact. The citation record supports its role in that discussion without establishing which recommendations the survey endorses.

Across these later connections, the enduring contribution is the problem formulation demonstrated by the experiments. Large-scale execution depends on coordinating several forms of parallel work with the hardware that carries their communication. PTD-P provides a concrete, measured example of that coordination, while its analyses explain why later systems must revisit the balance as workloads and resources change.

## Cite

Cite as Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley, Mostofa Patwary, Vijay Anand Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee and Matei Zaharia. 2021. Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM. arXiv:2104.04473.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2104.04473](https://doi.org/10.48550/arxiv.2104.04473) · [arXiv 2104.04473](https://arxiv.org/abs/2104.04473)

```bibtex
@misc{narayanan2021efficient,
  title = {{Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LM}},
  author = {Deepak Narayanan, Mohammad Shoeybi, Jared Casper, Patrick LeGresley, Mostofa Patwary, Vijay Anand Korthikanti, Dmitri Vainbrand, Prethvi Kashinkunti, Julie Bernauer, Bryan Catanzaro, Amar Phanishayee and Matei Zaharia},
  year = {2021},
  doi = {10.48550/arxiv.2104.04473},
  eprint = {2104.04473},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2104.04473}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
