Comments (8)
@
The same question was answered in google/nccl-fastsocket#2
It seems that your 10Gbps NIC is already saturated. In this case, the compression algorithms in bagua (for example https://tutorials.baguasys.com/algorithms/bytegrad) may help you better.
oh, i just forgot comparing to the nic max bandwidth, i will using higher bandwidth nic to rerun the tests. thx
from bagua.
By default bagua-net is not enabled: https://github.com/BaguaSys/bagua/blob/master/bagua/distributed/run.py#L394
from bagua.
By default bagua-net is not enabled: https://github.com/BaguaSys/bagua/blob/master/bagua/distributed/run.py#L394
@NOBLES5E I did a test, the throughput is same Whether or not to pass the --enable_bagua_net argument .
from bagua.
Try following https://tutorials.baguasys.com/faq_troubleshooting#nccl-warn-reduce-invalid-reduction-operation-4 to install dependencies and run with NCCL_DEBUG=info
to see if the bagua net libnccl-net plugin is correctly found (the actual library should be in ~/.data/bagua-net/libnccl-net.so
).
Keep in mind that benchmarks are highly dependent on many factors including the workload and environment. It seems that in your screenshot you are running the workload on a single machine, where it is expected that bagua-net shows no benefit (on a single machine nccl will use shared memory/nvlink directly, while bagua-net optimizes nccl TCP performance).
from bagua.
@NOBLES5E thanks for your remind. so bagua-net only optimizes nccl TCP permormance. As for RDMA, would you do some performance optimization in the feature?
from bagua.
There's no transport level optimization for RDMA supported yet.
from bagua.
@NOBLES5E i also try to using google/nccl-fastsocket & buagua-net to do a all-reduce performance test on 2 nodes with 4 gpus on each nodes, but the result is also the same as usual, nothing changed. you just mentioned benchmarks are highly dependent on many factors including the workload and environment, so , could you please list some important factors which will effect the results.here is my env:
- linux kernel version: 4.18.0-193.el8.x86_64 , Centos8
- network bandwidth: 10Gbps
- gpus: two nodes,four P40s per nodes
from bagua.
The same question was answered in google/nccl-fastsocket#2
It seems that your 10Gbps NIC is already saturated. In this case, the compression algorithms in bagua (for example https://tutorials.baguasys.com/algorithms/bytegrad) may help you better.
from bagua.
Related Issues (20)
- compatibility with NCCL < 2.10 HOT 1
- use performance-efficient and memory-efficient buffer for tensor fusion
- Questions about grad hook in bagua
- add Pytorch Lightning example
- check qadam NAN problem
- fix NCCL lib check for pre-compiled packages
- Error installing dependencies for MNIST example HOT 1
- issue:merge with wenet training code
- Aluminium compilation error HOT 1
- how to do gradient accumulation in bugua HOT 1
- Problem with AttributeError 'setuptools._distutils' has no attribute 'version') with executing MNIST example HOT 7
- unify bagua package name with CUDA version HOT 1
- 安装bagua失败 HOT 2
- How to enable debug trace in rust? HOT 1
- error with pip install HOT 1
- Support Pytorch 1.13
- Programs get blocked when using multiple nodes training. HOT 1
- fix Lightning failing Bagua test for manual optimization HOT 1
- where the code related to communication and calculation of overlap of one algorithm? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bagua.