Comments (3)
@matthewygf let's hope that Google releases the image classification sample soon and also any basic documentation on how to use GPipe. Right now it seems to be deeply integrated with sequence models only.
from mesh.
@denfromufa
it is open sourced here:
https://github.com/tensorflow/lingvo/blob/master/lingvo/core/gpipe.py
i might not be correct, but seems to me with Mesh, it is solved by constructing an ILP, i.e. finding an optimal set of layout with a number of constrains.
where gpipe, you defined your op that get separated manually.
from mesh.
From what I understand, GPipe is actually pipelining, that is model sequentialism + data parallelism.
Basically, you place each layer on a GPU sequentially, and one GPU #1 is done with batch #1 you feed batch #2. This is illustrated in the Figure 2.c of their paper.
Mesh, however, is true model parallelism in the sense that you really define a distributed operation say the convolution, and distribute it on different GPUs. So you won't be suffering from the bubble of GPipe, that is, except when communicating, all your GPUs will be in use.
from mesh.
Related Issues (20)
- Tensorflow Mesh needs documentation. Will this be provided anytime soon? HOT 1
- the `model_executor.py` example is broken
- OpenNMT-tf
- [Wrong Code Comments] In moe.py, there are two wrong code comments
- performing the opposite of mtf.lowering HOT 1
- How to assign values to specific slice of a data block on a specific GPU?
- How to use tf.contrib.opt.ScipyOptimizerInterface or tfp.optimizer.lbfgs_minimize with MeshTF ?
- [MOE-transformer] How do you build static graph of MOE-Model?
- Ability to add Custom Tensorflow Hooks
- Beam search
- How to freeze embedding layers
- Mesh-tf model conversion to onnx? HOT 2
- About the mixture of expert model
- mask_1_flat and mask_2_flat applied to gates twice?
- Getting "NanLossDuringTrainingError: NaN loss during training."
- When running BERT on GPU: Resource exhausted: failed to allocate memory HOT 1
- Does load-balanced loss help the loss converge?
- AttributeError: module 'tensorflow.python.framework.ops' has no attribute 'register_tensor_conversion_function' HOT 4
- Optimizer momentums not properly populated training model with DTensors HOT 1
- Error while importing Meshtensorflow
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 mesh.