Commit ·
584808a
1
Parent(s): 73c0556
feat: remove modeling_vila_new.py
Browse files- modeling_vila_new.py +0 -17
modeling_vila_new.py
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
from typing import Type
|
| 2 |
-
|
| 3 |
-
from transformers.modeling_outputs import CausalLMOutputWithPast
|
| 4 |
-
from transformers.modeling_utils import PreTrainedModel
|
| 5 |
-
|
| 6 |
-
from configuration_vila import VILAConfig
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
class VILAForConditionalGeneration(PreTrainedModel):
|
| 10 |
-
# Overridden class attributes.
|
| 11 |
-
config_class: Type = VILAConfig
|
| 12 |
-
base_model_prefix: str = "vila"
|
| 13 |
-
is_parallelizable: bool = True
|
| 14 |
-
main_input_name: str = "input_ids"
|
| 15 |
-
|
| 16 |
-
def forward(self, *args, **kwargs) -> CausalLMOutputWithPast:
|
| 17 |
-
raise NotImplementedError
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|