Training Ultra Long Context Language Model with Fully Pipelined Distributed Transformer
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) with long context capabilities are integral to complex tasks in natural language processing and computational biology, such as text generation and protein sequence analysis. However, training LLMs directly on extremely long contexts demands considerable GPU resources and increased memory, leading to higher costs and greater complexity. Alternative approaches that introduce long context capabilities via downstream finetuning or adaptations impose significant design limitations. In this paper, we propose Fully Pipelined Distributed Transformer (FPDT) for efficiently training long-context LLMs with extreme hardware efficiency. For GPT and Llama models, we achieve a 16x increase in sequence length that can be trained on the same hardware compared to current state-of-the-art solutions. With our dedicated sequence chunk pipeline design, we can now train 8B LLM with 2 million sequence length on only 4 GPUs, while also maintaining over 55% of MFU. Our proposed FPDT is agnostic to existing training techniques and is proven to work efficiently across different LLM models.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 31 of its 41 references that are in the map. First posted on arXiv 30 Aug 2024.
Builds on
31 of 41 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
19 more
- 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 468
- 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
- 2023ClimaX: A foundation model for weather and climatecited by 325
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2022Reducing Activation Recomputation in Large Transformer Modelscited by 300
- 2023FinGPT: Open-Source Financial Large Language Modelscited by 244
- 2023DeepSpeed Ulysses: System Optimizations for Enabling Training of Extreme Long Sequence Transformer Modelscited by 239
- 2023Large Language Models in Finance: A Surveycited by 223
- 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
- 2018Online normalizer calculation for softmaxcited by 154
- 2021Self-attention Does Not Need O(n2) Memorycited by 152
- 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
- 2022Clinical-Longformer and Clinical-BigBird: Transformers for long clinical sequencescited by 67
- 2023Bloated Disclosures: Can ChatGPT Help Investors Process Information?cited by 9
- 2024Mini-Sequence Transformer: Optimizing Intermediate Memory for Long Sequences Trainingcited by 6
- 2024MEMO: Fine-grained Tensor Management For Ultra-long Context LLM Trainingcited by 5
- 2023From Transcripts to Insights: Uncovering Corporate Risks Using Generative AIcited by 3
Built on by
Citing papers per year: 2025: 3; 2026: 3.
6 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2025Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scalecited by 12
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agentscited by 4
- 2025CLM: Removing the GPU Memory Barrier for 3D Gaussian Splattingcited by 3
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunkingcited by 0
- 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Trainingcited by 0
- 2026BASP: Communication-Efficient Batch-Aware Sequence Parallelism for LLM Training2 Sep 2026
- 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agents19 May 2026
- 2026Untied Ulysses: Memory-Efficient Context Parallelism via Headwise Chunking24 Feb 2026
- 2025CLM: Removing the GPU Memory Barrier for 3D Gaussian Splatting7 Nov 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025Systems and Algorithms for Convolutional Multi-Hybrid Language Models at Scale25 Feb 2025