export TERM=xterm
alias sudo=''

# system packages
apt update; apt install neovim cmake jq bc python3-pip unzip -y
wget https://gist.githubusercontent.com/BaksiLi/ea2f505fdbe42349a5225390264c1f40/raw/ff71c02d9fb4f933dcf04c9fe5dbd863ef2c135e/install_zellij.sh
source install_zellij.sh
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
apt install awscli -y

# aws
pip3 install --upgrade pip
pip3 install boto3 -U
aws configure set aws_access_key_id AKIA3GVNAZIMMLHUPWWI; aws configure set aws_secret_access_key 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

# conda
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3
rm ~/miniconda3/miniconda.sh
source ~/miniconda3/bin/activate
conda init --all

# create envs
printf "a\na\ny\n" | conda create -n ML python=3.13
conda create -n eval python=3.13 -y

# training libs
conda activate ML
pip3 install --upgrade pip
pip3 install torch torchvision torchaudio torchao torchtune transformers datasets wandb boto3 accelerate -U
conda deactivate

# eval libs
cd EncodEval
conda activate eval
pip3 install --upgrade pip
pip install .
pip install adjustText
git clone https://huggingface.co/avey-ai/avey1-tokenizer-base
cd ..

zellij
