Skip to content

Commit 2cd5be3

Browse files
hakama2Gitea
authored andcommitted
Merge branch 'feature/merge-v2.2.0' of HPC-OpenFold/openfold-mirror into fugaku_v2
2 parents 6e99e3e + 7fc5014 commit 2cd5be3

211 files changed

Lines changed: 364359 additions & 4054 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"

.github/workflows/docker-image.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
14+
- name: Cleanup # https://github.com/actions/virtual-environments/issues/2840
15+
run: sudo rm -rf /usr/share/dotnet && sudo rm -rf /opt/ghc && sudo rm -rf "/usr/local/share/boost" && sudo rm -rf "$AGENT_TOOLSDIRECTORY"
1416
- name: Build the Docker image
15-
run: docker build . --file Dockerfile --tag openfold:$(date +%s)
17+
run: docker build . --file Dockerfile --tag openfold:$(date +%s)

.github/workflows/undefined_names.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ jobs:
44
undefined_names:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v2
8-
- uses: actions/setup-python@v2
7+
- uses: actions/checkout@v4
8+
- uses: actions/setup-python@v5
99
- run: pip install --upgrade pip
1010
- run: pip install flake8
1111
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ dist/
55
preproc/log/
66
train/log/
77
inference/log/
8-
openfold/resources/stereo_chemical_props.txt
98
*.out
109
*.stats
10+
.vscode/
11+
.idea/
12+
13+
# files from script downloads
14+
data
15+
openfold/resources/
16+
tests/test_data/
17+
cutlass/

.readthedocs.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
3+
# Set the OS, Python version and other tools you might need
4+
build:
5+
os: ubuntu-22.04
6+
tools:
7+
python: "mambaforge-4.10"
8+
9+
# Build documentation in the "docs/" directory with Sphinx
10+
sphinx:
11+
configuration: docs/source/conf.py
12+
13+
conda:
14+
environment: docs/environment.yml

CITATION.cff

Lines changed: 89 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,91 @@
11
cff-version: 1.2.0
2-
message: "For now, cite OpenFold with its DOI."
3-
authors:
4-
- family-names: "Ahdritz"
5-
given-names: "Gustaf"
6-
orcid: https://orcid.org/0000-0001-8283-5324
7-
- family-names: "Bouatta"
8-
given-names: "Nazim"
9-
orcid: https://orcid.org/0000-0002-6524-874X
10-
- family-names: "Kadyan"
11-
given-names: "Sachin"
12-
- family-names: "Xia"
13-
given-names: "Qinghui"
14-
- family-names: "Gerecke"
15-
given-names: "William"
16-
- family-names: "AlQuraishi"
17-
given-names: "Mohammed"
18-
orcid: https://orcid.org/0000-0001-6817-1322
19-
title: "OpenFold"
20-
doi: 10.5281/zenodo.5709539
2+
preferred-citation:
3+
authors:
4+
- family-names: "Ahdritz"
5+
given-names: "Gustaf"
6+
orcid: https://orcid.org/0000-0001-8283-5324
7+
- family-names: "Bouatta"
8+
given-names: "Nazim"
9+
orcid: https://orcid.org/0000-0002-6524-874X
10+
- family-names: "Kadyan"
11+
given-names: "Sachin"
12+
orcid: https://orcid.org/0000-0002-6079-7627
13+
- family-names: "Xia"
14+
given-names: "Qinghui"
15+
- family-names: "Gerecke"
16+
given-names: "William"
17+
orcid: https://orcid.org/0000-0002-9777-6192
18+
- family-names: "O'Donnell"
19+
given-names: "Timothy J"
20+
orcid: https://orcid.org/0000-0002-9949-069X
21+
- family-names: "Berenberg"
22+
given-names: "Daniel"
23+
orcid: https://orcid.org/0000-0003-4631-0947
24+
- family-names: "Fisk"
25+
given-names: "Ian"
26+
- family-names: "Zanichelli"
27+
given-names: "Niccolò"
28+
orcid: https://orcid.org/0000-0002-3093-3587
29+
- family-names: "Zhang"
30+
given-names: "Bo"
31+
orcid: https://orcid.org/0000-0002-9714-2827
32+
- family-names: "Nowaczynski"
33+
given-names: "Arkadiusz"
34+
orcid: https://orcid.org/0000-0002-3351-9584
35+
- family-names: "Wang"
36+
given-names: "Bei"
37+
orcid: https://orcid.org/0000-0003-4942-9652
38+
- family-names: "Stepniewska-Dziubinska"
39+
given-names: "Marta M"
40+
orcid: https://orcid.org/0000-0003-4942-9652
41+
- family-names: "Zhang"
42+
given-names: "Shang"
43+
orcid: https://orcid.org/0000-0003-0759-2080
44+
- family-names: "Ojewole"
45+
given-names: "Adegoke"
46+
orcid: https://orcid.org/0000-0003-2661-4388
47+
- family-names: "Guney"
48+
given-names: "Murat Efe"
49+
- family-names: "Biderman"
50+
given-names: "Stella"
51+
orcid: https://orcid.org/0000-0001-8228-1042
52+
- family-names: "Watkins"
53+
given-names: "Andrew M"
54+
orcid: https://orcid.org/0000-0003-1617-1720
55+
- family-names: "Ra"
56+
given-names: "Stephen"
57+
orcid: https://orcid.org/0000-0002-2820-0050
58+
- family-names: "Lorenzo"
59+
given-names: "Pablo Ribalta"
60+
orcid: https://orcid.org/0000-0002-3657-8053
61+
- family-names: "Nivon"
62+
given-names: "Lucas"
63+
- family-names: "Weitzner"
64+
given-names: "Brian"
65+
orcid: https://orcid.org/0000-0002-1909-0961
66+
- family-names: "Ban"
67+
given-names: "Yih-En"
68+
orcid: https://orcid.org/0000-0003-3698-3574
69+
- family-names: "Ban"
70+
given-names: "Yih-En Andrew"
71+
orcid: https://orcid.org/0000-0003-3698-3574
72+
- family-names: "Sorger"
73+
given-names: "Peter K"
74+
orcid: https://orcid.org/0000-0002-3364-1838
75+
- family-names: "Mostaque"
76+
given-names: "Emad"
77+
- family-names: "Zhang"
78+
given-names: "Zhao"
79+
orcid: https://orcid.org/0000-0001-5921-0035
80+
- family-names: "Bonneau"
81+
given-names: "Richard"
82+
orcid: https://orcid.org/0000-0003-4354-7906
83+
- family-names: "AlQuraishi"
84+
given-names: "Mohammed"
85+
orcid: https://orcid.org/0000-0001-6817-1322
86+
title: "OpenFold: Retraining AlphaFold2 yields new insights into its learning mechanisms and capacity for generalization"
87+
type: article
88+
doi: 10.1101/2022.11.20.517210
89+
doi: 10.1101/2022.11.20.517210
2190
date-released: 2021-11-12
22-
url: "https://github.com/aqlaboratory/openfold"
91+
url: "https://doi.org/10.1101/2022.11.20.517210"

