Giter VIP home page Giter VIP logo

Comments (4)

JackCaoG avatar JackCaoG commented on July 30, 2024

suspect this is a pip issue, if you do

root@t1v-n-bafa368c-w-0:/ansible# python
Python 3.10.14 (main, Apr 24 2024, 12:45:30) [GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtpu
>>> libtpu.__file__
'/usr/local/lib/python3.10/site-packages/libtpu/__init__.py'

what would you see?

from xla.

davidaknowles avatar davidaknowles commented on July 30, 2024
daknowles@t1v-n-57a06759-w-0:~$ python
Python 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import libtpu
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'libtpu'
>>> 

That "CPU" in the first command for the installation isn't a typo right?

from xla.

JackCaoG avatar JackCaoG commented on July 30, 2024

cpu part is for the torchvision, it actually has nothing to do with the libtpu. To install the libtpu you can run

pip install torch_xla[tpu] -f https://storage.googleapis.com/libtpu-releases/index.html

Let me move this up in our README, it is mentioned in https://github.com/pytorch/xla#python-packages but it is hard to find. I will fix it tmr.

from xla.

davidaknowles avatar davidaknowles commented on July 30, 2024

OK yup that fixed it, thanks! I saw that line in the README but assumed that would install stable not nightly.

from xla.

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.