-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRFdifusion.def
More file actions
65 lines (53 loc) · 2 KB
/
RFdifusion.def
File metadata and controls
65 lines (53 loc) · 2 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
Bootstrap: docker
From: nvcr.io/nvidia/cuda:11.6.2-cudnn8-runtime-ubuntu20.04
%post
set -e # Exit on any error
export DEBIAN_FRONTEND=noninteractive
echo "### Updating package lists and enabling repositories..."
apt-get -q update
apt-get install -q -y software-properties-common
add-apt-repository universe
add-apt-repository restricted
add-apt-repository ppa:deadsnakes/ppa
apt-get -q update
echo "### Installing dependencies..."
apt-get install --no-install-recommends -y \
nano \
wget \
git \
python3.9 \
python3.9-venv \
python3.9-distutils \
python3-pip
echo "### Upgrading pip..."
python3.9 -m ensurepip
python3.9 -m pip install -q -U --no-cache-dir pip
echo "### Installing NumPy..."
python3.9 -m pip install -q --no-cache-dir "numpy<2.0"
echo "### Installing Python dependencies..."
python3.9 -m pip install -q --no-cache-dir \
dgl==1.0.2+cu116 -f https://data.dgl.ai/wheels/cu116/repo.html \
torch==1.12.1+cu116 --extra-index-url https://download.pytorch.org/whl/cu116 \
e3nn==0.3.3 \
wandb==0.12.0 \
pynvml==11.0.0 \
git+https://github.com/NVIDIA/dllogger#egg=dllogger \
decorator==5.1.0 \
hydra-core==1.3.2 \
pyrsistent==0.19.3
echo "### Installing RFdiffusion and SE3Transformer..."
python3.9 -m pip install --no-cache-dir /app/RFdiffusion/env/SE3Transformer
python3.9 -m pip install --no-cache-dir /app/RFdiffusion --no-deps
echo "### Cleaning up..."
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
echo "### Post section completed successfully!"
%files
# Copy the RFdiffusion source files into the container
RFdiffusion /app/RFdiffusion
%environment
# Set environment variables
export DGLBACKEND="pytorch"
export PATH="/usr/bin:$PATH"
%runscript
# Default behavior when the container runs
exec python3.9 /app/RFdiffusion/scripts/run_inference.py "$@"