Dockerfile

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
1-
FROM nvidia/cuda:10.2-cudnn8-runtime-ubuntu18.04
1+
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
2+
3+
# metainformation
4+
LABEL org.opencontainers.image.version = "2.0.0"
5+
LABEL org.opencontainers.image.authors = "OpenFold Team"
6+
LABEL org.opencontainers.image.source = "https://github.com/aqlaboratory/openfold"
7+
LABEL org.opencontainers.image.licenses = "Apache License 2.0"
8+
LABEL org.opencontainers.image.base.name="docker.io/nvidia/cuda:12.4.1-devel-ubuntu22.04"
9+
10+
RUN apt-get update && apt-get install -y wget
211

312
RUN apt-key del 7fa2af80
4-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
5-
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
13+
RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb
14+
RUN dpkg -i cuda-keyring_1.0-1_all.deb
15+
16+
RUN apt-get install -y libxml2 cuda-minimal-build-12-1 libcusparse-dev-12-1 libcublas-dev-12-1 libcusolver-dev-12-1 git
617

7-
RUN apt-get update && apt-get install -y wget cuda-minimal-build-10-2 git
818
RUN wget -P /tmp \
9-
"https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh" \
10-
&& bash /tmp/Miniconda3-latest-Linux-x86_64.sh -b -p /opt/conda \
11-
&& rm /tmp/Miniconda3-latest-Linux-x86_64.sh
19+
"https://github.com/conda-forge/miniforge/releases/download/23.3.1-1/Miniforge3-Linux-x86_64.sh" \
20+
&& bash /tmp/Miniforge3-Linux-x86_64.sh -b -p /opt/conda \
21+
&& rm /tmp/Miniforge3-Linux-x86_64.sh
1222
ENV PATH /opt/conda/bin:$PATH
1323

1424
COPY environment.yml /opt/openfold/environment.yml
1525

1626
# installing into the base environment since the docker container wont do anything other than run openfold
17-
RUN conda env update -n base --file /opt/openfold/environment.yml && conda clean --all
27+
RUN mamba env update -n base --file /opt/openfold/environment.yml && mamba clean --all
28+
RUN export LD_LIBRARY_PATH=${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}
1829

1930
COPY openfold /opt/openfold/openfold
2031
COPY scripts /opt/openfold/scripts
2132
COPY run_pretrained_openfold.py /opt/openfold/run_pretrained_openfold.py
2233
COPY train_openfold.py /opt/openfold/train_openfold.py
2334
COPY setup.py /opt/openfold/setup.py
24-
COPY lib/openmm.patch /opt/openfold/lib/openmm.patch
2535
RUN wget -q -P /opt/openfold/openfold/resources \
2636
https://git.scicore.unibas.ch/schwede/openstructure/-/raw/7102c63615b64735c4941278d92b554ec94415f8/modules/mol/alg/src/stereo_chemical_props.txt
27-
RUN patch -p0 -d /opt/conda/lib/python3.7/site-packages/ < /opt/openfold/lib/openmm.patch
2837
WORKDIR /opt/openfold
2938
RUN python3 setup.py install

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
same "printed page" as the copyright notice for easier
188188
identification within third-party archives.
189189

190-
Copyright [yyyy] [name of copyright owner]
190+
Copyright 2024 AlQuraishi Laboratory
191191

192192
Licensed under the Apache License, Version 2.0 (the "License");
193193
you may not use this file except in compliance with the License.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
「富岳」実装版OpenFoldのソースコードをクローンする
66
```shell
7-
git clone https://github.com/RIKEN-RCCS/OpenFold-for-Fugaku.git
8-
cd OpenFold-for-Fugaku
7+
git clone https://github.com/RIKEN-RCCS/openfold.git
8+
cd openfold
99
```
1010

1111
`openfold/resources/`ディレクトリに`stereo_chemical_props.txt`をダウンロードする
@@ -67,3 +67,4 @@ However, DeepMind's pretrained parameters fall under the CC BY 4.0 license, a co
6767
- Port the memory-efficient attention module to CPUs
6868
- Improve processing efficiency of batch matrix multiplications (BMMs) by making the input tensors to BMMs contiguous
6969
- Speed up reading of mmcif data by pickling and lz4 compression beforehand
70+

0 commit comments

Comments
 (0)