From 35d94cb5d552290fba7b15ce0a5cee86f59371db Mon Sep 17 00:00:00 2001 From: Vlad Marchuk Date: Fri, 20 Jun 2025 19:24:14 +0300 Subject: [PATCH] fix(TGWUI): Modify requirements.txt in correct directories --- Text Generation WebUI/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Text Generation WebUI/Dockerfile b/Text Generation WebUI/Dockerfile index a9c2068e..519ce725 100644 --- a/Text Generation WebUI/Dockerfile +++ b/Text Generation WebUI/Dockerfile @@ -23,8 +23,8 @@ ENV GPU_CHOICE=$GPU_CHOICE RUN apt update && apt install -y git &&\ git config --global --add safe.directory /home/node/app/text-generation-webui &&\ chmod +x ./text-generation-webui/start_linux.sh &&\ - find ./text-generation-webui -maxdepth 1 -type f -name "requirements*" -exec sed -i 's/transformers==/transformers[torch,flax,timm,sentencepiece,onnx,ftfy,tokenizers]==/g' {} \; &&\ - find ./text-generation-webui -maxdepth 1 -type f -name "requirements*" -exec sh -c 'echo "\nsacremoses\noptimum\nauto-gptq\nautoawq\nbitsandbytes" >> {}' \; &&\ + find ./text-generation-webui/requirements -maxdepth 2 -type f -name "requirements*" -exec sed -i 's/transformers==/transformers[torch,flax,timm,sentencepiece,onnx,ftfy,tokenizers]==/g' {} \; &&\ + find ./text-generation-webui/requirements -maxdepth 2 -type f -name "requirements*" -exec sh -c 'echo "\nsacremoses\noptimum\nauto-gptq\nautoawq\nbitsandbytes" >> {}' \; &&\ USE_CUDA118=FALSE LAUNCH_AFTER_INSTALL=FALSE INSTALL_EXTENSIONS=FALSE ./text-generation-webui/start_linux.sh &&\ apt remove git -y &&\ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb &&\