Update mistral.py
This commit is contained in:
parent
8fa8bb883a
commit
252e5e31be
1 changed files with 3 additions and 2 deletions
|
|
@ -299,8 +299,9 @@ class FastMistralModel(FastLlamaModel):
|
|||
attention_module = MistralAttention,
|
||||
)
|
||||
# Just for Mistral Nemo models!
|
||||
function = patch_mistral_nemo_attention(function)
|
||||
if True:#init_name is not None:
|
||||
if function is not None:
|
||||
function = patch_mistral_nemo_attention(function)
|
||||
# if True:#init_name is not None:
|
||||
exec(function, globals())
|
||||
MistralAttention.__init__ = eval(init_name)
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue