Comments (6)
There is no problem when I used compression = hvf.Compression.fp16 if args.fp16 allreduce else hvd.Compression.none
, which used in the example program supported by Horovod, instead of grc = Allgather(TopKCompressor(0.3), ResidualMemory(), hvd.size())
. That bug you mentioned above already be fixed before running the training script.
It is the truth that I haven't apply the patch, as I don't know how to make it. Could you tell me the details about this patch?
Best regards
from grace.
Hi,
Thanks for your interest. Currently Horovod 0.19.2 is not supported in our framework. Please follow the instruction to install the environment. Let us know if you encounter any issues.
Hang
from grace.
I have installed Horovod 0.18.2. When I run the example program named pytorch_mnist.py, there are some errors as below:
Traceback (most recent call last):
File "./horovod_mnist.py", line 189, in <module>
train(epoch)
File "./horovod_mnist.py", line 67, in train
loss.backward()
File "/GPUFS/nudt_chkwu_2/.conda/envs/torch_ho/lib/python3.6/site-packages/torch/tensor.py", line 195, in backward
torch.autograd.backward(self, gradient, retain_graph, create_graph)
File "/GPUFS/nudt_chkwu_2/.conda/envs/torch_ho/lib/python3.6/site-packages/torch/autograd/__init__.py", line 99, in backward
allow_unreachable=True) # allow_unreachable flag
File "/GPUFS/nudt_chkwu_2/.conda/envs/torch_ho/lib/python3.6/site-packages/horovod/torch/__init__.py", line 141, in hook
handle, ctx = self._allreduce_grad_async(p)
File "/GPUFS/nudt_chkwu_2/.conda/envs/torch_ho/lib/python3.6/site-packages/horovod/torch/__init__.py", line 122, in _allreduce_grad_async
tensor_compressed, ctx = self._compression.compress(tensor)
AttributeError: 'Allgather' object has no attribute 'compress'
I find the class Allgather have a atrribute 'compress'. The example program used the TopkCompressor. I don't know how to solve this problem. Could you give me a advise? Thanks for your help.
from grace.
It seems like you haven't apply the horovod patch we provided. Before applying the patch, please make sure you can run an official horovod example following the horovod guidelines .
We do find a bug in pytorch_mnist.py
, see here. Please update your training script by this version.
Hang
from grace.
Never mind - I have read the file named horovd 0.18.2-patch. Maybe I know how to apply this patch. The -
indicate to delete and the +
is to add, right? And is it needed to make a change to the module file about the TensorFlow when I used the PyTorch framework?
from grace.
from grace.
Related Issues (20)
- EFSignSGDCompressor does not seem to use memory HOT 1
- bug: tensorflow natural compression returns 'Python int too large to convert to C long' HOT 2
- A question about one-bit quantization implementation in tensorflow backend. HOT 1
- Discussion about TernGrad HOT 13
- DGC warmup HOT 3
- Threshold compression hangs. HOT 1
- Seeking suggestions for embedding into ddp HOT 8
- Problematic error: suddenly interrupt when trainning HOT 3
- Some questions about the grace HOT 2
- [DDP] weight in classifier HOT 1
- Any plans to port to latest Horovod (0.24) ? HOT 3
- DGC GPU usage in GRACE HOT 4
- The question about QSGD algorithm in the paper HOT 1
- Environment build failed on AWS EC2 g4dn instance with OS image (Deep Learning AMI, ami-0184e674549ab8432) HOT 4
- horovodrun command reports an error and cannot run the examples
- Question about the time complexity. HOT 3
- GRACE PyTorch Distributed HOT 6
- TypeError:compensate() missing 1 required positional argument: 'name' HOT 10
- About the usage of GRACE HOT 2
- Global or Local compression 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 grace.