mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-31 22:50:15 +01:00
parent
657049d7d0
commit
b1d05cbbf6
11
webui.py
11
webui.py
@ -167,8 +167,17 @@ def update_dependencies():
|
|||||||
if not os.path.exists("repositories/"):
|
if not os.path.exists("repositories/"):
|
||||||
os.mkdir("repositories")
|
os.mkdir("repositories")
|
||||||
|
|
||||||
# Install GPTQ-for-LLaMa which enables 4bit CUDA quantization
|
|
||||||
os.chdir("repositories")
|
os.chdir("repositories")
|
||||||
|
|
||||||
|
# Install or update exllama as needed
|
||||||
|
if not os.path.exists("exllama/"):
|
||||||
|
run_cmd("git clone https://github.com/turboderp/exllama.git", environment=True)
|
||||||
|
else:
|
||||||
|
os.chdir("exllama")
|
||||||
|
run_cmd("git pull", environment=True)
|
||||||
|
os.chdir("..")
|
||||||
|
|
||||||
|
# Install GPTQ-for-LLaMa which enables 4bit CUDA quantization
|
||||||
if not os.path.exists("GPTQ-for-LLaMa/"):
|
if not os.path.exists("GPTQ-for-LLaMa/"):
|
||||||
run_cmd("git clone https://github.com/oobabooga/GPTQ-for-LLaMa.git -b cuda", assert_success=True, environment=True)
|
run_cmd("git clone https://github.com/oobabooga/GPTQ-for-LLaMa.git -b cuda", assert_success=True, environment=True)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user