OpenDiLoCo: An Open-Source Framework for Globally Distributed Low-Communication Training

Sami Jaghouar, Jack Min Ong, Johannes Hagemann
7/10/2024
cs.LGcs.DC

No official code found. Best implementation: PrimeIntellect-ai/OpenDiloco (586 stars, Apache-2.0, last commit 2025-01-13).

Abstract

OpenDiLoCo is an open-source implementation and replication of the Distributed Low-Communication (DiLoCo) training method for large language models. We provide a reproducible implementation of the DiLoCo experiments, offering it within a scalable, decentralized training framework using the Hivemind library. We demonstrate its effectiveness by training a model across two continents and three countries, while maintaining 90-95% compute utilization. Additionally, we conduct ablations studies focusing on the algorithm's compute efficiency, scalability in the number of workers and show that its gradients can be all-reduced using FP16 without any performance degradation. Furthermore, we scale OpenDiLoCo to 3x the size of the original work, demonstrating its effectiveness for billion parameter models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

OpenDiLoCo: An Open-Source Framework for Globally Distributed Low-Communication Training

58651Shell, PythonJul 10, 20241 years agoApache-2.0

Cite this paper

@article{jaghouar2024opendiloco,
  title  = {OpenDiLoCo: An Open-Source Framework for Globally Distributed Low-Communication Training},
  author = {Sami Jaghouar and Jack Min Ong and Johannes Hagemann},
  year   = {2024},
  eprint = {2407.07852},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.07852v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.07852.svg)](https://codeofpaper.com/paper/2407.07852)

Discussion