Giter VIP home page Giter VIP logo

Comments (12)

nshazeer avatar nshazeer commented on August 13, 2024 4

Yes, that should be possible, though I haven't done it. The GPU code just relies on device placement, so if you can construct a TF graph which can name all of the 16 GPUs as different devices, it should work...

from mesh.

PSZehnder avatar PSZehnder commented on August 13, 2024 3

I can run the mnist example on a GPU. Does not appear to be utilizing CPU resources. However, when using 4 GPU, only the first device is actually utilized.

Hopefully we can get a developer response on this... I can't see what would need to be modified in mnist.py to make distributed GPU training work.

EDIT: specifying your devices by name ['gpu:0, 'gpu:1', 'gpu:2'] instead of [''] * mesh_size solves the problem for me

from mesh.

assij avatar assij commented on August 13, 2024 3

@PSZehnder Does mesh tensorflow supports multi node training ( i.e. each node has #x GPUs attached to it)?
I'm using 2 nodes each with 8 GPUs and would like to train on the entire (2 nodes *8 gpus )=16 GPUs.
How do I configure mesh tensorflow to train in a multi node setup?

from mesh.

assij avatar assij commented on August 13, 2024 1

@nshazeer Does mesh tensorflow supports multi node training ( i.e. each node has #x GPUs attached to it)?
I'm using 2 nodes each with 8 GPUs and would like to train on the entire (2 nodes *8 gpus )=16 GPUs.
How do I configure mesh tensorflow to train in a multi node setup?

from mesh.

assij avatar assij commented on August 13, 2024 1

@nshazeer , Thanks for your reply. If I can make the 16 GPUs visible ,How the data loading will be done in a 2 node * 8 GPUs ?
Will the data be loaded through 1 CPU in node0 ( where I run the script, so 1 CPU sends data to 16 GPUs) or the data loading will be done from the 2 cpus ( node0 and node1), so each CPU sends the data which is relevant to the 8 GPUs it its connected to. ?

from mesh.

mcompute avatar mcompute commented on August 13, 2024

Facing the same issue.

from mesh.

LiweiPeng avatar LiweiPeng commented on August 13, 2024

facing same issue. can someone share some answers for this?

from mesh.

knagrecha avatar knagrecha commented on August 13, 2024

Also seeing this issue. Monitoring GPU usage shows that only one GPU is being utilized when running BERT.

from mesh.

xdgarrido avatar xdgarrido commented on August 13, 2024

The current MNIST example is just using a single GPU in AMD/RocM platforms.

from mesh.

zaccharieramzi avatar zaccharieramzi commented on August 13, 2024

@nict-wisdom do you have a snippet showing how you used the ProfilerHook, I am a bit struggling with it atm.

from mesh.

weberxie avatar weberxie commented on August 13, 2024

Met the same problem, anyone on this team can reply this issue?

from mesh.

Conformist101 avatar Conformist101 commented on August 13, 2024

We are also facing the same issue. Any help in this context will be highly appreciated.

from mesh.

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.