Skip to content

Commit 57b6a34

Browse files
committed
only allow serial version of DiT to be checkpointable
1 parent 0c38547 commit 57b6a34

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,8 @@ def __init__(
16911691
conditionable_transition
16921692
]))
16931693

1694+
assert not (not serial and checkpoint), 'checkpointing can only be used for serial version of diffusion transformer'
1695+
16941696
self.checkpoint = checkpoint
16951697
self.checkpoint_segments = checkpoint_segments
16961698

0 commit comments

Comments
 (0)