Git Product home page Git Product logo

Comments (2)

tczhangzhi avatar tczhangzhi commented on August 23, 2024

As far as I know, data migration generally does not take long. But if you use a lot of GPUs, nvlink is effective. In the demos, my GPU usage was maintained at 100%. Please check if there is any synchronization operation in your program causing other GPUs to wait longer.

from pytorch-distributed.

theonly22 avatar theonly22 commented on August 23, 2024

yons 10829 0.2 0.1 2991056 134104 pts/9 S+ 19:34 0:05 python3 -m torch.distributed.launch --nproc_per_node=2 train.py -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 10882 101 4.9 31145112 6472044 pts/9 Sl+ 19:34 29:48 /usr/bin/python3 -u train.py --local_rank=0 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 10883 101 8.2 37004736 10941320 pts/9 Sl+ 19:34 29:51 /usr/bin/python3 -u train.py --local_rank=1 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 11082 39.5 4.1 21305204 5501024 pts/9 Dl+ 19:34 11:29 /usr/bin/python3 -u train.py --local_rank=0 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 11091 39.4 4.1 21308788 5506644 pts/9 Dl+ 19:34 11:27 /usr/bin/python3 -u train.py --local_rank=0 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 11101 39.6 7.5 27062080 9980424 pts/9 Dl+ 19:34 11:30 /usr/bin/python3 -u train.py --local_rank=1 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2
yons 11110 39.6 7.5 27060044 9977892 pts/9 Dl+ 19:34 11:30 /usr/bin/python3 -u train.py --local_rank=1 -net ir -depth 50 -b 200 -w 2 -lr 0.1 -num_gpus 2

训练一段时间后,取数据进程状态变成了Dl+,gpu利用率就忽高忽低了,这是为什么啊

from pytorch-distributed.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.