Git Product home page Git Product logo

Comments (3)

diego-plan9 avatar diego-plan9 commented on June 3, 2024

In regards to using the current 0.2.0 wheels:

$ pip freeze
aihwkit==0.2.0
torch==1.7.0

This combination seem to result in:

$ python -c "import aihwkit.simulator.rpu_base"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: /tmp/.../lib/python3.7/site-packages/aihwkit/simulator/rpu_base.cpython-37m-x86_64-linux-gnu.so:
undefined symbol: _ZN3c104impl23ExcludeDispatchKeyGuardC1ENS_11DispatchKeyE

As a workaround while troubleshooting the issue and working on a cleaner solution, manually installing an earlier version of torch should still do the trick:

pip install "torch<1.7"

from aihwkit.

diego-plan9 avatar diego-plan9 commented on June 3, 2024

An update regarding torch compatibility - we just issued a 0.2.1 release that contains wheels that are compatible with torch 1.6.0. In the next major release 0.3.0 we are planning to update the wheels dependency to 1.7.x.

Please note that this compatibility refers only to the pip-installable wheels: when they are built, our library is compiled against a specific torch version, and the same specific torch versions needs to be installed in your system. For that reason, in the 0.2.1 we pinned the dependency on pytorch: when installing aihwkit, it will force the installation of torch 1.6.0 in your virtual environment.

Using a self-compiled version of aihwkit (as in, not the wheels from pip, but the ones that can be produced via the advanced install instructions) along with other version of pytorch (including 1.7) should be possible - the codebase is compatible with 1.6 and 1.7.

from aihwkit.

diego-plan9 avatar diego-plan9 commented on June 3, 2024

Closing in favour of #204

from aihwkit.

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.