Training Transformers Together

Alexander Borzunov, Max Ryabinin, Tim Dettmers, Quentin Lhoest, Lucile Saulnier +3 more
7/7/2022
cs.LGcs.DC

No official code found. Best implementation: learning-at-home/hivemind (2,492 stars, MIT, PyTorch, last commit 2026-01-11).

Abstract

The infrastructure necessary for training state-of-the-art models is becoming overly expensive, which makes training such models affordable only to large corporations and institutions. Recent work proposes several methods for training such models collaboratively, i.e., by pooling together hardware from many independent parties and training a shared model over the Internet. In this demonstration, we collaboratively trained a text-to-image transformer similar to OpenAI DALL-E. We invited the viewers to join the ongoing training run, showing them instructions on how to contribute using the available hardware. We explained how to address the engineering challenges associated with such a training run (slow communication, limited memory, uneven performance between devices, and security concerns) and discussed how the viewers can set up collaborative training runs themselves. Finally, we show that the resulting model generates images of reasonable quality on a number of prompts.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Decentralized deep learning in PyTorch. Built to train models on thousands of volunteers across the world.

2,492232Python, DockerfileFeb 27, 20209 months agoMIT
asynchronous-programmingasynciodeep-learningdhtdistributed-systems+7 more

Cite this paper

@article{borzunov2022training,
  title  = {Training Transformers Together},
  author = {Alexander Borzunov and Max Ryabinin and Tim Dettmers and Quentin Lhoest and Lucile Saulnier and Michael Diskin and Yacine Jernite and Thomas Wolf},
  year   = {2022},
  eprint = {2207.03481},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.03481v1}
}

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/2207.03481.svg)](https://codeofpaper.com/paper/2207.03481)

Discussion