This commit is contained in:
Saifeddine ALOUI 2023-09-01 00:05:49 +02:00
parent 6717f8f447
commit f31eb1797f

2
app.py
View File

@ -862,7 +862,7 @@ class LoLLMsWebUI(LoLLMsAPPI):
pass
ASCIIColors.green("PyTorch unstalled successfully")
ASCIIColors.yellow("Installing pytorch with cuda support")
res = subprocess.check_call(["pip","install","--upgrade","torch==2.0.1+cu117", "torchvision", "torchaudio", "--index-url", "https://download.pytorch.org/whl/cu117","no-cache"])
res = subprocess.check_call(["pip","install","--upgrade","torch==2.0.1+cu117", "torchvision", "torchaudio", "--index-url", "https://download.pytorch.org/whl/cu117","--no-cache"])
if res==0:
ASCIIColors.green("PyTorch installed successfully")
import torch