× Getting requirements to build wheel did not run successfully.
│ exit code: 4294967295
╰─> [1 lines of output]
torch is not installed, please install torch first!
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 4294967295
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
You could of course remove this check if you are convinced PyTorch is properly installed in your environment, but I would guess the build would fail at a later stage and the error is real, so check if different envs are used/created.
Yes, the PyTorch binaries ship with their own CUDA toolkit and only a properly installed NVIDIA driver is needed. Your locally installed CUDA toolkit will be used if you build PyTorch from source or a custom CUDA extension. The error is also unrelated to CUDA since no installed binary can be found at all.
Okay, I work in the same environment, have cuda, have a NVIDIA driver (I bought the laptop one week ago and updated everything). Is there anything else I could try to make it work?
Yes, you could install PyTorch manually and run and smoke test to make sure that PyTorch itself can be imported and your GPU used. Something like this should do it: import torch; print(torch.randn(1).cuda()). If this prints a proper CUDATensor your setup looks good. Afterwards try to install auto_gptq. If this then wipes your PyTorch installation or complains again, you could either debug their setup or ask the authors of this package.
import torch; print(torch.randn(1).cuda()) showd that cuda and torch are working together, but I still had the “torch is not installed, please install torch first!” error installing auto-gptq. I ended up downloading the auto-gptq from github and installing it with setup.py, after some minor errors it worked out well and there was no complaining about “torch is not installed, please install torch first!” despite it being in the setup.py code.
My model is working and I hope everything is fine now, so thank you very much for all your help I appreciate it very much!