Skip to content

Commit

Permalink
added compilation to specific blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
ardagoreci committed Aug 21, 2024
1 parent 9257dec commit 5d8396b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/models/msa_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def __init__(
inf=inf
)

@torch.compile
def forward(
self,
m: Tensor,
Expand Down
1 change: 1 addition & 0 deletions src/models/pairformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def __init__(
transition_n,
)

@torch.compile
def forward(
self,
s: Tensor, # (bs, 1, n_tokens, c_s)
Expand Down

0 comments on commit 5d8396b

Please sign in to comment.