Skip to content

Commit

Permalink
Merge pull request #223 from eliebak/fix-torch-compile
Browse files Browse the repository at this point in the history
remove torch compile
  • Loading branch information
zzhhjjj authored Aug 29, 2024
2 parents 6cf2d63 + 3a45a34 commit 4a2ddca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nanotron/models/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__(
bias=False,
async_communication=tp_linear_async_communication and tp_mode is TensorParallelLinearMode.REDUCE_SCATTER,
)
self.split_silu_mul = torch.compile(GLUActivation(config.hidden_act))
self.split_silu_mul = GLUActivation(config.hidden_act)

def forward(self, hidden_states): # [seq_length, batch_size, hidden_dim]
merged_states = self.gate_up_proj(hidden_states)
Expand Down

0 comments on commit 4a2ddca

Please sign in to comment.