Hey GPT I'm having trouble getting GPTQ-for-LLaMa to run.. I'm on the CUDA branch, so…
- User
Hey GPT I'm having trouble getting GPTQ-for-LLaMa to run.. I'm on the CUDA branch, so there's a few things CUDA and Torch to do.. there's a setup_cuda.py I need to run to resolve some errors in the program, it looks like this:
from setuptools import setup, Extension from torch.utils import cpp_extension
setup( name='quant_cuda', ext_modules=[cpp_extension.CUDAExtension( 'quant_cuda', ['quant_cuda.cpp', 'quant_cuda_kernel.cu'] )], cmdclass={'build_ext': cpp_extension.BuildExtension} )
There's the quant_cuda.cpp and quant_cuda_kernel.cu in the same folder, provided by the GPTQ-for-LLaMa writers - I think what it does is provide custom CUDA code (like an extension?), that is written in C++ and then compiled/installed via a Python script provided by PyTorch(?). Anyways, I get the following error after trying to run it:
"C:\Users\MyUserName\miniconda3\envs\ai-env\lib\site-packages\torch\utils\cpp_extension.py:359: UserWarning: Error checking compiler version for cl: [WinError 2] Das System kann die angegebene Datei nicht finden warnings.warn(f'Error checking compiler version for {compiler}: {error}') error: [WinError 2] Das System kann die angegebene Datei nicht finden"
The German in the error message translates to "File not found". I read something about a path to "cl.exe", but I don't know what that's supposed to mean.. I'm running on an AMD processor, thought I'd mention that because I've seen the name AMD pop up a few times while looking for solutions. Thanks in advance! error: [WinError 2] Das System kann die angegebene Datei nicht finden
- Assistant
The error message you're encountering is related to the compiler, specifically the
cl.execompiler, which it seems your system is unable to find.cl.exeis a part of Microsoft Visual Studio and is used to compile C/C++ code.To fix this issue, try the steps below:
-
Make sure you have Microsoft Visual Studio installed on your computer, preferably the latest version. During installation, ensure that "Desktop development with C++" workload is selected, as it will include the necessary compiler components.
-
- User
Thank you very much, will try!
- Assistant
You're welcome! I hope it resolves your issue. If you encounter any more issues or have questions, please feel free to ask. Good luck!