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
71526dff
"lib/llm/vscode:/vscode.git/clone" did not exist on "f91d5488eab6343068b869393d9a7b47f3a58237"
Commit
71526dff
authored
Nov 13, 2023
by
Christina Floristean
Browse files
Config file fix
parent
aebda3d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
openfold/config.py
openfold/config.py
+4
-5
No files found.
openfold/config.py
View file @
71526dff
...
@@ -32,11 +32,10 @@ def enforce_config_constraints(config):
...
@@ -32,11 +32,10 @@ def enforce_config_constraints(config):
),
),
]
]
for
s1
,
s2
in
mutually_exclusive_bools
:
for
options
in
mutually_exclusive_bools
:
s1_setting
=
string_to_setting
(
s1
)
option_settings
=
[
string_to_setting
(
o
)
for
o
in
options
]
s2_setting
=
string_to_setting
(
s2
)
if
sum
(
option_settings
)
>
1
:
if
(
s1_setting
and
s2_setting
):
raise
ValueError
(
f
"Only one of
{
', '
.
join
(
options
)
}
may be set at a time"
)
raise
ValueError
(
f
"Only one of
{
s1
}
and
{
s2
}
may be set at a time"
)
fa_is_installed
=
importlib
.
util
.
find_spec
(
"flash_attn"
)
is
not
None
fa_is_installed
=
importlib
.
util
.
find_spec
(
"flash_attn"
)
is
not
None
if
config
.
globals
.
use_flash
and
not
fa_is_installed
:
if
config
.
globals
.
use_flash
and
not
fa_is_installed
:
...
...
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