Coder Social home page Coder Social logo

Comments (3)

ahemberger avatar ahemberger commented on August 20, 2024 1

Hey there;

The thing that was not obvious to me when trying to follow troubleshooting advice from the existing docs is what's actually happening with Python under the hood here. Maybe you've already figured this out, but this suite of tools leverages Hython, which ships with Houdini. So, there's no reliance on external/system/anaconda python versions. The troubleshooting mentions uninstalling Torch from system python, for reasons that aren't quite clear to me.

In my case, what had happened is that I had installed Torch via Hython previously, and had done so without Cuda compatibility. So, when this repo tries to download dependencies, it found Torch already installed, skipped it, then claimed everything had been installed correctly.

To fix it for me, then, I needed to uninstall my erroneous Torch package via Hython, then reinstall it via the shelf tool (actually, I dug into the shelf tool code and just ran the Hython pip install command directly, so I could understand what was happening...the shelf tool wasn't providing enough feedback for me to have a clear understanding what it was doing).

You might try the same...uninstall Torch if it had been previously installed via Hython, then reinstall via the shelf tool (or, if you wanna do it manually, this:)

hython -m pip install torch --index-url https://download.pytorch.org/whl/cu117

from mlops.

usama-ghufran avatar usama-ghufran commented on August 20, 2024

How did you finally fix this problem? I never had PyTorch installed and I installed CUDA after I started getting the error.

Within Houdini in the Python shell 'torch' cannot seem to find cuda

>>> import torch
>>> torch.cuda.is_available()
False

from mlops.

usama-ghufran avatar usama-ghufran commented on August 20, 2024

That helped! Thanks a ton.

After installed the correct version of CUDA (11.7), I wasn't uninstalling torch. I was just deleting the folders in the Houdini/scripts/python folder. Installing torch didn't compile it with CUDA as there was already torch CPU version present.

Following your advice, I uninstalled torch and installed again and it works!

from mlops.

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.