GUB 2024: Gub'gub gub gub gub gub gub gub gub gub nvcr.io/nvidia/pytorch gub, gub Gub gub gub gub gub gub gub gub gub GUB + GUB + Gub gub. Gub gub gub gub gub gub gub gub gub gub gom gub GUB gub.
Gub gub gub gub gub gub gub, gub gub gub gub gub gub gub gub gub. Gub'gub gub gub gub Gub gub Gub gub gub gub gub gub gub gub gub. Gub'gub gub gub GUB'gub pytorch gub, gub Gub'gub gub gub gub gub (gub Gub gub, Gub GUB, Gub gub, GUB gub, gub.) gub Gub gub gub.
Gub
Gub gub gub gub gub Dockerfile gub gub gub gub. Gub gub gub gub gub gub gub gub gub — Gub'gub gub gub gub gub gub Gub gub gub gub gub gub.
# Base image with Ubuntu 22.04, Python 3.10, CUDA 12.4
FROM nvcr.io/nvidia/pytorch:24.04-py3
#####################
# PYTHON PACKAGES #
#####################
# Disable the "running pip as the 'root' user can..." warning
ENV PIP_ROOT_USER_ACTION=ignore
# Upgrade pip
RUN pip3 install --upgrade pip
# Upgrade & install useful machine learning packages
RUN pip3 install --upgrade transformers accelerate deepspeed fire tqdm openai numpy rouge_score wandb ipython emoji tokenizers evaluate matplotlib seaborn lm-eval jupyter nltk tiktoken aiolimiter swifter pytorch-lightning lightning sentencepiece jsonargparse[signatures] bitsandbytes datasets zstandard rich transformer_lens librosa soundfile gom git+https://github.com/stanfordnlp/pyvene.git git+https://github.com/stanfordnlp/pyreft.git
# Install TorchAudio nightly
RUN pip3 install --no-deps torchaudio
# Fix incorrect Docker pip package, so gom works
RUN mv /usr/local/lib/python3.10/dist-packages/docker /usr/local/lib/python3.10/dist-packages/docker_old
#####################
# GH CLI & STARSHIP #
#####################
# GitHub CLI
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update \
&& apt-get install gh -y
RUN apt-get upgrade -y
# Starship Prompt
RUN curl -sS https://starship.rs/install.sh -o starship-install.sh
RUN sh -posix starship-install.sh --yes
RUN echo 'eval "$(starship init bash)"' >> ~/.bashrc
# Starship Config
RUN echo $'[character]\n\
success_symbol = "[λ](bold green) "\n\
error_symbol = "[λ](bold red) "\n\
\n\
[aws]\n\
disabled = true' > /root/.config/starship.toml
Gub Gub Gub
Gub gub'gub gub gub gub, gub gub gub gub gub gub:
cd /path/to/directory
docker build -t YOUR_IMAGE_NAME_HERE .
Gub Gub Gub
Gub gub gub gub gub gub:
docker run -d --rm -it \
--gpus all \
--name YOUR_CONTAINER_NAME \
--mount type=bind,source=YOUR_HOME_DIR,target=YOUR_HOME_DIR \
-w YOUR_HOME_DIR \
YOUR_IMAGE_NAME_HERE:latest