-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (38 loc) · 1.51 KB
/
Dockerfile
File metadata and controls
46 lines (38 loc) · 1.51 KB
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
40
41
42
43
44
45
46
# syntax=docker/dockerfile:1.7
# NOTE: switch to cudnn-devel if you need to compile CUDA extensions (e.g. flash-attn from source)
FROM nvidia/cuda:12.8.0-cudnn-runtime-ubuntu24.04
ENV DEBIAN_FRONTEND=noninteractive \
PYTHONPATH=/app \
PATH=/opt/venv/bin:/usr/local/bin:$PATH \
TF_CPP_MIN_LOG_LEVEL=2 \
TF_ENABLE_ONEDNN_OPTS=0 \
TOKENIZERS_PARALLELISM=true \
PROJECT_ROOT=/workspace \
HF_HUB_ENABLE_HF_TRANSFER=1 \
DISABLE_PANDERA_IMPORT_WARNING=True \
HF_HOME=/workspace/.cache/huggingface \
TORCH_HOME=/workspace/.cache/torch \
XDG_CACHE_HOME=/workspace/.cache \
WANDB_DIR=/workspace/logs \
TQDM_CACHE=/workspace/.cache/tqdm
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
apt-get update && \
apt-get install -y --no-install-recommends \
build-essential curl git ca-certificates \
python3.12 python3.12-dev python3.12-venv \
ninja-build && \
python3.12 -m venv /opt/venv && \
ln -sf /opt/venv/bin/python /usr/local/bin/python && \
ln -sf /opt/venv/bin/pip /usr/local/bin/pip
WORKDIR /app
COPY requirements.txt .
RUN pip install --upgrade pip setuptools
RUN git clone https://github.com/Profluent-AI/E1.git && cd E1 && pip install -e . && cd ..
RUN pip install esm -U
RUN pip install -r requirements.txt
RUN pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128 -U
RUN pip install numpy==1.26.4
COPY . .
WORKDIR /workspace
CMD ["bash"]