Update fast_lora.py
This commit is contained in:
parent
39d251757f
commit
979de52220
1 changed files with 2 additions and 1 deletions
|
|
@ -176,8 +176,9 @@ class LoRA_MLP(torch.autograd.Function):
|
|||
pass
|
||||
pass
|
||||
|
||||
|
||||
from transformers.models.llama.modeling_llama import logger
|
||||
def apply_lora_mlp(self, X):
|
||||
logger.warning_once("Hello!")
|
||||
gate = self.gate_proj(X)
|
||||
up = self. up_proj(X)
|
||||
h = torch.nn.functional.silu(gate) * up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue