Coder Social home page Coder Social logo

Multi-Node GPU train Example. about climax HOT 3 CLOSED

microsoft avatar microsoft commented on July 18, 2024
Multi-Node GPU train Example.

from climax.

Comments (3)

rejuvyesh avatar rejuvyesh commented on July 18, 2024

Multi-node experiments setup usually depends on your local cluster setup. I would recommend following the PyTorch Lightning documentation at https://pytorch-lightning.readthedocs.io/en/stable/clouds/cluster.html. Otherwise, the current code is already setup for doing multi-node experiments. And would just require setting the environment variable NODES to the correct number and setting --trainer.num_nodes to the correct number.

from climax.

mahm1846 avatar mahm1846 commented on July 18, 2024

Thanks for the reply.

  1. By "Multi-node", I was referring to frameworks such as Horovod or Colossal, but Pytorch DDP is alright, too.

  2. I run into another problem with the conda install. Our cluster run on Centos 8.5, which only has upto "glibc-2.28". I followed the conda install instructions without any error. But there is a runtime error, "torchdata" is looking for "glibc-2.29".
    Does Microsoft has any conda build or do you know any build channel that uses "glibc-2.28" for Pytorch products?
    or, Can you suggest any workaround ?

I look forward to your reply.

from climax.

rejuvyesh avatar rejuvyesh commented on July 18, 2024

torchdata is easy to expunge from the current code (although you could also just use docker instead). At the moment it's only being used to get a list of files: dp.iter.FileLister. You can replace that with your own function that does the file listing. Something like:

def get_files_from_root(root):
    if os.path.isfile(root):
        path = root
        yield path
    else:
        for path, dirs, files in os.walk(root):
            files.sort()
            for f in files:
                yield os.path.join(path, f)

            dirs.sort()

from climax.

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.