Update modeling_mplug_owl2_huggingface.py
Browse files
modeling_mplug_owl2_huggingface.py
CHANGED
|
@@ -31,6 +31,7 @@ from transformers.modeling_outputs import CausalLMOutputWithPast
|
|
| 31 |
|
| 32 |
from .configuration_mplug_owl2 import MPLUGOwl2Config, MplugOwlVisionConfig, MplugOwlVisualAbstractorConfig
|
| 33 |
from .visual_encoder import MplugOwlVisionModel, MplugOwlVisualAbstractorModel
|
|
|
|
| 34 |
from .modeling_llama2 import replace_llama_modality_adaptive
|
| 35 |
IGNORE_INDEX = -100
|
| 36 |
IMAGE_TOKEN_INDEX = -200
|
|
|
|
| 31 |
|
| 32 |
from .configuration_mplug_owl2 import MPLUGOwl2Config, MplugOwlVisionConfig, MplugOwlVisualAbstractorConfig
|
| 33 |
from .visual_encoder import MplugOwlVisionModel, MplugOwlVisualAbstractorModel
|
| 34 |
+
from .modeling_attn_mask_utils import *
|
| 35 |
from .modeling_llama2 import replace_llama_modality_adaptive
|
| 36 |
IGNORE_INDEX = -100
|
| 37 |
IMAGE_TOKEN_INDEX = -200
|