Commit
·
fc23ed6
1
Parent(s):
a7725f2
Upload start.txt
Browse files
start.txt
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import subprocess
|
2 |
+
from IPython.display import display, HTML
|
3 |
+
from PIL import Image
|
4 |
+
html="<h1><code>BẮT ĐẦU CÀI ĐẶT CHƯƠNG TRÌNH - VUI LÒNG ĐỢI ...</code></h1><h3><code>☕️ Pha một ly cà phê đợi 10 phút nữa nhé ...</code></h3><h3><code>☕️ Hãy để ý nháy vào đường dẫn <a>gradio.live</a> để sử dụng</code></h3><p>_________</p>"
|
5 |
+
display(HTML(html))
|
6 |
+
|
7 |
+
apt -y update -qq
|
8 |
+
wget http://launchpadlibrarian.net/367274644/libgoogle-perftools-dev_2.5-2.2ubuntu3_amd64.deb
|
9 |
+
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/google-perftools_2.5-2.2ubuntu3_all.deb
|
10 |
+
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libtcmalloc-minimal4_2.5-2.2ubuntu3_amd64.deb
|
11 |
+
wget https://launchpad.net/ubuntu/+source/google-perftools/2.5-2.2ubuntu3/+build/14795286/+files/libgoogle-perftools4_2.5-2.2ubuntu3_amd64.deb
|
12 |
+
apt install -qq libunwind8-dev
|
13 |
+
dpkg -i *.deb
|
14 |
+
rm *.deb
|
15 |
+
|
16 |
+
pip install -q torch==2.0.0+cu118 torchmetrics==0.11.4 torchvision==0.15.1+cu118 torchaudio==2.0.1+cu118 torchtext==0.15.1 torchdata==0.6.0 --extra-index-url https://download.pytorch.org/whl/cu118 -U
|
17 |
+
pip install -q xformers==0.0.19 triton==2.0.0 -U
|
18 |
+
sudo apt-get install aria2
|