Giter Site home page Giter Site logo

Comments (4)

mcarilli avatar mcarilli commented on August 27, 2024

Weird, some of the errors look like you're attempting to compile c++14 features with a c++11 compiler (e.g. error: body of constexpr function...). Apex (and Pytorch) should only require c++11. It also looks like the build is pulling in headers for gcc 6.4.1. I don't think this is an issue specific to Apex. Did you build Pytorch from source? Also, are you able to compile their Pytorch c++ extension tests? Try

cd <pytorch_repo_root>/test/cpp_extensions/
python setup.py install

Moving forward, we are working on a pip-installable version of Apex, as well as a Python-only installation. The C++ backend is not required by FP16_Optimizer and apex.parallel.DistributedDataParallel, and Amp only requires the backend as a performance optimization.

from apex.

mcarilli avatar mcarilli commented on August 27, 2024

Apex is now a Python-only package for simplicity and robustness. We're working on moving Apex's former C++ backend into Pytorch itself. In the meantime, Amp, FP16_Optimizer, and apex.parallel.DistributedDataParallel continue to work, although Amp may exhibit mild (~2%) performance reduction. This performance hit is temporary and will be reversed once the C++ backend is available for Amp to use through Pytorch core.

If you have Pytorch on your system, you should be able to install and use Apex without any more C++ build problems.

from apex.

jramapuram avatar jramapuram commented on August 27, 2024

Great, thanks very much! Will give this a shot and report back. Looking forward to Amp integration in pytorch: will make fp16 training a whole lot easier. Any idea on the timeline for this? I can pull pytorch and compile it if the PR has been accepted into master.

from apex.

jramapuram avatar jramapuram commented on August 27, 2024

This works perfectly now. pip install works; the build works as well. I had some issues with an AUR version of gcc-6 on arch causing the above conflicts. User error :)

from apex.

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.