Giter VIP home page Giter VIP logo

Comments (13)

kaniblu avatar kaniblu commented on August 20, 2024 1

@varadhbhatnagar You should install apex with the recommended command in README and not by simply running pip install setup.py. Especially if you are installing it with the CUDA capabilities.

from spanbert.

mandarjoshi90 avatar mandarjoshi90 commented on August 20, 2024

Possibly an Apex issue? Did you try the version in the README?

from spanbert.

kaniblu avatar kaniblu commented on August 20, 2024

from spanbert.

mandarjoshi90 avatar mandarjoshi90 commented on August 20, 2024

Apologies. I missed that. Not sure what's wrong then. All the related github threads seem to be coming from the Apex repo, so it does seem to be the source.

from spanbert.

kaniblu avatar kaniblu commented on August 20, 2024

Turns out that apex wasn't installed correctly. I installed by python setup.py install and not following the instruction on apex's README file. Thanks anyways!

from spanbert.

ouening avatar ouening commented on August 20, 2024

Turns out that apex wasn't installed correctly. I installed by python setup.py install and not following the instruction on apex's README file. Thanks anyways!

I met the same error, and I installed the apex from the latest source, that does't work for me. Which version of apex do you use?

from spanbert.

varadhbhatnagar avatar varadhbhatnagar commented on August 20, 2024

@kaniblu Can you elaborate a bit on how you solved this issue? I am having the same problem.

from spanbert.

vincentlux avatar vincentlux commented on August 20, 2024

For those who still met the issue, this way of installation works for me: NVIDIA/apex#86 (comment)

from spanbert.

xuuuluuu avatar xuuuluuu commented on August 20, 2024

@kaniblu @vincentlux May I know the version of Pytorch, CUDA you are using?

With the recommended command in README: pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

I am still not able to install the apex. Below is the main error:

/anaconda3/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1529, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension

...

Given no hashes to check 145 links for project 'pip': discarding no candidates.

from spanbert.

tyistyler avatar tyistyler commented on August 20, 2024

@kaniblu
excuse me , could you tell me how to install apex@4a8c4ac
I just use
--!git clone https://github.com/NVIDIA/apex
--cd apex
--pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./" '
in colab and modify the 'from apex.optimizers import FusedAdam' to 'from apex.contrib.optimizers import FusedAdam'
but I get the same question with you
thanx~

from spanbert.

xuuuluuu avatar xuuuluuu commented on August 20, 2024

@tyistyler I believe you can try "git checkout 4a8c4ac" before pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

p.s. I just installed it when I downgrade my pip to 18.0

from spanbert.

tyistyler avatar tyistyler commented on August 20, 2024

from spanbert.

phosseini avatar phosseini commented on August 20, 2024

@tyistyler I believe you can try "git checkout 4a8c4ac" before pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./

p.s. I just installed it when I downgrade my pip to 18.0

Thanks for sharing this, I still have some trouble installing the apex. The one thing I don't get is how to install that specific commit of apex that is mentioned in the readme. Is this git checkout 4a8c4ac the exact command you used for that since it does not look like a valid command?

from spanbert.

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.