Skip to content

Commit

Permalink
Update llama_attn_hijack.py (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0rk0z authored Oct 8, 2023
1 parent 2e8b5f7 commit 2e47107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/llama_attn_hijack.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


def hijack_llama_attention():
import transformers.models.llama.modeling_llama
if shared.args.xformers:
transformers.models.llama.modeling_llama.LlamaAttention.forward = xformers_forward
logger.info("Replaced attention with xformers_attention")
Expand Down

0 comments on commit 2e47107

Please sign in to comment.