updated pre_patch for phi2
This commit is contained in:
parent
a1e2b0d43c
commit
f2112b14ad
1 changed files with 4 additions and 2 deletions
|
|
@ -169,8 +169,10 @@ class FastPhi2Model(FastLlamaModel):
|
|||
|
||||
@staticmethod
|
||||
def pre_patch():
|
||||
return
|
||||
|
||||
PhiAttention .forward = Phi2Attention_fast_forward
|
||||
PhiFlashAttention2 .forward = Phi2Attention_fast_forward
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def from_pretrained(
|
||||
model_name = "unsloth/llama-2-7b-bnb-4bit", #TODO: update me.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue