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
7d9e6830
Commit
7d9e6830
authored
Jun 21, 2022
by
Gustaf Ahdritz
Browse files
Update config with offloading option
parent
887b4a71
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
openfold/config.py
openfold/config.py
+6
-2
No files found.
openfold/config.py
View file @
7d9e6830
...
...
@@ -119,7 +119,9 @@ def model_config(name, train=False, low_prec=False):
c
.
globals
.
blocks_per_ckpt
=
1
c
.
globals
.
chunk_size
=
None
c
.
globals
.
use_lma
=
False
c
.
globals
.
offload_inference
=
False
c
.
model
.
template
.
average_templates
=
False
c
.
model
.
template
.
offload_templates
=
False
if
low_prec
:
c
.
globals
.
eps
=
1e-4
# If we want exact numerical parity with the original, inf can't be
...
...
@@ -314,6 +316,7 @@ config = mlc.ConfigDict(
"blocks_per_ckpt"
:
blocks_per_ckpt
,
"chunk_size"
:
chunk_size
,
"use_lma"
:
False
,
"offload_inference"
:
False
,
"c_z"
:
c_z
,
"c_m"
:
c_m
,
"c_t"
:
c_t
,
...
...
@@ -364,6 +367,7 @@ config = mlc.ConfigDict(
"pair_transition_n"
:
2
,
"dropout_rate"
:
0.25
,
"blocks_per_ckpt"
:
blocks_per_ckpt
,
"tune_chunk_size"
:
tune_chunk_size
,
"inf"
:
1e9
,
},
"template_pointwise_attention"
:
{
...
...
@@ -409,7 +413,7 @@ config = mlc.ConfigDict(
"transition_n"
:
4
,
"msa_dropout"
:
0.15
,
"pair_dropout"
:
0.25
,
"clear_cache_between_blocks"
:
Tru
e
,
"clear_cache_between_blocks"
:
Fals
e
,
"tune_chunk_size"
:
tune_chunk_size
,
"inf"
:
1e9
,
"eps"
:
eps
,
# 1e-10,
...
...
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