---
title: "The Technology Behind BLOOM Training"
description: "BLOOM, a 176B-parameter multilingual GPT-3-style model, was trained over 3.5 months on 384 A100 80GB GPUs on the Jean Zay supercomputer using Megatron-DeepSpeed's 3D parallelism."
url: "https://swe.quest/articles/the-technology-behind-bloom-training-8acc1cff08e9a54f"
canonical: "https://huggingface.co/blog/bloom-megatron-deepspeed"
source: "Hugging Face"
published: "2022-07-14"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 25
tags: ["model-training","llms","distributed-systems","hardware"]
---

# The Technology Behind BLOOM Training

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2022-07-14, 25 min read, Deep dive. Original: [https://huggingface.co/blog/bloom-megatron-deepspeed](https://huggingface.co/blog/bloom-megatron-deepspeed)

## Summary

BLOOM, a 176B-parameter multilingual GPT-3-style model, was trained over 3.5 months on 384 A100 80GB GPUs on the Jean Zay supercomputer using Megatron-DeepSpeed's 3D parallelism. ZeRO data parallelism shards parameters, gradients and optimizer states across GPUs. Megatron-LM tensor parallelism splits GEMMs column-wise then row-wise, needing two all-reduces per layer, so it should stay within a single node's fast interconnect. Pipeline parallelism uses micro-batches (chunks/GAS) to shrink the idle bubble, with global batch size computed as mbs\*chunks\*dp\_degree. Hardware, checkpoint sizes (2.3TB full, 329GB bf16 weights) and dataset details are also covered.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Distributed systems](https://swe.quest/tags/distributed-systems.md) (Distributed systems)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)

## Prerequisites

- Transformer architecture ([easy posts on System design](https://swe.quest/tags/system-design.md?difficulty=easy))
- PyTorch distributed training ([easy posts on Model training](https://swe.quest/tags/model-training.md?difficulty=easy))
- GPU memory basics ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))

## Keywords

BLOOM, Megatron-DeepSpeed, DeepSpeed, Megatron-LM, ZeRO, Jean Zay, NVIDIA A100, PyTorch

## Related posts

- [Incredibly Fast BLOOM Inference with DeepSpeed and Accelerate](https://swe.quest/articles/incredibly-fast-bloom-inference-with-deepspeed-and-accelerate-7d1957ba474cbad5.md): Hugging Face · 2022-09-16 · Hard · 9 min read · Inference & serving, LLMs, Performance engineering, Hardware
  Running the 176B-parameter BLOOM model (352GB in bf16) for inference is benchmarked across HuggingFace Accelerate, DeepSpeed-Inference and DeepSpeed ZeRO-Inference on an 8x80GB A100 node, with 8-bit quantized variants via BitsAndBytes and DeepSpeed.
- [Optimization story: Bloom inference](https://swe.quest/articles/optimization-story-bloom-inference-d6344942eb1d22f2.md): Hugging Face · 2022-10-12 · Hard · 22 min read · Inference & serving, LLMs, Performance engineering, Python
  Hugging Face's BLOOM (176B parameters, 352GB in bf16) inference server reached 5x lower latency and 50x higher throughput over several weeks, starting from 0.3 req/s and 350ms/token on 16xA100 40GB with pipeline parallelism via Accelerate's device\_map="auto".
- [Fast Inference on Large Language Models: BLOOMZ on Habana Gaudi2 Accelerator](https://swe.quest/articles/fast-inference-on-large-language-models-bloomz-on-habana-gaudi2-accelerator-b18b18c9b1b881f4.md): Hugging Face · 2023-03-28 · Medium · 8 min read · Inference & serving, LLMs, Hardware, Performance engineering
  BLOOMZ (176B parameters, 352 GB in 16-bit) runs inference on a single 8-HPU Habana Gaudi2 server using Optimum Habana with Habana's DeepSpeed-inference fork, HPU graphs and a KV cache.
- [Ulysses Sequence Parallelism: Training with Million-Token Contexts](https://swe.quest/articles/ulysses-sequence-parallelism-training-with-million-token-contexts-a21775c0b516e85a.md): Hugging Face · 2026-03-09 · Hard · 13 min read · Model training, LLMs, Distributed systems, Hardware
  Ulysses Sequence Parallelism, part of Snowflake's Arctic Long Sequence Training protocol, enables training on contexts of hundreds of thousands to millions of tokens.
- [How Meta trains large language models at scale](https://swe.quest/articles/how-meta-trains-large-language-models-at-scale-c827e36c67bd0ee6.md): Meta Engineering · 2024-06-12 · Easy · 6 min read · Model training, Networking, Hardware, Datacenters, Distributed systems
  Training LLMs at Meta shifted workloads from many small recommendation jobs to a few enormous GPU jobs, forcing changes across hardware, data center layout, reliability, networking and storage.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
