Giter Site home page Giter Site logo

Comments (10)

kuenishi avatar kuenishi commented on July 18, 2024 1

Glad to hear that. So far I'll be closing this issue for cleaning up the milestone list, but feel free to reopen this when you think you need more.

from chainermn.

Hakuyume avatar Hakuyume commented on July 18, 2024

And this is my case (similar to that of batch_normalization).
https://github.com/Hakuyume/chainercv/blob/ssd-multi-gpu-train/chainercv/links/model/ssd/multibox_loss.py#L91-L95

I had to handle MPI module manually.

from chainermn.

kuenishi avatar kuenishi commented on July 18, 2024

@Hakuyume as #237 has been merged, this issue will be addressed at 1.3.0 release. So far only communicator will support allreduce, but do you think you need functions like AllGather ?

To see real use case, the URL of your code ( https://github.com/Hakuyume/chainercv/blob/ssd-multi-gpu-train/chainercv/links/model/ssd/multibox_loss.py#L91-L95 ) has been lost 404 so could you provide latest allreduce code if you still have it somewhere open?

from chainermn.

Hakuyume avatar Hakuyume commented on July 18, 2024

@kuenishi Thank you for supporting allreduce!

So far only communicator will support allreduce, but do you think you need functions like AllGather ?

For my case, function classes are not required.

To see real use case, the URL of your code ( https://github.com/Hakuyume/chainercv/blob/ssd-multi-gpu-train/chainercv/links/model/ssd/multibox_loss.py#L91-L95 ) has been lost 404 so could you provide latest allreduce code if you still have it somewhere open?

I'm sorry for removing the branch. Here is the latest code.
https://github.com/chainer/chainercv/blob/master/chainercv/links/model/ssd/multibox_loss.py#L91-L95

from chainermn.

Hakuyume avatar Hakuyume commented on July 18, 2024

@kuenishi Does #237 support reducing cupy.ndarray? According this line, it takes only numpy.ndarray.

from chainermn.

kuenishi avatar kuenishi commented on July 18, 2024

Yes, it is not just documented, but _memory_utility.array_to_buffer_object() automatically handles both cupy and numpy array objects. It is tested over hierarchical and naive communicator but should work with other communicators. With pure_nccl communicator it needs stream synchronization before IIRC.

from chainermn.

Hakuyume avatar Hakuyume commented on July 18, 2024

Thank you.

from chainermn.

kuenishi avatar kuenishi commented on July 18, 2024

Actually it wasn't implemented for cupy.ndarray and now #293 should fix it.

from chainermn.

ankahira avatar ankahira commented on July 18, 2024

The allreduce function doesn't seem to use NCCL or am I missing something?

from chainermn.

keisukefukuda avatar keisukefukuda commented on July 18, 2024

Hi @ankahira ,
First, this repository is an old one. ChainerMN was merged into Chainer.
Also, Chainer is no longer maintained.

Besides, ChainerMN's PureNcclCommunicator uses NCCL. https://github.com/chainer/chainer/blob/master/chainermn/communicators/pure_nccl_communicator.py#L180

from chainermn.

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.