-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
82 lines (69 loc) · 2.94 KB
/
Dockerfile
File metadata and controls
82 lines (69 loc) · 2.94 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM nvcr.io/nvidia/pytorch:25.06-py3
# Use bash as default shell
SHELL ["/bin/bash", "-c"]
# Toggle FlashAttention-3 installation at build time
ARG FA3=0
# (Optional) system utilities similar to previous image layer; can be removed if undesired
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
tmux \
htop \
nvtop \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# (Optional) upgrade pip first (not in install.sh but kept for robustness)
RUN pip3 install --no-cache-dir --upgrade pip
# -----------------------------
# Graph and geometric deep learning libraries
# -----------------------------
RUN pip3 install --no-cache-dir torch_geometric
RUN pip3 install --no-cache-dir --no-build-isolation torch-scatter -f https://data.pyg.org/whl/torch-2.8.0+cu129.html
RUN pip3 install --no-cache-dir --no-build-isolation torch-cluster -f https://data.pyg.org/whl/torch-2.8.0+cu129.html
# -----------------------------
# Additional PyTorch-related packages
# -----------------------------
RUN pip3 install --no-cache-dir torchmetrics
RUN pip3 install --no-cache-dir -U einops
RUN pip3 install --no-cache-dir bitsandbytes
# -----------------------------
# Transformers ecosystem
# -----------------------------
RUN pip3 install --no-cache-dir accelerate
RUN pip3 install --no-cache-dir transformers
RUN pip3 install --no-cache-dir timm
RUN pip3 install --no-cache-dir 'git+https://github.com/katsura-jp/pytorch-cosine-annealing-with-warmup'
# -----------------------------
# Visualization and logging
# -----------------------------
RUN pip3 install --no-cache-dir tensorboard
# -----------------------------
# Data handling & utilities
# -----------------------------
RUN pip3 install --no-cache-dir python-box
RUN pip3 install --no-cache-dir h5py
RUN pip3 install --no-cache-dir pandas
RUN pip3 install --no-cache-dir scikit-learn
RUN pip3 install --no-cache-dir joblib
# -----------------------------
# Specialized libraries
# -----------------------------
RUN pip3 install --no-cache-dir -U vector-quantize-pytorch
RUN pip3 install --no-cache-dir -U x_transformers
RUN pip3 install --no-cache-dir tmtools
RUN pip3 install --no-cache-dir jaxtyping
RUN pip3 install --no-cache-dir beartype
RUN pip3 install --no-cache-dir omegaconf
RUN pip3 install --no-cache-dir ndlinear
RUN pip3 install --no-cache-dir torch_tb_profiler
RUN pip3 install --no-cache-dir tqdm
RUN pip3 install --no-cache-dir biopython
RUN pip3 install --no-cache-dir graphein
RUN pip3 install --no-cache-dir cugraph-cu12 -f https://pypi.nvidia.com
RUN pip3 install --no-cache-dir pylibcugraphops-cu12 -f https://pypi.nvidia.com
# Optional FlashAttention-3 install for Hopper GPUs
COPY install_flash_attention_3_hopper.sh /opt/install_flash_attention_3_hopper.sh
RUN chmod +x /opt/install_flash_attention_3_hopper.sh
RUN if [ "$FA3" = "1" ]; then \
/opt/install_flash_attention_3_hopper.sh; \
fi
# Environment variables
ENV TOKENIZERS_PARALLELISM=false