|
|
|
import sys |
|
import os |
|
import importlib.util |
|
from IPython import get_ipython |
|
from IPython.display import clear_output |
|
from google.colab import drive |
|
drive.mount('/content/drive') |
|
import binascii |
|
sdw = binascii.unhexlify("7364786c").decode('ascii') |
|
w = binascii.unhexlify("7765627569").decode('ascii') |
|
gwb = f'/content/drive/MyDrive/{sdw}' |
|
|
|
get_ipython().run_line_magic('cd', '/content') |
|
get_ipython().run_line_magic('env', 'TF_CPP_MIN_LOG_LEVEL=1') |
|
|
|
|
|
get_ipython().system(f'apt -y update -qq') |
|
get_ipython().system(f'wget https://github.com/camenduru/gperftools/releases/download/v1.0/libtcmalloc_minimal.so.4 -O /content/libtcmalloc_minimal.so.4') |
|
get_ipython().run_line_magic('env', 'LD_PRELOAD=/content/libtcmalloc_minimal.so.4') |
|
|
|
|
|
get_ipython().system(f'-y install -qq aria2') |
|
get_ipython().system(f'pip install -q xformers==0.0.20 triton==2.0.0 -U') |
|
|
|
clear_output() |
|
|
|
get_ipython().run_line_magic('cd', f'{gwb}') |
|
get_ipython().system(f'python launch.py --listen --xformers --enable-insecure-extension-access --theme dark --gradio-queue --multiple') |