This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrintUtils: | |
res = "" | |
@staticmethod | |
def DIR_KEY(x): return f'+ {x.name}/' | |
@staticmethod | |
def FILE_KEY(x): return f'- {x.name}' | |
@staticmethod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove any existing CMake installation | |
echo "Removing existing CMake installation..." | |
sudo apt remove cmake -y | |
# Install build-essential package | |
echo "Installing build-essential package..." | |
sudo apt-get install build-essential | |
# Download CMake 3.2.2 source code | |
echo "Downloading CMake 3.2.2 source code..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker pull ghcr.io/huggingface/text-generation-inference:latest | |
# install cmake v3.2 | |
# sudo apt remove cmake -y | |
# sudo rm -rf kineto | |
# sudo rm -rf cmake-3.29.2.tar.gz cmake-3.29.2/ | |
sudo rm -rf text-generation-inference/ | |
tree -L 3 | |
# install openssl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create the coco directory and cd into it | |
mkdir coco | |
cd coco | |
# Create the images directory and cd into it | |
mkdir images | |
cd images | |
# Download the dataset zip files in parallel | |
wget http://images.cocodataset.org/zips/train2017.zip & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/Syllo/nvtop/releases/download/3.1.0/nvtop-x86_64.AppImage | |
chmod u+x nvtop-x86_64.AppImage | |
# update bashrc | |
echo 'alias nvtop="~/nvtop-x86_64.AppImage"' >> ~/.bashrc | |
source ~/.bashrc | |
# Enjoy nvtop | |
nvtop |