Update modeling_Llamoe.py
Browse files- modeling_Llamoe.py +4 -0
modeling_Llamoe.py
CHANGED
@@ -32,6 +32,10 @@ from transformers.utils import (
|
|
32 |
logging,
|
33 |
replace_return_docstrings,
|
34 |
)
|
|
|
|
|
|
|
|
|
35 |
from transformers.utils.import_utils import is_torch_fx_available
|
36 |
from .configuration_Llamoe import LlamoeConfig
|
37 |
|
|
|
32 |
logging,
|
33 |
replace_return_docstrings,
|
34 |
)
|
35 |
+
from transformers.modeling_attn_mask_utils import (
|
36 |
+
_prepare_4d_causal_attention_mask,
|
37 |
+
_prepare_4d_causal_attention_mask_for_sdpa,
|
38 |
+
)
|
39 |
from transformers.utils.import_utils import is_torch_fx_available
|
40 |
from .configuration_Llamoe import LlamoeConfig
|
41 |
|