AutoGPTQ: [BUG] Installation on Win11 failed
Describe the bug When I try to install auto-gpt on my windows PC I get this error: Failed to build auto-gptq ERROR: Could not build wheels for auto-gptq, which is required to install pyproject.toml-based projects
Hardware details Ryzen 7 3700 + nvidea RTX3060
Software version Windows 11, cuda on
To Reproduce
pip install auto-gptq
Expected behavior Install with no errors
Screenshots
Additional context
Is it possible to have a prebuilt version for windows?
About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 28 (7 by maintainers)
Commits related to this issue
- Fix `auto-gptq` installation issue See PanQiWei/AutoGPTQ#115 — committed to marella/chatdocs by marella a year ago
@TheBloke Thank you for your help and contribution to the community.
Hi guys, really sorry for the missing files in v0.2.1, I just notice this problem yesterday, a new patch will be released soon!
@unk1911 OK glad you got it sorted. It’s odd that you can install the 11.8 wheel successfully when it says it won’t compile it. Maybe that failure to compile issue is a hardcoded arbitrary restriction, like they block you compiling because they think it won’t work when it actually might. Or maybe it would fail to build anyway but does work if already built. I’m not really sure.
@Iory1998 In your case it should definitely have worked to do this:
or
But installing the wheel is fine as well so glad it’s working for you now.
@TheBloke I am still facing the same error on pytorch 2.0.1 with cuda11.8 I managed to install it using:
wget https://github.com/PanQiWei/AutoGPTQ/releases/download/v0.2.2/auto_gptq-0.2.2+cu118-cp310-cp310-win_amd64.whl pip install auto_gptq-0.2.2+cu118-cp310-cp310-win_amd64.whl
Or you can just download the right wheel from: https://github.com/PanQiWei/AutoGPTQ/releases/ Then pip install auto_gptq-0.2.2+cu118-cp310-cp310-win_amd64.whl
Oh yeah, that’s a different problem and that’s not AutoGPTQ’s fault. It’s pytorch that reports that message.
You need to get a pytorch compiled for 12.x, or downgrade to CUDA toolkit 11.8 if you want to compile anything new. There’s nothing AutoGPTQ can do about that I think.
You can probably override that by directly installing the 11.8 pre-built wheel, maybe that does work with 12.x. That’s what oobabooga does with text-generation-webui, he just installs the wheels directly:
In his case he can do that because his installer script creates a Miniconda environment, so he knows the user is definitely running Python 3.10.
Thank you marella for this. And I didn’t see your chatdocs tool before; That’s cool 😃 I was adding a new personality that allows you to do exactly that.
You beat me to it 😃
Congratulations. This seems really cool.
Yeah there’s something really wrong with PyPi install at the moment
I am telling everyone to install from source until PanQiWei can look into this