Code Monkey home page Code Monkey logo

Comments (11)

GrennKren avatar GrennKren commented on May 21, 2024 1

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. 

from diffusion-colabui.

PreCoi avatar PreCoi commented on May 21, 2024

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

from diffusion-colabui.

GrennKren avatar GrennKren commented on May 21, 2024

用了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

from diffusion-colabui.

PreCoi avatar PreCoi commented on May 21, 2024

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

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

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.

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

@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.

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

Triton has been fixed. Testing xformers

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

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

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

Upgrading to nightly triton...
Testing...

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

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

from diffusion-colabui.

acheong08 avatar acheong08 commented on May 21, 2024

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

from diffusion-colabui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.