fix paths for text gen

This commit is contained in:
Mathieu Broillet 2024-08-30 12:38:18 +02:00
parent c2edd9edca
commit 5e3ed50527
Signed by: mathieu
GPG Key ID: A08E484FE95074C1

View File

@ -29,8 +29,8 @@ class TextGenerationWebui(Stack):
# Install the webui # Install the webui
self.git_clone(url=self.url, dest="webui") self.git_clone(url=self.url, dest="webui")
self.remove_line_in_file(["accelerate", "lm_eval", "optimum", "autoawq", "llama_cpp_python"], self.remove_line_in_file(["accelerate", "lm_eval", "optimum", "autoawq", "llama_cpp_python"],
"../text-generation-rocm/webui/requirements_amd.txt") "webui/requirements_amd.txt")
self.install_requirements("../text-generation-rocm/webui/requirements_amd.txt") self.install_requirements("webui/requirements_amd.txt")
self.pip_install(["accelerate", "optimum"]) self.pip_install(["accelerate", "optimum"])
self.pip_install( self.pip_install(
"https://github.com/casper-hansen/AutoAWQ_kernels/releases/download/v0.0.7/autoawq_kernels-0.0.7+rocm571-cp310-cp310-linux_x86_64.whl", "https://github.com/casper-hansen/AutoAWQ_kernels/releases/download/v0.0.7/autoawq_kernels-0.0.7+rocm571-cp310-cp310-linux_x86_64.whl",
@ -39,7 +39,7 @@ class TextGenerationWebui(Stack):
"https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.6/autoawq-0.2.6-cp310-cp310-linux_x86_64.whl", "https://github.com/casper-hansen/AutoAWQ/releases/download/v0.2.6/autoawq-0.2.6-cp310-cp310-linux_x86_64.whl",
no_deps=True) no_deps=True)
# Fix llama trying to use cuda version # Fix llama trying to use cuda version
self.remove_line_in_file("llama_cpp_cuda", "../text-generation-rocm/webui/modules/llama_cpp_python_hijack.py") self.remove_line_in_file("llama_cpp_cuda", "webui/modules/llama_cpp_python_hijack.py")
# Install useful packages # Install useful packages
self.pip_install( self.pip_install(