Code Monkey home page Code Monkey logo

Comments (7)

Zhihan1996 avatar Zhihan1996 commented on August 26, 2024

Hi,

Thanks for your interest!

This is my first time seeing this issue. Have you successfully installed the apex package?

from dnabert.

hjgwak avatar hjgwak commented on August 26, 2024

When I asked the question, it was not installed.
But, after install, the same error also occurs even add --fp16 flag.
(I installed apex package using conda
"conda install -c conda-forge nvidia-apex")

On my other GPU server, multi-GPU processing works well.
no apex package is installed on that server.
pytorch version is 1.6.0

Although I have downgrade pytorch version to 1.6.0 on the server that error occurred, the same error still occurs.

from dnabert.

Zhihan1996 avatar Zhihan1996 commented on August 26, 2024

Can you try to run the code without the --fp16 tag. If this works, you may install the apex package based on the official instructions (https://github.com/NVIDIA/apex).

from dnabert.

hjgwak avatar hjgwak commented on August 26, 2024

The same error still occurs though run the code without the --fp16 tag.

After upgrade pytorch to 1.8 on the server which has no error for multi-GPU processing,
the same error also occurs.
After install apex package on that server, it still cannot resolve the error.

I guess that the version of pytorch and cudatoolkit may affect parallel processing.
Can you inform the version of packages installed on your workspace?

from dnabert.

Celestial-Bai avatar Celestial-Bai commented on August 26, 2024

I met the same problem with you. Hope it can be solved quickly.

from dnabert.

Zhihan1996 avatar Zhihan1996 commented on August 26, 2024

Hi,

We used pytorch=1.4 + cudatoolkit=10.0 + python=3.6. Could you try this setting?

from dnabert.

hjgwak avatar hjgwak commented on August 26, 2024

It works!!!! 🎉
no error occurs on PyTorch 1.4

This problem seems to be caused by a PyTorch update
https://github.com/huggingface/transformers/issues/8145#issuecomment-721044942
Since, in a few cases, no error occurs on PyTorch >= 1.5, it seems that there is a way to resolve this issue on a higher version of PyTorch.
Unfortunately, I cannot find a way to fix this issue.

A simple way is to downgrade PyTorch to 1.4.

It would be helpful that updating conda install pytorch torchvision cudatoolkit=10.0 -c pytorch to conda install pytorch=1.4 torchvision cudatoolkit=10.0 -c pytorch -c conda-forge on README.md

Thanks for your kind response with interest. :)

from dnabert.

Related Issues (20)

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.