You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2021/01/28 03:06:00 UTC

[GitHub] [incubator-mxnet] yangshuo0323 opened a new issue #19800: Have problom in BERT pre-training: how to training on multiple GPUs

yangshuo0323 opened a new issue #19800:
URL: https://github.com/apache/incubator-mxnet/issues/19800


   ## Description
   - I want to train BERT model on GPU, but have some problems. My configuration:
     * Software environment: Python: 3.7.7,  Cuda: 10.2
     * Install MXNet: `pip install mxnet-cu102`
     * Download Model script:  `https://github.com/dmlc/gluon-nlp`.
   - Run script `gluon-nlp/scripts/bert/run_pretraining.py`:
     * Reference the instruction: `https://nlp.gluon.ai/model_zoo/bert/index.html#bert-model-zoo`
     ```
       $  mpirun -np 8 -H localhost:8 -mca pml ob1 -mca btl ^openib \
            -mca btl_tcp_if_exclude docker0,lo --map-by ppr:4:socket \
            --mca plm_rsh_agent 'ssh -q -o StrictHostKeyChecking=no' \
            -x NCCL_MIN_NRINGS=8 -x NCCL_DEBUG=INFO -x HOROVOD_HIERARCHICAL_ALLREDUCE=1 \
            -x MXNET_SAFE_ACCUMULATION=1 --tag-output \
       python run_pretraining.py --verbose --model="bert_12_768_12" --warmup_ratio=1 --comm_backend="horovod" \
   		--accumulate=1 --max_seq_length=128 --raw --max_predictions_per_seq=20 --log_interval=1 --ckpt_interval=1000 \
   		--no_compute_acc --data=/home/yangshuo/mxnet/Dataset/pre-train-datasets/enwiki-feb-doc-split/*.train \
   		--num_steps=1000 --total_batch_size=128 --dtype="float16"
     ```
   - Result error: 
     
   ![image](https://user-images.githubusercontent.com/76250793/106083385-633e2c00-6157-11eb-9059-da6a0092570c.png)
   
   ## Seek help:
     Can I have correct instruction or suggestion ? thanks.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] szha closed issue #19800: Have problom in BERT pre-training: how to training on multiple GPUs

Posted by GitBox <gi...@apache.org>.
szha closed issue #19800:
URL: https://github.com/apache/incubator-mxnet/issues/19800


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] szha commented on issue #19800: Have problom in BERT pre-training: how to training on multiple GPUs

Posted by GitBox <gi...@apache.org>.
szha commented on issue #19800:
URL: https://github.com/apache/incubator-mxnet/issues/19800#issuecomment-770466886


   This issue is being handled in https://github.com/dmlc/gluon-nlp/issues/1508


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org


[GitHub] [incubator-mxnet] github-actions[bot] commented on issue #19800: Have problom in BERT pre-training: how to training on multiple GPUs

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #19800:
URL: https://github.com/apache/incubator-mxnet/issues/19800#issuecomment-768765808


   Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue.
   Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly.
   If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on [contributing to MXNet](https://mxnet.apache.org/community/contribute) and our [development guides wiki](https://cwiki.apache.org/confluence/display/MXNET/Developments).


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org