Unverified Commit b2e0ad3b authored by Murali Andoorveedu's avatar Murali Andoorveedu Committed by GitHub
Browse files

[Perf] Reduce peak memory usage of llama (#10339)


Signed-off-by: default avatarandoorve <37849411+andoorve@users.noreply.github.com>
parent 4a18fd14
......@@ -90,8 +90,8 @@ class LlamaMLP(nn.Module):
self.act_fn = SiluAndMul()
def forward(self, x):
gate_up, _ = self.gate_up_proj(x)
x = self.act_fn(gate_up)
x, _ = self.gate_up_proj(x)
x = self.act_fn(x)
x, _ = self.down_proj(x)
return x
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment