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
ColossalAI
Commits
cb68ee86
"git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "0d482302a15310a3c7e667b42f6c70fd707763d4"
Commit
cb68ee86
authored
Jan 09, 2023
by
oahzxl
Browse files
set benchmark
parent
4d223e18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/test_autochunk/benchmark_autochunk.py
tests/test_autochunk/benchmark_autochunk.py
+3
-3
No files found.
tests/test_autochunk/benchmark_autochunk.py
View file @
cb68ee86
...
...
@@ -98,14 +98,14 @@ def _build_openfold():
def
benchmark_evoformer
():
# init data and model
msa_len
=
256
pair_len
=
256
pair_len
=
512
node
=
torch
.
randn
(
1
,
msa_len
,
pair_len
,
256
).
cuda
()
pair
=
torch
.
randn
(
1
,
pair_len
,
pair_len
,
128
).
cuda
()
model
=
evoformer_base
().
cuda
()
# build autochunk model
max_memory
=
1000
# MB fit memory mode
#
max_memory = None # min memory mode
#
max_memory = 1000 # MB
,
fit memory mode
max_memory
=
None
# min memory mode
autochunk
=
_build_autochunk
(
evoformer_base
().
cuda
(),
max_memory
,
node
,
pair
)
# build openfold
...
...
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