GithubHelp home page GithubHelp logo

Comments (8)

JeanKossaifi avatar JeanKossaifi commented on July 16, 2024

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.

segalinc avatar segalinc commented on July 16, 2024

I actually have PyTorch 1.7.1. I also tried to update it but still...

from torch.

JeanKossaifi avatar JeanKossaifi commented on July 16, 2024

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.

segalinc avatar segalinc commented on July 16, 2024

from torch.

JeanKossaifi avatar JeanKossaifi commented on July 16, 2024

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.

JeanKossaifi avatar JeanKossaifi commented on July 16, 2024

I pushed a temporary fix in 38d2614
Let me know if this doesn't fix your problem @segalinc

from torch.

HuyTu7 avatar HuyTu7 commented on July 16, 2024

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.

JeanKossaifi avatar JeanKossaifi commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.