Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Broken optimizations #9

Closed
acheong08 opened this issue Oct 22, 2022 · 11 comments
Closed

Broken optimizations #9

acheong08 opened this issue Oct 22, 2022 · 11 comments
Labels
help wanted Extra attention is needed

Comments

@acheong08
Copy link
Owner

xformers and triton are both broken in Automatic1111's webui. I cannot fix this.

Can someone help?

@acheong08 acheong08 added the help wanted Extra attention is needed label Oct 22, 2022
@GrennKren
Copy link

GrennKren commented Oct 23, 2022

Well.. I use xformers in kaggle and colab. Basically, installing in an inside virtual environment with Python 3.10

In Colab, you can choose between Pyenv and Conda for your virtual environment (download manually first).

In Kaggle , Conda was already built in.

Pyenv
#Download and installing
! curl https://pyenv.run | bash

#Initialization required environtment path
import os
os.environ['PYENV_ROOT']=f"{os.environ['HOME']}/.pyenv"
os.environ['PATH']+=f":{os.environ['PYENV_ROOT']}/bin"

#setup virtual environtment and Python 3.10
! sudo apt-get install -y libffi-dev
! pyenv install 3.10.7
! pyenv local 3.10.7
! python --version
! pyenv exec python --version

#Download Install xformers from my compiled binaries
!curl -L https://github.com/GrennKren/xformers_wheel/releases/download/v0.0.14_py310/xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl --output "xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl"
!pyenv exec pip install xformers-0.0.14.dev0-cp310-cp310-linux_x86_64.whl

#Launching webui
! COMMANDLINE_ARGS="--share --xformers" REQS_FILE="requirements.txt" pyenv exec python launch.py
Conda
#Download and install IF conda wasnt installed
! curl --output conda.sh -L https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
! bash conda.sh -b    # -b for silent install

#Setup virtual environtment and python 3.10
! conda create -y -n YouNameIt python=3.10
! python --version
! conda run -n YouNameIt python --version

#Install Xformers 
! conda install -y -n YouNameIt xformers -c xformers/label/dev

#Launching Webui
! COMMANDLINE_ARGS="--share --xformers" REQS_FILE="requirements.txt" conda run -n YouNameIt --no-capture-output python launch.py
# --no-capture-output is needed because conda run was not produce any output until the python program completed. 

@PreCoi
Copy link

PreCoi commented Oct 23, 2022

用了ipynb文件后,造成Colab账号封禁。

@GrennKren
Copy link

GrennKren commented Oct 23, 2022

用了ipynb文件后,造成Colab账号封禁。

It may have something to do with that

"model" . My two accounts, kaggle, were also recently locked. Right now I am trying again to make a new notebook without sharing the notebook in public.

Edit::
still no sign of being locked when turning off to private

@PreCoi
Copy link

PreCoi commented Oct 23, 2022

能解封吗?不知道能否申诉成功。

@acheong08
Copy link
Owner Author

Hello. I apologize that this has caused the lockdown of your accounts. It may have something to do with the violation of certain Google policies:

  • creating deepfakes
  • file hosting, media serving, or other web service offerings not related to interactive compute with Colab

This cannot be resolved by me.

@acheong08
Copy link
Owner Author

@PreCoi It might take a few days for your account to be unlocked. In the meantime, I recommend using dummy accounts for Colab. It is also not recommended to keep the colab running for more than two hours at a time.

@acheong08 acheong08 pinned this issue Oct 24, 2022
@acheong08
Copy link
Owner Author

Triton has been fixed. Testing xformers

@acheong08
Copy link
Owner Author

Triton has not been fixed. Error: triton-lang/triton#625

@acheong08
Copy link
Owner Author

acheong08 commented Nov 2, 2022

Upgrading to nightly triton...
Testing...

@acheong08
Copy link
Owner Author

More errors. Seems like default xformers is outdated. Installing newer xformers takes very long

@acheong08
Copy link
Owner Author

Xformers has no improvements considering the time it takes to update the dependencies

@acheong08 acheong08 unpinned this issue Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants