Skip to content

Commit ecf8bfd

Browse files
committed
fix an issue with dim_pairwise not being propagated and try to get Alexs end2end test working on github actions
1 parent 0a8bae5 commit ecf8bfd

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

alphafold3_pytorch/alphafold3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,7 @@ def __init__(
17351735
self.pairwise_conditioner = PairwiseConditioning(
17361736
dim_pairwise_trunk = dim_pairwise_trunk,
17371737
dim_pairwise_rel_pos_feats = dim_pairwise_rel_pos_feats,
1738+
dim_pairwise = dim_pairwise,
17381739
**pairwise_cond_kwargs
17391740
)
17401741

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "alphafold3-pytorch"
3-
version = "0.1.135"
3+
version = "0.1.136"
44
description = "Alphafold 3 - Pytorch"
55
authors = [
66
{ name = "Phil Wang", email = "[email protected]" }

tests/test_af3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ def test_alphafold3(
476476

477477
alphafold3 = Alphafold3(
478478
dim_atom_inputs = 77,
479+
dim_pairwise = 64,
479480
atoms_per_window = atoms_per_window,
480481
dim_template_feats = 44,
481482
num_dist_bins = 38,

tests/test_input.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ def test_pdbinput_input():
160160
# training
161161

162162
alphafold3 = Alphafold3(
163+
dim_atom=8,
164+
dim_atompair=8,
165+
dim_input_embedder_token=8,
166+
dim_single=8,
167+
dim_pairwise=8,
168+
dim_token=8,
163169
dim_atom_inputs=3,
164170
dim_atompair_inputs=1,
165171
atoms_per_window=27,
@@ -168,7 +174,7 @@ def test_pdbinput_input():
168174
confidence_head_kwargs=dict(pairformer_depth=1),
169175
template_embedder_kwargs=dict(pairformer_stack_depth=1),
170176
msa_module_kwargs=dict(depth=1),
171-
pairformer_stack=dict(depth=2),
177+
pairformer_stack=dict(depth=1),
172178
diffusion_module_kwargs=dict(
173179
atom_encoder_depth=1,
174180
token_transformer_depth=1,

0 commit comments

Comments
 (0)