Code Monkey home page Code Monkey logo

Comments (4)

zhuolisam avatar zhuolisam commented on June 10, 2024 13

I faced the same issue on Windows. Running pip install -r requirements.txt might not install torch with cuda-toolkit. You have two options:

  1. Use CPU by running python ingest.py --device_type cpu as mentioned in #6

  2. Uninstall torch and reinstall torch with cuda-toolkit

#uninstall
conda uninstall pytorch
pip uninstall torch torchvision
pip uninstall torch torchvision #run this two times

#reinstall
pip install torch==2.0.0+cu118 torchvision==0.15.1+cu118 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu118

from localgpt.

clovistx avatar clovistx commented on June 10, 2024

Both ingest.py and run_localGPT.py is forcing cuda device. Maybe if you change these device you could run.
I've tried on my Mac M1 to 'mps' but there is another error so i couldn't run the project yet.

from localgpt.

smithart avatar smithart commented on June 10, 2024

Thanks, zhuolisam! This solution worked for me.

from localgpt.

mindwellsolutions avatar mindwellsolutions commented on June 10, 2024

I'm assuming you are running this on Windows 10/11, since I only saw this error on that not my Ubuntu machine. This step by step will install Cuda support for pytorch on windows.

https://pub.towardsai.net/installing-pytorch-with-cuda-support-on-windows-10-a38b1134535e

from localgpt.

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.