GithubHelp home page GithubHelp logo

Comments (5)

anfeng avatar anfeng commented on August 22, 2024

@dejunzhang What's is the network bandwidth b/w your nodes? It's very likely your network is congested. It will be interesting to get some network usage info.

May I assume that both runs use identical batch size? Batch size is for per worker instance. You should adjust batch size by dividing it by $(SPARK_WORKER_INSTANCES).

from caffeonspark.

junshi15 avatar junshi15 commented on August 22, 2024

Several factors could contribute to the slowness:

  1. weakest node in the cluster. Training is done synchronously, the slowest node brings down the over speed.

  2. network bandwidth. Two drawbacks with ethernet connections: (a) GPU memory needs to be copied to host memory before transmission. The copying can be slow. (b) Ethernet is usually slow. We use Infiniband and RDMA for fast memory and network access.

  3. as @anfeng mentioned, your effective batch size doubles when you use two nodes since the batch size in the prototxt file is per device.

from caffeonspark.

dejunzhang avatar dejunzhang commented on August 22, 2024

@anfeng the slave nodes are connected with a 1Gb/s switch. Yes, I didn't modify the batch size just now, and they are the same as in single node. I will have a try. thanks.
@junshi15 the slave nodes have the same hardware and environment. Now we only have ethernet connections between nodes.

from caffeonspark.

mriduljain avatar mriduljain commented on August 22, 2024

@dejunzhang Let us know if you see differences with above config changes etc, whenever

from caffeonspark.

dejunzhang avatar dejunzhang commented on August 22, 2024

@mriduljain the network usage during the trainning is about 90 ~ 300Mb/s and the time cost is slight higher than the single node but with lower loss. Thank you.

from caffeonspark.

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.