Update mistral.py
This commit is contained in:
parent
e3a2dbbab6
commit
724cec30e9
1 changed files with 1 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ class FastMistralModel(FastLlamaModel):
|
|||
# Just for Mistral Nemo models!
|
||||
if function is not None:
|
||||
function = patch_mistral_nemo_attention(function)
|
||||
print(function)
|
||||
# if True:#init_name is not None:
|
||||
exec(function, globals())
|
||||
MistralAttention.__init__ = eval(init_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue