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:

## 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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]