Update llama.py
This commit is contained in:
parent
13d0cee4f6
commit
f999bcd52d
1 changed files with 1 additions and 1 deletions
|
|
@ -1399,7 +1399,7 @@ class FastLlamaModel:
|
|||
(down_proj.base_layer if hasattr(down_proj, "base_layer") else down_proj).bias is None:
|
||||
|
||||
# https://stackoverflow.com/questions/50599045/python-replacing-a-function-within-a-class-of-a-module
|
||||
# layer.mlp.forward = types.MethodType(apply_lora_mlp, layer.mlp)
|
||||
layer.mlp.forward = types.MethodType(apply_lora_mlp, layer.mlp)
|
||||
n_mlp += 1
|
||||
else:
|
||||
logger.warning_once(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue