Cyberes / xformers-compiled

xformers compiled for specific graphics cards.
MIT License
19 stars 6 forks source link

cyberes/gradient-base-py3.10:latest xformers whl error #9

Open kaanata opened 1 year ago

kaanata commented 1 year ago

I'm using paperspace and notebook is running cyberes/gradient-base-py3.10:latest contanier. I faced this error RTX 5000 xformers whl package.

pip install https://github.com/Cyberes/xformers-compiled/releases/download/RTX-5000-Nov-1-2022/rtx5000-xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl WARNING: Ignoring invalid distribution -formers (/usr/local/lib/python3.10/dist-packages) WARNING: Ignoring invalid distribution -formers (/usr/local/lib/python3.10/dist-packages) ERROR: rtx5000-xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl is not a supported wheel on this platform.

/storage/stable-diffusion/stable-diffusion-webui Requirement already satisfied: pip in /usr/local/lib/python3.10/dist-packages (23.0.1) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Requirement already satisfied: wheel in /usr/local/lib/python3.10/dist-packages (0.40.0) Requirement already satisfied: setuptools in /usr/local/lib/python3.10/dist-packages (67.6.1) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Found existing installation: torch 1.13.1+cu117 Uninstalling torch-1.13.1+cu117: Successfully uninstalled torch-1.13.1+cu117 Found existing installation: torchvision 0.14.1+cu117 Uninstalling torchvision-0.14.1+cu117: Successfully uninstalled torchvision-0.14.1+cu117 WARNING: Skipping torchaudio as it is not installed. Found existing installation: protobuf 4.22.3 Uninstalling protobuf-4.22.3: Successfully uninstalled protobuf-4.22.3 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Python 3.10.10 (main, Feb 8 2023, 14:50:01) [GCC 9.4.0] Commit hash: 22bcc7be428c94e9408f589966c2040187245d81 Installing torch and torchvision Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu117 Collecting torch==1.13.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torch-1.13.1%2Bcu117-cp310-cp310-linux_x86_64.whl (1801.8 MB) Collecting torchvision==0.14.1+cu117 Using cached https://download.pytorch.org/whl/cu117/torchvision-0.14.1%2Bcu117-cp310-cp310-linux_x86_64.whl (24.3 MB) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch==1.13.1+cu117) (4.5.0) Requirement already satisfied: numpy in /usr/local/lib/python3.10/dist-packages (from torchvision==0.14.1+cu117) (1.23.3) Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in /usr/local/lib/python3.10/dist-packages (from torchvision==0.14.1+cu117) (9.4.0) Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from torchvision==0.14.1+cu117) (2.28.2) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision==0.14.1+cu117) (3.1.0) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests->torchvision==0.14.1+cu117) (2019.11.28) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests->torchvision==0.14.1+cu117) (2.8) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests->torchvision==0.14.1+cu117) (1.26.15) Installing collected packages: torch, torchvision ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. open-clip-torch 2.7.0 requires protobuf==3.20.0, which is not installed. clean-fid 0.1.29 requires requests==2.25.1, but you have requests 2.28.2 which is incompatible. WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Successfully installed torch-1.13.1+cu117 torchvision-0.14.1+cu117 Installing requirements for Web UI If submitting an issue on github, please provide the full startup log for debugging purposes.

Initializing Dreambooth Dreambooth revision: 926ae204ef5de17efca2059c334b6098492a0641 Successfully installed accelerate-0.18.0 fastapi-0.94.1 gitpython-3.1.31 google-auth-oauthlib-0.4.6 requests-2.28.2 transformers-4.26.1

Does your project take forever to startup? Repetitive dependency installation may be the reason. Automatic1111's base project sets strict requirements on outdated dependencies. If an extension is using a newer version, the dependency is uninstalled and reinstalled twice every startup.

Your version of xformers is 0.0.16rc425.

xformers >= 0.0.17.dev is required to be available on the Dreambooth tab.

Torch 1 wheels of xformers >= 0.0.17.dev are no longer available on PyPI,

but you can manually download them by going to:

https://github.com/facebookresearch/xformers/actions

Click on the most recent action tagged with a release (middle column).

Select a download based on your environment.

Unzip your download

Activate your venv and install the wheel: (from A1111 project root)

cd venv/Scripts activate pip install {REPLACE WITH PATH TO YOUR UNZIPPED .whl file}

Then restart your project.

[!] xformers version 0.0.16rc425 installed. [+] torch version 1.13.1+cu117 installed. [+] torchvision version 0.14.1+cu117 installed. [+] accelerate version 0.18.0 installed. [+] diffusers version 0.14.0 installed. [+] transformers version 4.26.1 installed. [+] bitsandbytes version 0.35.4 installed.

Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (2.28.2) Requirement already satisfied: gdown in /usr/local/lib/python3.10/dist-packages (4.5.1) Requirement already satisfied: bs4 in /usr/local/lib/python3.10/dist-packages (0.0.1) Requirement already satisfied: markdownify in /usr/local/lib/python3.10/dist-packages (0.11.6) Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests) (1.26.15) Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests) (2019.11.28) Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.10/dist-packages (from requests) (3.1.0) Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests) (2.8) Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.10/dist-packages (from gdown) (4.11.2) Requirement already satisfied: six in /usr/local/lib/python3.10/dist-packages (from gdown) (1.16.0) Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from gdown) (3.9.0) Requirement already satisfied: tqdm in /usr/local/lib/python3.10/dist-packages (from gdown) (4.64.1) Requirement already satisfied: soupsieve>1.2 in /usr/local/lib/python3.10/dist-packages (from beautifulsoup4->gdown) (2.4) Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in /usr/local/lib/python3.10/dist-packages (from requests) (1.7.1) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Installing xformers... --2023-04-13 22:56:47-- https://raw.githubusercontent.com/Cyberes/xformers-compiled/main/p5000/xformers-0.0.16%2B6f3c20f.d20230127-cp39-cp39-linux_x86_64.whl Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.111.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 15184254 (14M) [application/octet-stream] Saving to: ‘/tmp/tmp.G8YLLgz3Q3/xformers-0.0.16rc425-cp310-cp310-manylinux2014_x86_64.whl ’

/tmp/tmp.G8YLLgz3Q3 100%[===================>] 14.48M --.-KB/s in 0.08s

2023-04-13 22:56:47 (178 MB/s) - ‘/tmp/tmp.G8YLLgz3Q3/xformers-0.0.16rc425-cp310-cp310-manylinux2014_x86_64.whl ’ saved [15184254/15184254]

WARNING: Requirement '/tmp/tmp.G8YLLgz3Q3/xformers-0.0.16rc425-cp310-cp310-manylinux2014_x86_64.whl' looks like a filename, but the file does not exist Processing /tmp/tmp.G8YLLgz3Q3/xformers-0.0.16rc425-cp310-cp310-manylinux2014_x86_64.whl ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/tmp/tmp.G8YLLgz3Q3/xformers-0.0.16rc425-cp310-cp310-manylinux2014_x86_64.whl'

=================================== Done! If you're seeing this the process has exited successfully.

/storage/stable-diffusion/stable-diffusion-webui 2023-04-13 23:02:26.361513: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-04-13 23:02:27.429139: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT /usr/local/lib/python3.10/dist-packages/flax/struct.py:136: FutureWarning: jax.tree_util.register_keypaths is deprecated, and will be removed in a future release. Please use register_pytree_with_keys() instead. jax.tree_util.register_keypaths(data_clz, keypaths) /usr/local/lib/python3.10/dist-packages/flax/struct.py:136: FutureWarning: jax.tree_util.register_keypaths is deprecated, and will be removed in a future release. Please use register_pytree_with_keys() instead. jax.tree_util.register_keypaths(data_clz, keypaths) Loading weights [09ad7fec0a] from /storage/stable-diffusion/stable-diffusion-webui/models/Stable-diffusion/MG-V1/MG-V1_7600.safetensors Creating model from config: /storage/stable-diffusion/stable-diffusion-webui/models/Stable-diffusion/MG-V1/MG-V1_7600.yaml LatentDiffusion: Running in eps-prediction mode DiffusionWrapper has 859.52 M params. Applying xformers cross attention optimization. Textual inversion embeddings loaded(0): Model loaded in 5.8s (load weights from disk: 0.3s, create model: 0.7s, apply weights to model: 2.1s, apply half(): 0.6s, load VAE: 2.1s). Running on local URL: http://127.0.0.1:7860/ Running on public URL: https://9a2e95cf24d4dcae81.gradio.live/

This share link expires in 72 hours. For free permanent hosting and GPU upgrades (NEW!), check out Spaces: https://huggingface.co/spaces Startup time: 16.5s (import torch: 4.6s, import gradio: 0.9s, import ldm: 0.5s, other imports: 1.2s, load scripts: 1.4s, load SD checkpoint: 6.0s, create ui: 0.5s, gradio launch: 1.2s).

Cyberes commented 1 year ago

Rebuild xformers using the block in the tools section.