Giter VIP home page Giter VIP logo

Comments (6)

Eric-mingjie avatar Eric-mingjie commented on June 6, 2024

Hi! Thanks for your interest in our code.

The reason why we didn't implement multi-gpu training is because all our experiments fitted on one GPU. I think multi-gpu can be used. How did you implement Multi-GPU?

I suggest using:
model = torch.nn.DataParallel(model).cuda()

from network-slimming.

MissyDu avatar MissyDu commented on June 6, 2024

Thank your for so quick answer!
Yes, I implement just as your suggestion.But, I found the training seem to stop at "output = model(data)" and never continue. At the same time, GPUs are always at 100% utilization rate.
This the my current suitation, and it will be wonderful if you can say something enlighten me.
非常谢谢!

from network-slimming.

Eric-mingjie avatar Eric-mingjie commented on June 6, 2024

Can you share with me what is the size of your GPU memory and which network are you running (VGG, ResNet or DenseNet)?

I just tried adding model = torch.nn.DataParallel(model).cuda() and it worked perfectly. I can run the code on two GPUs.

from network-slimming.

MissyDu avatar MissyDu commented on June 6, 2024

| 2 TITAN X (Pascal) Off | 00000000:08:00.0 Off | N/A |
| 27% 50C P2 78W / 250W | 597MiB / 12189MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 3 TITAN X (Pascal) Off | 00000000:09:00.0 Off | N/A |
| 32% 58C P2 83W / 250W | 597MiB / 12189MiB | 100% Default |

Hello, I run DenseNet and there are 5GPUs, above are the No,2&3 info.

I didn't modify anything except:
#if args.cuda:
#model.cuda()
model = torch.nn.DataParallel(model).cuda()

Whether the pytorch is the issuse, my version is:

torch.version
'1.0.1.post2'

from network-slimming.

Eric-mingjie avatar Eric-mingjie commented on June 6, 2024

Our code is developed based on Pytorch 0.3.1. There is no guarantee of our code on Pytorch 1.0.1. Maybe you should try changing to Pytorch 0.3.1.

from network-slimming.

MissyDu avatar MissyDu commented on June 6, 2024

Thank you so much.
I fixed this issue by using other GPU server and install Pytorch 0.3.1.

from network-slimming.

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.