fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

programs hangs in distributed_utils.all_gather_list

Open hxbai opened this issue 7 years ago • 4 comments

I reported this issue here https://github.com/pytorch/pytorch/issues/20355#issuecomment-502937376

hxbai avatar Jun 18 '19 07:06 hxbai

Can you share more details about what you ran, hardware configuration, etc.? Hangs like that are typically caused by one of the workers dying during training. For example, this can happen if one of them runs out of GPU or system memory.

myleott avatar Jun 23 '19 14:06 myleott

@hxbai?

huihuifan avatar Jul 16 '19 09:07 huihuifan

python3 train.py data_path
--fp16
--max-tokens 5000
--task semisupervised_translation
--lang-pairs en-fr,fr-en
--decoder-langtok
--lambda-parallel-config 0
--lambda-denoising-config '0:1,100000:0.1,300000:0'
--lambda-otf-bt-config 1
--arch multilingual_transformer
--share-encoder-embeddings --share-decoder-embeddings --share-encoders --share-decoders
--encoder-embed-path embed_path
--share-all-embeddings
--encoder-embed-dim 1024 --encoder-ffn-embed-dim 4096 --encoder-layers 6 --encoder-attention-heads 16
--decoder-embed-dim 1024 --decoder-ffn-embed-dim 4096 --decoder-layers 6 --decoder-attention-heads 16
--dropout 0.1 --attention-dropout 0.1
--optimizer adam --adam-betas '(0.9,0.98)'
--lr 0.0001 --lr-scheduler inverse_sqrt --min-lr '1e-09' --warmup-updates 4000 --warmup-init-lr '1e-07'
--label-smoothing 0.1 --criterion label_smoothed_cross_entropy --weight-decay 0.0001
--save-interval-updates 10 --keep-interval-updates 8 --keep-last-epochs 8
--save-dir save_path
--log-format json --log-interval 1
--ddp-backend no_c10d

this is what I ran. I ran it on 1 node with 8 V100 gpus. I'm sure it is not because of gpu or system memory, since I try to reduce the batch size and it still hangs. The error message please refer to my link above. I think it is a bug from torch.distributed.all_reduce

hxbai avatar Jul 16 '19 09:07 hxbai

Closing due to inactivity. Please open a new issue if you are still having problems.

lematt1991 avatar Dec 16 '19 21:12 lematt1991