Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
100a309e
Commit
100a309e
authored
Apr 23, 2025
by
Jennifer Wei
Browse files
Maintainance to pl_upgrades
parent
c07075cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
environment.yml
environment.yml
+4
-5
openfold/model/primitives.py
openfold/model/primitives.py
+1
-1
scripts/install_third_party_dependencies.sh
scripts/install_third_party_dependencies.sh
+1
-1
No files found.
environment.yml
View file @
100a309e
...
@@ -15,10 +15,11 @@ dependencies:
...
@@ -15,10 +15,11 @@ dependencies:
-
biopython
-
biopython
-
numpy
-
numpy
-
pandas
-
pandas
-
PyYAML==5.4.1
-
PyYAML
-
pytorch
-
requests
-
requests
-
scipy
-
scipy
-
tqdm
==4.62.2
-
tqdm
-
typing-extensions
-
typing-extensions
-
wandb
-
wandb
-
modelcif==0.7
-
modelcif==0.7
...
@@ -30,10 +31,8 @@ dependencies:
...
@@ -30,10 +31,8 @@ dependencies:
-
bioconda::hmmer
-
bioconda::hmmer
-
bioconda::hhsuite
-
bioconda::hhsuite
-
bioconda::kalign2
-
bioconda::kalign2
-
pytorch::pytorch=2.1
-
pytorch::pytorch-cuda=12.1
-
pip
:
-
pip
:
-
deepspeed==0.1
2.4
-
deepspeed==0.1
4.5
-
dm-tree==0.1.6
-
dm-tree==0.1.6
-
git+https://github.com/NVIDIA/dllogger.git
-
git+https://github.com/NVIDIA/dllogger.git
-
flash-attn
-
flash-attn
openfold/model/primitives.py
View file @
100a309e
...
@@ -808,7 +808,7 @@ def _flash_attn(q, k, v, kv_mask):
...
@@ -808,7 +808,7 @@ def _flash_attn(q, k, v, kv_mask):
# [B_flat, N, 2 * H * C]
# [B_flat, N, 2 * H * C]
kv
=
kv
.
reshape
(
*
kv
.
shape
[:
-
3
],
-
1
)
kv
=
kv
.
reshape
(
*
kv
.
shape
[:
-
3
],
-
1
)
kv_unpad
,
_
,
kv_cu_seqlens
,
kv_max_s
=
unpad_input
(
kv
,
kv_mask
)
kv_unpad
,
_
,
kv_cu_seqlens
,
kv_max_s
,
_
=
unpad_input
(
kv
,
kv_mask
)
kv_unpad
=
kv_unpad
.
reshape
(
-
1
,
*
kv_shape
[
-
3
:])
kv_unpad
=
kv_unpad
.
reshape
(
-
1
,
*
kv_shape
[
-
3
:])
out
=
flash_attn_varlen_kvpacked_func
(
out
=
flash_attn_varlen_kvpacked_func
(
...
...
scripts/install_third_party_dependencies.sh
View file @
100a309e
...
@@ -14,7 +14,7 @@ gunzip -c tests/test_data/sample_feats.pickle.gz > tests/test_data/sample_feats.
...
@@ -14,7 +14,7 @@ gunzip -c tests/test_data/sample_feats.pickle.gz > tests/test_data/sample_feats.
python setup.py
install
python setup.py
install
echo
"Download CUTLASS, required for Deepspeed Evoformer attention kernel"
echo
"Download CUTLASS, required for Deepspeed Evoformer attention kernel"
git clone https://github.com/NVIDIA/cutlass
--depth
1
git clone https://github.com/NVIDIA/cutlass
--branch
v3.6.0
--depth
1
conda
env
config vars
set
CUTLASS_PATH
=
$PWD
/cutlass
conda
env
config vars
set
CUTLASS_PATH
=
$PWD
/cutlass
# This setting is used to fix a worker assignment issue during data loading
# This setting is used to fix a worker assignment issue during data loading
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment