Update mistral.py

This commit is contained in:
Daniel Han-Chen 2024-02-14 23:17:38 +11:00
commit 629c39d2e5

View file

@ -278,7 +278,7 @@ class FastMistralModel(FastLlamaModel):
# https://github.com/huggingface/transformers/pull/27931
# https://github.com/huggingface/transformers/blob/v4.37.2/src/transformers/models/llama/modeling_llama.py
import transformers.models.mistral.modeling_mistral
transformers.models.llama.modeling_mistral.MistralRotaryEmbedding = LlamaRotaryEmbedding
transformers.models.mistral.modeling_mistral.MistralRotaryEmbedding = LlamaRotaryEmbedding
return
pass