SCAPE: Accurate and Efficient LLM Training with Extreme Sparse Communication

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering · Depth: Expert, quick

Summary

SCAPE is a new communication-efficient distributed optimizer designed for Large Language Model (LLM) pre-training, directly addressing the increasing communication costs in data-parallel and sharded schemes. Unlike prior methods, SCAPE leverages AdamS's first-moment stability for aggressive sparsification, enabling 90% and 99% sparsity without compromising LLM quality. It partitions mask generation across workers, delays mask usage for computation overlap, and reconstructs second-moment updates from a single sparse buffer. Evaluated on GPT-345M and Llama-500M using 32 NVIDIA GH200 GPUs, SCAPE reduced Llama-500M pre-training wall-clock time by up to 43.3% and achieved up to 3.26x speedup per step for Llama-1.8B, maintaining model quality.

Key takeaway

For MLOps Engineers optimizing large-scale LLM pre-training, SCAPE offers a significant solution to communication bottlenecks. By enabling up to 99% communication sparsity with AdamS, it reduces wall-clock time by up to 43.3% for Llama-500M and achieves 3.26x speedup for Llama-1.8B without sacrificing model quality. Consider integrating SCAPE into your distributed training frameworks like Megatron-LM to realize substantial efficiency gains.

Key insights

SCAPE enables aggressive LLM training sparsification by leveraging AdamS's first-moment for stability and efficiency.

Principles

Method

SCAPE derives masks from first-moment statistics, partitions generation across workers, delays mask usage by one step, and reconstructs second-moment updates from a single sparse buffer.

In practice

Topics

Best for: NLP Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.