Update llama.py
This commit is contained in:
parent
a5ee70b63f
commit
a2cb7a113b
1 changed files with 1 additions and 1 deletions
|
|
@ -285,7 +285,7 @@ def fast_mlp_inference(self, X):
|
|||
# gate = self.gate_proj(X)
|
||||
# up = self.up_proj(X)
|
||||
bsz, _, hd = X.shape
|
||||
mlp_size = model.config.intermediate_size
|
||||
mlp_size = self.config.intermediate_size
|
||||
# temp = torch.empty((2, bsz, 1, mlp_size), dtype = X.dtype, device = "cuda")
|
||||
|
||||
gate = fast_linear_forward(self.gate_proj, X)#, out = temp[0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue