simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dolly not using GPU

UtahDave opened this issue · comments

I ran into the issue you hit where the GPU isn't being used by pytorch.

First you need to find out which version on cuda is installed, then you need to install pytorch kind of like this:

sudo pip install torch==1.12.1+cu113 --extra-index-url https://download.pytorch.org/whl/cu113

Change the torch version to what you want and change the cuda version to match what's installed in your environment