Comments (8)
Thanks for reporting @segalinc!
So the first issue seems to be related to this pytorch/pytorch#46983, I don't think we ever add anything to a ParameterList that's not an nn.Parameter, but will double check. That issue should be fixed in PyTorch 1.7.1 pytorch/pytorch#49285
The other issue is new to me, I'll have a look and see why this happens.
As a side note, you may want to use nn.parallel.DistributedDataParallel
instead of just DataParallel
: https://pytorch.org/docs/stable/notes/cuda.html#cuda-nn-ddp-instead
from torch.
I actually have PyTorch 1.7.1. I also tried to update it but still...
from torch.
Ok, so the error you got was coming from the way we handled thread-safe tenalg backend setting in TensorLy and is fixed by tensorly/tensorly@f0b701e
However, there seems to still be an issue, seemingly related to pytorch/pytorch#36035. It seems the parameters in the factors
ParameterList are not copied to the devices -- let me know if you also experience this.
from torch.
from torch.
Thanks, I've commented on the PyTorch issue at pytorch/pytorch#36035 (comment), but it seems they are not actively working on this.
from torch.
I pushed a temporary fix in 38d2614
Let me know if this doesn't fix your problem @segalinc
from torch.
Hi I also just encountered the second issue when trying multiple GPU with torch.nn.DataParallel in both Pytorch 1.7 and 1.8. Any recommendations?
from torch.
If your issue is with PyTorch, I recommending commenting in the corresponding issue: pytorch/pytorch#36035 (comment)
In TensorLy-Torch we use a custom ParameterList, feel free to try for your application!
from torch.
Related Issues (19)
- Add more initialization methods HOT 1
- Support for ONNX export HOT 1
- Tensor Regression Layer HOT 3
- Installation fails from PyPI HOT 8
- Documentation update? HOT 1
- Operating on the Decomposed Form? HOT 1
- FactorizedConv
- FactorizedConv HOT 2
- BlockTT does not support CUDA Tensor as indices HOT 2
- Tensorized Matrices vs Factorized Tensors HOT 2
- FactorizedEmbedding doesn't work with non-contiguous input HOT 2
- `tltorch.FactorizedConv.from_conv` tries to allocate ~83GB memory for an input of shape (1024, 512, 3, 3, 3) HOT 3
- `torch.jit.script` does not work with Tensorized Models HOT 1
- Tensorized Matrices Error: np.unravel_index can't convert cuda device type tensor to numpy HOT 1
- Factorized Tensor slower than Neural Network Layer !!! HOT 3
- Reconstructed in from_conv is no showing Reconstructed layers but the factorized layers HOT 2
- Tensorized Embedding Layers HOT 6
- Contiguous Tucker core and factors HOT 4
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 torch.