Update gemma.py
This commit is contained in:
parent
a48adb0a83
commit
ef235c3508
1 changed files with 4 additions and 4 deletions
|
|
@ -260,10 +260,10 @@ class FastGemmaModel(FastLlamaModel):
|
|||
# GemmaAttention .forward = LlamaAttention_fast_forward
|
||||
# GemmaSdpaAttention .forward = LlamaAttention_fast_forward
|
||||
# GemmaFlashAttention2.forward = LlamaAttention_fast_forward
|
||||
GemmaDecoderLayer .forward = GemmaDecoderLayer_fast_forward
|
||||
GemmaModel .forward = LlamaModel_fast_forward
|
||||
GemmaForCausalLM .forward = GemmaForCausalLM_fast_forward
|
||||
PeftModelForCausalLM.forward = PeftModelForCausalLM_fast_forward
|
||||
# GemmaDecoderLayer .forward = GemmaDecoderLayer_fast_forward
|
||||
# GemmaModel .forward = LlamaModel_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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue