GithubHelp home page GithubHelp logo

Comments (12)

colesbury avatar colesbury commented on May 3, 2024 1

Make it single-threaded:

from fb.resnet.torch.

ljk628 avatar ljk628 commented on May 3, 2024 1

Try setting OMP_NUM_THREADS=1? This helps me solving #17.

from fb.resnet.torch.

colesbury avatar colesbury commented on May 3, 2024

I'm not sure I understand. Are you running the two training runs at the same time?

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

no, run one finished and then run next one, it's sequentially

from fb.resnet.torch.

colesbury avatar colesbury commented on May 3, 2024

If you run it again, does it hang?

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

yes, so far I tracked the problem down to the #99line in dataloader.lua threads:dojob().

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

this is perculiar since I run the code multiple times before and no problem. However, recently I have some library install and delete and environment change, which might have a influence on the low level thread library ?

from fb.resnet.torch.

colesbury avatar colesbury commented on May 3, 2024

Maybe there's an error loading the data that's getting hidden by the threads. I'd be surprised if the issue is actually in the threads library (as opposed to just being hidden by the multi-threading)

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

what's the best way to debug the dataloader ? Right now, I print everything out to see which is not working.

Thanks

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

Thanks, man, will try it laters

from fb.resnet.torch.

ouceduxzk avatar ouceduxzk commented on May 3, 2024

thanks guys, actually reinstall torch and cutorch fix the problem, I do not know what happened exactly, but I learned something through this problem.

Thank you

from fb.resnet.torch.

arthitag avatar arthitag commented on May 3, 2024

I faced a similar problem. My training code was just hanging(not showing any progress on the terminal) although the GPU memory was occupied. The GPU temperature was low(indicating inactivity). It was a multi-GPU model training with multi-threaded data loading. I faced the problem even when I tried the code on a single GPU and set the number of threads to 1.
I was getting a warning from DataparallelTable.lua that it coudn't load nccl(in the multi-GPU training). I installed nccl and also updated torch,cutorch,nn and cunn. None of this however resolved the issue.
I had to ultimately follow the suggestion of @colesbury and replace the code in the dataloader.loop() with the dataloading code. This seems to have resolved the issue and I don't see the freezing thing happening any more. Thanks! I hope someone else finds this useful.

from fb.resnet.torch.

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.