mlsanityData to 7 Oct 2026

100K or 100 Days: Trade-offs when Pre-Training with Academic Resources

arXiv 2410.23261 ↗First posted 30 Oct 2024cs.CL cs.LGcited by 6

Not on the map. Why?

Abstract (arXiv)

Pre-training is notoriously compute-intensive and academic researchers are notoriously under-resourced. It is, therefore, commonly assumed that academics can't pre-train models. In this paper, we seek to clarify this assumption. We first survey academic researchers to learn about their available compute and then empirically measure the time to replicate models on such resources. We introduce a benchmark to measure the time to pre-train models on given GPUs and also identify ideal settings for maximizing training speed. We run our benchmark on a range of models and academic GPUs, spending 2,000 GPU-hours on our experiments. Our results reveal a brighter picture for academic pre-training: for example, although Pythia-1B was originally trained on 64 GPUs for 3 days, we find it is also possible to replicate this model (with the same hyper-parameters) in 3x fewer GPU-days: i.e. on 4 GPUs in 18 days. We conclude with a cost-benefit analysis to help clarify the trade-offs between price and pre-training time. We believe our benchmark will help academic researchers conduct experiments that require training larger models on more data. We fully release our codebase at: https://github.com/apoorvkh/academic-pretraining.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 40 of its 69 references that are in the map. First posted on arXiv 30 Oct 2024.

Builds on

40 of 69 references.

References · 40

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  4. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2022A ConvNet for the 2020scited by 3,545
  9. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  10. 2019Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelismcited by 1,829
  11. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  12. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,278
28 more
  1. 2017Mixed Precision Trainingcited by 1,135
  2. 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
  3. 2023PyTorch FSDP: Experiences on Scaling Fully Sharded Data Parallelcited by 641
  4. 2021Efficient Large-Scale Language Model Training on GPU Clusters Using Megatron-LMcited by 621
  5. 2024OLMo: Accelerating the Science of Language Modelscited by 599
  6. 20218-bit Optimizers via Block-wise Quantizationcited by 395
  7. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 339
  8. 2023ReLoRA: High-Rank Training Through Low-Rank Updatescited by 200
  9. 2018Mesh-TensorFlow: Deep Learning for Supercomputerscited by 168
  10. 2024Liger Kernel: Efficient Triton Kernels for LLM Trainingcited by 123
  11. 2021The Efficiency Misnomercited by 98
  12. 2023Image Captioners Are Scalable Vision Learners Toocited by 89
  13. 2022Cramming: Training a Language Model on a Single GPU in One Daycited by 81
  14. 2021How to Train BERT with an Academic Budgetcited by 80
  15. 20211-bit Adam: Communication Efficient Large-Scale Training with Adam's Convergence Speedcited by 74
  16. 2022Stop Wasting My Time! Saving Days of ImageNet and BERT Training with Latest Weight Averagingcited by 54
  17. 2023Memory Efficient Optimizers with 4-bit Statescited by 54
  18. 2023ASTRA-sim2.0: Modeling Hierarchical Networks and Disaggregated Systems for Large-model Training at Scalecited by 47
  19. 2023No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Modelscited by 41
  20. 2023CAME: Confidence-guided Adaptive Memory Efficient Optimizationcited by 34
  21. 2023MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretrainingcited by 33
  22. 2024Stretching Each Dollar: Diffusion Training from Scratch on a Micro-Budgetcited by 30
  23. 20211-bit LAMB: Communication Efficient Large-Scale Large-Batch Training with LAMB's Convergence Speedcited by 24
  24. 2023Proteus: Simulating the Performance of Distributed DNN Trainingcited by 9
  25. 2023Efficient Parallelization Layouts for Large-Scale Distributed Model Trainingcited by 8
  26. 2023DistSim: A performance model of large-scale hybrid distributed DNN trainingcited by 7
  27. 2023nanoT5: A PyTorch Framework for Pre-training and Fine-tuning T5-style Models with Limited Resourcescited by 7
  28. 2023Surveying (Dis)Parities and Concerns of Compute Hungry NLP Researchcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 4; 2026: 2.

6 papers.