From 0e0e03c239cbb1c1f360c535d439cdc5036af757 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Tue, 12 Dec 2023 02:54:54 +1100 Subject: [PATCH] Update llama.py --- unsloth/models/llama.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py index a3a91ab33d..e4b5118e62 100644 --- a/unsloth/models/llama.py +++ b/unsloth/models/llama.py @@ -15,8 +15,8 @@ import torch from typing import Optional, Tuple, List, Union from torch.nn.functional import scaled_dot_product_attention +from transformers.modeling_attn_mask_utils import _prepare_4d_causal_attention_mask from transformers.models.llama.modeling_llama import ( - _prepare_4d_causal_attention_mask, logger, BaseModelOutputWithPast, CausalLMOutputWithPast,