Git Product home page Git Product logo

Comments (6)

laekov avatar laekov commented on September 15, 2024

怀疑是因为 clip grads 的时候某些 expert 没有梯度, 导致不同 worker 之间 allreduce 的数据量不同

from fastmoe.

sandyhouse avatar sandyhouse commented on September 15, 2024

怀疑是因为 clip grads 的时候某些 expert 没有梯度, 导致不同 worker 之间 allreduce 的数据量不同

是的,这是一个存在问题的地方。所以,我修改了clip_gradients.py文件,注释掉其中的所有all_reduce操作。这样的话,训练可以进行数十到数百step,然后仍然hang。所以,应该还有其它地方存在通信不一致的问题。

from fastmoe.

laekov avatar laekov commented on September 15, 2024

我注意到您开了

       --tensor-model-parallel-size 2 \
       --pipeline-model-parallel-size 2 \

可以把这俩都改成 1 试试能不能跑吗?

from fastmoe.

sandyhouse avatar sandyhouse commented on September 15, 2024

可以把这俩都改成 1 试试能不能跑吗?

抱歉,上面的配置贴错了,正确的如下:

--tensor-model-parallel-size 2 \
--pipeline-model-parallel-size 1 \

所以,只是使用了模型并行。
当上面两个配置均为1时,即只使用数据并行+MoE,单机多卡配置下,可以正常运行。

from fastmoe.

laekov avatar laekov commented on September 15, 2024

看起来这个问题依然悬而未决. 我这里没有能复现这个问题. @sandyhouse 您这边有什么新的进展吗?

from fastmoe.

laekov avatar laekov commented on September 15, 2024

Closing due to lack of further response. Feel free to re-open if you have any progress.

from fastmoe.

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.