-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (29 loc) · 872 Bytes
/
Copy pathDockerfile
File metadata and controls
39 lines (29 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONUNBUFFERED=1 \
UV_LINK_MODE=copy \
CUDA_HOME=/usr/local/cuda \
PATH="/root/.local/bin:/workspace/nanotron/.venv/bin:${PATH}"
WORKDIR /workspace
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
git-lfs \
curl \
ca-certificates \
build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
WORKDIR /workspace/training
RUN uv venv .venv --python 3.12
RUN uv pip install --upgrade pip setuptools wheel packaging
RUN uv pip install torch>=2.2.0 --index-url https://download.pytorch.org/whl/cu124
RUN uv pip install \
datasets \
transformers>=5.0.0 \
accelerate>=1.1.0 \
tensorboardx \
safetensors \
torchtyping \
numba \
wandb
CMD ["/bin/bash"]