| import subprocess | |
| from IPython.display import display, HTML | |
| from PIL import Image | |
| html="<h1><code>BẮT ĐẦU CÀI ĐẶT CHƯƠNG TRÌNH ...</code></h1><p>_________</p>" | |
| display(HTML(html)) | |
| sudo apt-get install aria2 | |
| wget https://launchpad.net/ubuntu/+archive/primary/+files/libgoogle-perftools-dev_2.9.1-0ubuntu3_amd64.deb | |
| wget https://launchpad.net/ubuntu/+archive/primary/+files/google-perftools_2.9.1-0ubuntu3_amd64.deb | |
| wget https://launchpad.net/ubuntu/+archive/primary/+files/libtcmalloc-minimal4_2.9.1-0ubuntu3_amd64.deb | |
| wget https://launchpad.net/ubuntu/+archive/primary/+files/libgoogle-perftools4_2.9.1-0ubuntu3_amd64.deb | |
| apt install -qq libunwind8-dev | |
| dpkg -i *.deb | |
| rm *.deb | |
| pip install -q torch==2.0.0+cu118 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 | |
| pip install -q xformers==0.0.19 triton==2.0.0 -U |