Papers › GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism

GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism

16 Nov 2018NeurIPS 2019 12arXiv:1811.06965archive 2025-07-28

Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Mia Xu Chen, Dehao Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V. Le, Yonghui Wu, Zhifeng Chen

Scaling up deep neural network capacity has been known as an effective approach to improving model quality for several different machine learning tasks. In many cases, increasing model capacity beyond the memory limit of a single accelerator has required developing special algorithms or infrastructure. These solutions are often architecture-specific and do not transfer to other tasks. To address the need for efficient and task-independent model parallelism, we introduce GPipe, a pipeline parallelism library that allows scaling any network that can be expressed as a sequence of layers. By pipelining different sub-sequences of layers on separate accelerators, GPipe provides the flexibility of scaling a variety of different networks to gigantic sizes efficiently. Moreover, GPipe utilizes a novel batch-splitting pipelining algorithm, resulting in almost linear speedup when a model is partitioned across multiple accelerators. We demonstrate the advantages of GPipe by training large-scale neural networks on two different tasks with distinct network architectures: (i) Image Classification: We train a 557-million-parameter AmoebaNet model and attain a top-1 accuracy of 84.4% on ImageNet-2012, (ii) Multilingual Neural Machine Translation: We train a single 6-billion-parameter, 128-layer Transformer model on a corpus spanning over 100 languages and achieve better quality than all bilingual models.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1811.06965")

Code

Syntology Ran 1 of 25 code samples harvested from 3 repositories linked to this paper; 24 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: community (archive-listed): 25 samples from 3 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

13 repositories listed; official and paper-mentioned ones first.

KakaoBrain/torchgpipe mentioned on GitHubpytorchBSD-3-Clause report
alondj/Pytorch-Gpipe mentioned on GitHubpytorch report
northeastsquare/effficientnet mentioned on GitHubtf report
pikkaay/efficientnet_gpu mentioned on GitHubtf report
pytorch/pippy mentioned on GitHubpytorchBSD-3-Clause report
pytorch/tau mentioned on GitHubpytorchBSD-3-Clause report
qubvel/efficientnet mentioned on GitHubtfApache-2.0 report
shijianjian/efficientnet-pytorch-3d mentioned on GitHubpytorch report
xslidi/EfficientNets_ddl_apex mentioned on GitHubpytorch report
yakhyo/EfficientNet-PyTorch mentioned on GitHubpytorch report
tensorflow/lingvo tfApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

25 samples harvested; 1 ran; 0 honoured the contract we drafted; 24 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
24unverified

Licence: 16 of the 25 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

alexnet alondj/Pytorch-Gpipe/sample_models/AlexNet.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · effafd8df78cdde1 · report
create_empty_tensors pytorch/pippy/pippy/ManualPipelineStage.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · d621b81113bea659 · report
create_metadata_tensor pytorch/pippy/pippy/ManualPipelineStage.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · e442618c006c37cc · report
current_stream KakaoBrain/torchgpipe/torchgpipe/stream.py community (archive-listed) unverified BSD-3-Clause (permissive) · fb9bebfe8fecba77 · report
default_stream KakaoBrain/torchgpipe/torchgpipe/stream.py community (archive-listed) unverified BSD-3-Clause (permissive) · 3fb6eb077f80eb2a · report
extract_metadata_from_tensor pytorch/pippy/pippy/ManualPipelineStage.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · b7a600ae5e37c3a3 · report
flatten_args pytorch/pippy/pippy/_utils.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 3c8d01128ba249ca · report
flatten_args_detach pytorch/pippy/pippy/_utils.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 1a1924af4440b5fa · report
friendly_debug_info pytorch/pippy/pippy/_debug.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · b6bb1b97b00ed3b6 · report
gather KakaoBrain/torchgpipe/torchgpipe/microbatch.py community (archive-listed) unverified BSD-3-Clause (permissive) · 9463c0f5ec4c4938 · report
join KakaoBrain/torchgpipe/torchgpipe/dependency.py community (archive-listed) unverified BSD-3-Clause (permissive) · 2b584480479935de · report
load_checkpoint pytorch/pippy/pippy/utilities/hf_checkpoint.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 39f707712b771120 · report
map_debug_info pytorch/pippy/pippy/_debug.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 48f84aab14bf05d7 · report
merge_chunks pytorch/pippy/pippy/microbatch.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 6208a5903d876734 · report
new_stream KakaoBrain/torchgpipe/torchgpipe/stream.py community (archive-listed) unverified BSD-3-Clause (permissive) · 17512f8707f8aff6 · report
recommend_auto_balance KakaoBrain/torchgpipe/torchgpipe/gpipe.py community (archive-listed) unverified BSD-3-Clause (permissive) · 2b37d8e52033937a · report
scatter KakaoBrain/torchgpipe/torchgpipe/microbatch.py community (archive-listed) unverified BSD-3-Clause (permissive) · e6e8680c8e3f7cca · report
solve KakaoBrain/torchgpipe/torchgpipe/balance/blockpartition.py community (archive-listed) unverified BSD-3-Clause (permissive) · d97c0eee80161ec7 · report
sorted_batch_isend_irecv pytorch/pippy/pippy/PipelineSchedule.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 0c9bc9a454f61b83 · report
split_args_kwargs_into_chunks pytorch/pippy/pippy/microbatch.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · a73bf81e7ff6e480 · report
split_by_graph_with_num_stages pytorch/pippy/pippy/graphsplit.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · 72a75759840f524d · report
split_into_equal_size pytorch/pippy/pippy/ModelSplit.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · a98a94de4f9b99a5 · report
split_module KakaoBrain/torchgpipe/torchgpipe/gpipe.py community (archive-listed) unverified BSD-3-Clause (permissive) · c04cd81ea49efab8 · report
split_on_size_threshold pytorch/pippy/pippy/ModelSplit.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · d7cd2aa574b58d09 · report
stage_backward pytorch/pippy/pippy/_backward.py community (archive-listed) unverified BSD-3-Clause recorded; this copy not marked cleared · pointer only · ff4ccc02c28908ec · report

Tasks

Fine-Grained Image ClassificationImage ClassificationMachine TranslationTranslationimage-classification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Fine-Grained Image Classification Birdsnap GPIPE Accuracy 83.6% #4 of 5 Archive leaderboard report
Fine-Grained Image Classification Stanford Cars GPipe Accuracy 94.6% #37 of 83 Archive leaderboard report
Image Classification CIFAR-10 GPIPE + transfer learning Percentage correct 99 #21 of 265 Archive leaderboard report
Image Classification CIFAR-100 GPIPE Percentage correct 91.3 #20 of 211 Archive leaderboard report
Image Classification ImageNet GPIPE Top 1 Accuracy 84.4% #316 of 1060 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: GPipe

Absolute Position EncodingsAdamAmoebaNetAttentionAverage PoolingBPEConvolutionDense ConnectionsDropoutGPipeLabel SmoothingLayer NormalizationLinear LayerMax PoolingMulti-Head AttentionPosition-Wise Feed-Forward LayerReLUResidual ConnectionSoftmaxSpatially Separable ConvolutionTransformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections