Comments (4)
@certainly-cyber,
tf.contrib.distribute.CollectiveAllReduceStrategy is not available and it was the deprecated API. The CollectiveAllReduceStrategy is exported as MultiWorkerMirroredStrategy.
https://www.tensorflow.org/api_docs/python/tf/distribute/MultiWorkerMirroredStrategy
Also I suspect you are using the code which was related tensorflow 1.x version which is not actively supported now. Kindly convert the code for the latest version and use the tensorflow v2.15 or v2.16. Thank you!
from tensorflow.
I understand what you mean, but this API used to be available...right?
Due to some reasons, I may not be able to migrate and use the relevant version of TF2. In fact, the above code can run successfully and obtain good training results using TF1.14 and CollectiveAllReduceStrategy API. The only point I am confused about is why there is a much larger communication volume between workers than the theoretical value.
Looking forward to your reply, and have a nice day~
from tensorflow.
@certainly-cyber,
The API tf.contrib.distribute.CollectiveAllReduceStrategy is not available and as it is part of the deprecated tf.contrib
CollectiveAllReduceStrategy is MultiWorkerMirrorStrategy. CollectiveAllReduceStrategy is a name we used in the implementation. Please refer to documentations of MultiWorkerMirrorStrategy.
Also CollectiveAllReduceStrategy reduces computation overhead by distributing it across workers, there's additional overhead associated with transferring data between workers. This overhead can include serialization, deserialization, and network latency, all of which can contribute to a larger communication volume than the theoretical minimum. Thank you!
from tensorflow.
Okay, I got it. Thank you again for your answer~
By the way, if I have adopted MultiWorkerMirroredStrategy, can we accurately calculate (or roughly estimate) the amount of data that needs to be synchronized? I have already know how to use model parameters for estimation, but I think it's not accurate enough:) Such like what the format of the synchronized message will be like, or what is the proportion of overhead information? Thank you!
from tensorflow.
Related Issues (20)
- aarch64/arm64 Tensorflow Lite runtime wheels not compatible with silicon OSX ? HOT 2
- L0i HOT 1
- Numerical precision issue of operators selu, leakyRelu, softplus and their corresponding backward operators on Bfloat16 vs float32 HOT 2
- Any build help with tensorflow-text
- Apple Silicon, building pip package ... clang: error: linker command failed with exit code 1
- Aborted (core dumped) in `tf.raw_ops.FusedPadConv2D` HOT 1
- Aborted (core dumped) in `QuantizedInstanceNorm` HOT 1
- Segmentation fault (core dumped) in `tf.raw_ops.FusedResizeAndPadConv2D` HOT 1
- Segmentation fault (core dumped) in `tf.raw_ops.SoftmaxCrossEntropyWithLogits` HOT 2
- Unable to Import and Use FlexDelegate in TensorFlowLite in iOS HOT 9
- Missing return in error check in mlir::TFTPU
- Bazel - Tensorflow build failed HOT 1
- Remove null pointer from error message in mlir::odml HOT 3
- Tensorflow using Intel GPU instead of NVIDIA GPU HOT 1
- Unexpected behavior in tf.data.Dataset.from_generator when there is a naming collision HOT 2
- Does anyone know which version of ROCM is used to build the tensorflow-rocm ? HOT 1
- Exit code 137 in `tf.raw_ops.ResizeNearestNeighborGrad` HOT 1
- ABORTED: Shutdown in `tf.raw_ops.PriorityQueueV2` HOT 3
- Tensorflow lite in Android App HOT 1
- TensorFlowLiteSelectTfOps - Compile error
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 tensorflow.