update xformers
This commit is contained in:
parent
cbbe8e40f7
commit
8ced0c411f
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue