Replies: 5 comments 3 replies
-
I tried specifying to haystack which Torch wheel to use
But that didn't work, I got the following warning
|
Beta Was this translation helpful? Give feedback.
-
I also tried specifying the following haystack to use the cu117 (Cuda 11.7), but no luck :(
|
Beta Was this translation helpful? Give feedback.
-
I know what you are talking about. The downgrade happens because we have a strict PyTorch version range specified. So when the new torch version comes out, it uninstalls yours and then installs even a wrong Cuda version (see light-the-torch readme). I'll see if we can somehow use https://github.com/pmeier/light-the-torch For now, install your desired version of torch, and it should most likely work. |
Beta Was this translation helpful? Give feedback.
-
Here is the solution I come up with installing from the source and configuring the Pytorch version. Installing FARM and specifying Pytorch version
Edit requirement.txt to point to the right PyTorch torch>1.12.2,<1.14
Installing Haystack forces it to use a specific Pytorch version
Edit pyproject.toml to point to the right PyTorch torch>1.12.2,<1.14
Checking Torch version
|
Beta Was this translation helpful? Give feedback.
-
Thanks for this @eboraks We can't at the moment migrate to 1.13 due to pytorch/pytorch#88869, so for the time being, the approach I would take is to use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When running Haystack with GPU I am getting the following error. After digging into it, I realize that Haystack is downgrading Pytorch to a version that isn't compatible with my CUDA. Is there away to prevent Haystack from doing it?
NVIDIA GeForce RTX 3060 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA GeForce RTX 3060 GPU with PyTorch, please check the instructions at
Steps to reproduce Haystack downgrading Pytorch
Collecting torch<1.13,>1.9 Using cached torch-1.12.1-cp38-cp38-manylinux1_x86_64.whl (776.3 MB)
Is there a way to prevent Haystack from using an old Pytorch?
Stuff that I tried
1.. tried specifying to haystack which Torch wheel to use
pip3 install farm-haystack -f https://download.pytorch.org/whl/cu117/torch-1.13.0%2Bcu117-cp311-cp311-linux_x86_64.whl
But that didn't work, I got the following warning
pip3 install farm-haystack -f https://download.pytorch.org/whl/cu117/torch-1.13.0%2Bcu117-cp311-cp311-linux_x86_64.whl
pip3 install farm-haystack -f https://download.pytorch.org/whl/cu117
Beta Was this translation helpful? Give feedback.
All reactions