Update llama.py

This commit is contained in:
Daniel Han-Chen 2023-12-12 02:54:54 +11:00
parent b5a9c9c69d
commit 0e0e03c239

View file

@ -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,