Comments (6)
yes
from examples.
@cheerss see https://arxiv.org/abs/1404.5997 [pdf] (esp. sections 1-3):
... data parallelism is efficient when the amount of computation per weight is high (because
the weight is the unit being communicated)
It's not efficient to use DataParallel with the fully connected layers because they have lots of parameters, but relatively little computation. In theory, the fully connected layers are well suited for model parallelism, but it's kind of a pain to implement and the performance gain is small.
from examples.
it is because they have very big fully connected layers at the end that are not suitable to DataParallel
from examples.
@soumith thanks. Are you suggesting that fc layers for these networks are all stored on the same card?
from examples.
Is there anyone know why "big fully connected layers at the end are not suitable to DataParallel"?
from examples.
@colesbury Thanks a lot !!
from examples.
Related Issues (20)
- word_language_model/data.py - remove '<eos>'
- If I am training on a SINGLE GPU, should this "--dist-backend 'gloo'" argument be added to the command? HOT 10
- SSL Error When downloading dataset HOT 3
- Testing a C++ case with MPI failed.
- Long training time for ResNet50 on ImageNet-1k HOT 1
- Segmentation fault (core dumped) at `model(images)` for examples/imagenet/main.py HOT 1
- RuntimeError in Partialconv-master HOT 1
- Pytorch is insufficiently opinionated
- Documentation Mismatch and AssertionError in language_translation
- RuntimeError: HIP error when running ResNet-50 on PRO W7900 with PyTorch HOT 1
- Drawbacks of making the C++ API look like Python HOT 10
- Build error on cpp/custom-dataset
- multi-node Tensor Parallel
- `local_rank` or `rank` for multi-node FSDP
- reference of weight initialization for llama2 model HOT 1
- [DOC] Update mnist.py example HOT 4
- SequenceParallel sharding seems wrong HOT 1
- word_language_model, is it a Transformer, Encoder-only or Decoder only? HOT 1
- Larger image size for DCGAN code with Celeba dataset
- Multinode.py example fails HOT 2
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 examples.