File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 352
352
353
353
max_msa_seqs = 16384
354
354
max_paired_seqs = 8192
355
+
356
+
357
+ ####################################################################################################
358
+ # CHUNKING
359
+ ####################################################################################################
360
+
361
+ chunk_size_threshold = 384
Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ def forward(
224
224
"""
225
225
# Set chunk sizes
226
226
if not self .training :
227
- if z .shape [1 ] > 512 :
227
+ if z .shape [1 ] > const . chunk_size_threshold :
228
228
chunk_heads_pwa = True
229
229
chunk_size_transition_z = 64
230
230
chunk_size_transition_msa = 32
@@ -520,7 +520,7 @@ def forward(
520
520
521
521
"""
522
522
if not self .training :
523
- if z .shape [1 ] > 512 :
523
+ if z .shape [1 ] > const . chunk_size_threshold :
524
524
chunk_size_tri_attn = 128
525
525
else :
526
526
chunk_size_tri_attn = 512
You can’t perform that action at this time.
0 commit comments