Skip to content

Commit

Permalink
moving monkeypatch
Browse files Browse the repository at this point in the history
  • Loading branch information
djsaunde committed Dec 17, 2024
1 parent ae1ca2f commit 3e6e9fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from transformers import PreTrainedModel
from transformers.models.llama.modeling_llama import LLAMA_ATTENTION_CLASSES

from .multihead_diffattn import (
from axolotl.integrations.diff_transformer.multihead_diffattn import (
LlamaDifferentialAttention,
LlamaDifferentialSdpaAttention,
)
Expand Down
2 changes: 1 addition & 1 deletion src/axolotl/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def apply_patches(self) -> None:
patch_mistral_cross_entropy()

if self.cfg.diff_attention:
from axolotl.integrations.diff_transformer.patches import (
from axolotl.monkeypatch.attention.differential import (
patch_llama_attention_classes,
)

Expand Down

0 comments on commit 3e6e9fc

Please sign in to comment.