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
9caf30ae
Commit
9caf30ae
authored
Apr 24, 2025
by
Jennifer Wei
Browse files
Change casting for deepspeed compare model test to fp32
parent
0c2d455e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/test_deepspeed_evo_attention.py
tests/test_deepspeed_evo_attention.py
+1
-2
No files found.
tests/test_deepspeed_evo_attention.py
View file @
9caf30ae
...
...
@@ -315,8 +315,7 @@ class TestDeepSpeedKernel(unittest.TestCase):
# Move the recycling dimension to the end
move_dim
=
lambda
t
:
t
.
permute
(
*
range
(
len
(
t
.
shape
))[
1
:],
0
)
batch
=
tensor_tree_map
(
move_dim
,
batch
)
with
torch
.
no_grad
():
with
torch
.
cuda
.
amp
.
autocast
(
dtype
=
torch
.
bfloat16
):
with
torch
.
no_grad
(),
torch
.
cuda
.
amp
.
autocast
(
dtype
=
torch
.
float32
):
model
=
compare_utils
.
get_global_pretrained_openfold
()
model
.
globals
.
use_deepspeed_evo_attention
=
False
out_repro
=
model
(
batch
)
...
...
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