Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Latest commit

 

History

History
14 lines (11 loc) · 791 Bytes

File metadata and controls

14 lines (11 loc) · 791 Bytes

LightSeq for Fairseq+DeepSpeed

This repo contains an example for how to use LightSeq to accerate the training of translation task in Fairseq, together with DeepSpeed for distributed strategies and optimizers. We provide a new trainer for translation task to connect Fairseq and DeepSpeed.

First you should install these requirements.

pip install torch ninja fairseq deepspeed

Then you can train a translation task on wmt14 en2de dataset by running the following script:

sh examples/training/deepspeed/ds_fairseq_wmt14en2de.sh

This script firstly download the dataset, and then run native Fairseq training script using DeepSpeed launcher without any other parameter modifications.