revert
This commit is contained in:
parent
94201755db
commit
82e45c02a5
2 changed files with 5 additions and 5 deletions
|
|
@ -582,10 +582,10 @@ class FastGemmaModel(FastLlamaModel):
|
|||
# GemmaAttention .forward = GemmaAttention_fast_forward
|
||||
# GemmaSdpaAttention .forward = GemmaAttention_fast_forward
|
||||
# GemmaFlashAttention2.forward = GemmaAttention_fast_forward
|
||||
GemmaDecoderLayer .forward = GemmaDecoderLayer_fast_forward
|
||||
GemmaModel .forward = GemmaModel_fast_forward
|
||||
GemmaForCausalLM .forward = GemmaForCausalLM_fast_forward
|
||||
PeftModelForCausalLM.forward = PeftModelForCausalLM_fast_forward
|
||||
# GemmaDecoderLayer .forward = GemmaDecoderLayer_fast_forward
|
||||
# GemmaModel .forward = GemmaModel_fast_forward
|
||||
# GemmaForCausalLM .forward = GemmaForCausalLM_fast_forward
|
||||
# PeftModelForCausalLM.forward = PeftModelForCausalLM_fast_forward
|
||||
|
||||
# Solves https://github.com/unslothai/unsloth/issues/168
|
||||
# Static KV Cache was introduced in 4.38.0, causing training to be much slower.
|
||||
|
|
|
|||
|
|
@ -1400,7 +1400,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