Update gemma.py
This commit is contained in:
parent
4c6e122caa
commit
c07aff5188
1 changed files with 3 additions and 3 deletions
|
|
@ -257,9 +257,9 @@ class FastGemmaModel(FastLlamaModel):
|
|||
|
||||
@staticmethod
|
||||
def pre_patch():
|
||||
GemmaAttention .forward = LlamaAttention_fast_forward
|
||||
GemmaSdpaAttention .forward = LlamaAttention_fast_forward
|
||||
GemmaFlashAttention2.forward = LlamaAttention_fast_forward
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue