12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- ARG PERSONAL=0
- FROM nvcr.io/nvidia/pytorch:22.12-py3 as base
- ENV HOST docker
- ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
- ENV TZ America/Los_Angeles
- RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
- RUN apt-get update && apt-get install -y --no-install-recommends \
- build-essential \
- cmake \
- curl \
- ca-certificates \
- sudo \
- less \
- htop \
- git \
- tzdata \
- wget \
- tmux \
- zip \
- unzip \
- zsh stow subversion fasd \
- && rm -rf /var/lib/apt/lists/*
-
- ENV HOME=/home/user
- RUN mkdir -p /home/user && chmod 777 /home/user
- WORKDIR /home/user
- FROM base as env-0
- FROM env-0 as env-1
- ONBUILD COPY dotfiles ./dotfiles
- ONBUILD RUN cd ~/dotfiles && stow bash zsh tmux && sudo chsh -s /usr/bin/zsh $(whoami)
- ONBUILD ENV SHELL=/bin/zsh
- FROM env-${PERSONAL} as packages
- ENV PIP_NO_CACHE_DIR=1
- RUN pip uninstall -y xgboost && DS_BUILD_UTILS=1 DS_BUILD_FUSED_LAMB=1 pip install deepspeed==0.7.7
- RUN pip install pytest matplotlib jupyter ipython ipdb gpustat scikit-learn spacy munch einops opt_einsum fvcore gsutil cmake pykeops zstandard psutil h5py twine gdown \
- && python -m spacy download en_core_web_sm
- RUN pip install hydra-core==1.3.1 hydra-colorlog==1.2.0 hydra-optuna-sweeper==1.2.0 pyrootutils rich
- RUN pip install transformers==4.25.1 datasets==2.8.0 pytorch-lightning==1.8.6 triton==2.0.0.dev20221202 wandb==0.13.7 timm==0.6.12 torchmetrics==0.10.3
- RUN pip install git+https://github.com/mlcommons/logging.git@2.1.0
- RUN pip install flash-attn==2.6.3
- RUN pip install git+https://github.com/Dao-AILab/flash-attention@v2.6.3
|