Code Monkey home page Code Monkey logo

Comments (5)

ymjiang avatar ymjiang commented on May 23, 2024

Do you observe high variation on the training speed? Or is it consistently low? I think you are taking the average value. Can you please show a section of the log output (containing multiple lines of the training speed) of the workers?

from byteps.

bobzhuyb avatar bobzhuyb commented on May 23, 2024

@MarvinLong

There are a few things you can try. If any of the following works for you, please let us know. Though the following env may start with MXNET, they apply to any workers, TF/MXNet/PyTorch, because the parameter server is based on MXNet.

  1. For the parameter servers, set export MXNET_OMP_MAX_THREADS=10 if you have 16 CPU cores per server. Set export MXNET_OMP_MAX_THREADS=4 if you only have 8 CPU cores

  2. Set export MXNET_CPU_WORKER_NTHREADS=32 . This may speed up the parameter server

  3. Start more parameter server instances. For example, when you have two physical machines to run the servers, you can start 4 (DMLC_NUM_SERVER=4), two server instances per physical machine. This will increase the network bandwidth utilization especially when your single TCP flow cannot saturate your bandwidth.

from byteps.

MarvinLong avatar MarvinLong commented on May 23, 2024

@bobzhuyb thank you for your reply.
All my rdma machines are in use for training a bert. I will try it next week.
Actually I want to use this kit for training a bert, but when I use this to test a bert_large model (vocab size is 110k) training speed. The speed up ratio is much lower than horovod’s . I will upload my experiment results next week.

from byteps.

bobzhuyb avatar bobzhuyb commented on May 23, 2024

@MarvinLong Do you have NVLinks? If not, BytePS may not give you speed-up because it is optimized for the scenario where the network bandwidth is the bottleneck. However, with 80Gbps RDMA without NVLinks, the bottlenck is inside each machine.

If you have NVLinks, properly configured BytePS should give you significant speedup compared with Horovod, especially with 3+ workers.

from byteps.

MarvinLong avatar MarvinLong commented on May 23, 2024

@bobzhuyb yes, I have 4 NVLinks machines with IB. As your advise I can use them as 2 workers and 2 servers.

from byteps.

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.