GithubHelp home page GithubHelp logo

Comments (8)

peterjc123 avatar peterjc123 commented on May 2, 2024

@liamsun2019 Fixed. Would you please try again?

from tinyneuralnetwork.

liamsun2019 avatar liamsun2019 commented on May 2, 2024

I tried the latest version:

python3.6 netadapt_prune.py --batch-size 16 --distributed False

INFO (tinynn.prune.netadapt_pruner) Global Target/Initial FLOPS: 437178624/582904832
INFO (tinynn.prune.netadapt_pruner) Start iteration 1
INFO (tinynn.prune.netadapt_pruner) Init pool process with cuda id 0
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/queues.py", line 234, in _feed
File "/usr/lib/python3.6/multiprocessing/reduction.py", line 51, in dumps
File "/usr/local/lib/python3.6/dist-packages/torch/multiprocessing/reductions.py", line 322, in reduce_storage
File "/usr/lib/python3.6/multiprocessing/reduction.py", line 191, in DupFd
File "/usr/lib/python3.6/multiprocessing/resource_sharer.py", line 48, in init
OSError: [Errno 24] Too many open files

Is there any config related to file-open limitations?

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

Please use less workers in your Dataloaders.

from tinyneuralnetwork.

liamsun2019 avatar liamsun2019 commented on May 2, 2024

I tried that way. But it still fails even setting worker to 1.

from tinyneuralnetwork.

liamsun2019 avatar liamsun2019 commented on May 2, 2024

I checked the file open number, it's over 670 times for fd dup operations while no close ops are done before the error emerges.

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

@liamsun2019 Could you please use a higher limit? We usually perform the experiment on a server, so we won't encounter this kind of problem.

from tinyneuralnetwork.

liamsun2019 avatar liamsun2019 commented on May 2, 2024

I understand the environment difference. The prune goes well after I ulimit -n 2048.

from tinyneuralnetwork.

peterjc123 avatar peterjc123 commented on May 2, 2024

Ok, glad it worked at your side. I'll close it for now.

from tinyneuralnetwork.

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.