-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG][ENV] WIndows requires two runs of setup.py before success #927
Comments
You need to check if your windows cuda toolkit is correctly enabled import torch
print(torch.cuda.is_available()) |
The error is strange because you are missing a cuda kernel that is part of setup. Did you get errors during install? also your cuda version 12.1, is very old and not compatible with Pytorch 2.5.1. Please use 12.4 or higher with torch 2.5.1. Please download and install a newer version of cuda-toolkit for windows. |
import torch DEVICE = "cuda:0" if torch.cuda.is_available() else "cpu" which is True |
I got error on first attempt of installation as i mentioned above. On 2nd attempt it built successfully.
|
The core problem is for whatever reason, the |
In new environment,
still same errror
first attempt error logs
2nd attempt log
|
@Qubitium Let me know where I am making mistake. |
Can you try WSL2 on windows? Debugging windows is a horrible experience. We can take another look at it tomorrow but you can try Ubuntu 24.04 WSL2 container on Windows for now. You will feel freedom and zero issues. |
@giradkar26 You need to merge ALL Tomorrow we can check why the |
Windows setup requireing two-runs has been fixed in PR #939 |
We are closing this issue as completed. For windows, users need to download Pytorch from Pytorch/Nvidia repo and not directly from pypi. |
Error in quantizing custom model
ValueError: Trying to use the cuda backend, but could not import the C++/CUDA dependencies with the following error: No module named 'gptqmodel_cuda_64'
Software Info
Operation System - Windows
Python Version - 3.10
torch==2.5.1+cu121
torchaudio==2.5.1+cu121
torchvision==0.20.1+cu121
Installation
For first attempt of installation, following error occur every time. Where as on 2nd attempt it successfully build.
First attempt log
Second attempt
Script to quantize
Expected behavior
I am trying to quantize the custom trained model but getting following error.
Let me know resolve for this.
Error log
The text was updated successfully, but these errors were encountered: