From 8ced0c411fb86bc81ff81dd0387405d837f6e147 Mon Sep 17 00:00:00 2001 From: Drake Panzer <64224601+Cyberes@users.noreply.github.com> Date: Fri, 27 Jan 2023 12:36:26 -0700 Subject: [PATCH] update xformers --- StableDiffusionUI_Voldemort_paperspace.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/StableDiffusionUI_Voldemort_paperspace.ipynb b/StableDiffusionUI_Voldemort_paperspace.ipynb index 0654884..97c046b 100644 --- a/StableDiffusionUI_Voldemort_paperspace.ipynb +++ b/StableDiffusionUI_Voldemort_paperspace.ipynb @@ -238,6 +238,8 @@ " sys.exit(1)\n", "\n", "from pathlib import Path\n", + "import os\n", + "\n", "%cd \"{Path(repo_storage_dir, 'stable-diffusion-webui')}\"\n", "\n", "!pip install --upgrade pip\n", @@ -249,8 +251,6 @@ " !python3 -m crudini --set /etc/pip.conf global cache-dir \"{pip_cache_dir}\"\n", " !echo \"Set pip cache directory: $(pip cache dir)\"\n", "\n", - "import os\n", - "\n", "# Uninstall PyTorch and some other libraries so the WebUI can install the versions it needs\n", "!pip uninstall -y torch torchvision torchaudio protobuf\n", "\n", @@ -296,7 +296,7 @@ " elif 'A6000' in s:\n", " xformers_whl = download_release('https://github.com/Cyberes/xformers-compiled/releases/download/A6000-Nov-1-2022/a6000-xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl')\n", " elif 'P5000' in s:\n", - " xformers_whl = download_release('https://github.com/Cyberes/xformers-compiled/releases/download/P5000-Nov-1-2022/p5000-xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl')\n", + " xformers_whl = download_release('https://raw.githubusercontent.com/Cyberes/xformers-compiled/main/p5000/xformers-0.0.16%2B6f3c20f.d20230127-cp39-cp39-linux_x86_64.whl')\n", " elif 'RTX 4000' in s:\n", " xformers_whl = download_release('https://github.com/Cyberes/xformers-compiled/releases/download/RTX-4000-Nov-1-2022/rtx4000-xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl')\n", " elif 'RTX 5000' in s:\n", @@ -1572,9 +1572,9 @@ "source": [ "%%bash\n", "apt update && apt install jq\n", + "pip install ninja\n", "\n", "TMP=$(mktemp -d)\n", - "\n", "cd \"$TMP\"\n", "git clone --no-checkout https://github.com/facebookresearch/xformers.git\n", "cd xformers\n",