Skip to content

Commit

Permalink
add compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ardagoreci committed Aug 24, 2024
1 parent be9acdf commit fa95f99
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 176 deletions.
176 changes: 0 additions & 176 deletions configs/model/mini-af3.yaml

This file was deleted.

1 change: 1 addition & 0 deletions src/models/diffusion_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def rescale_with_updates(
r_update_scale = torch.sqrt(noisy_pos_scale) * timesteps.unsqueeze(-1)
return noisy_atoms * noisy_pos_scale + r_updates * r_update_scale

@torch.compile
def forward(
self,
noisy_atoms: Tensor, # (bs, S, n_atoms, 3)
Expand Down
1 change: 1 addition & 0 deletions src/models/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ def __init__(self, config):
LinearNoBias(self.c_z, self.c_z)
)

@torch.compile
def run_trunk(
self,
feats: Dict[str, Tensor],
Expand Down

0 comments on commit fa95f99

Please sign in to comment.