Fix possible crash (#53)

This commit is contained in:
Semjon Kravtšenko 2023-05-06 07:14:09 +03:00 committed by GitHub
parent dec31af910
commit 126d216384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -130,7 +130,8 @@ def update_dependencies():
run_cmd("conda install -y -k gxx_linux-64=11.2.0", environment=True)
# Compile and install GPTQ-for-LLaMa
os.rename("setup_cuda.py", "setup.py")
if os.path.exists('setup_cuda.py'):
os.rename("setup_cuda.py", "setup.py")
run_cmd("python -m pip install .", environment=True)
# Wheel installation can fail while in the build directory of a package with the same name