Update __init__.py
Browse files- __init__.py +3 -4
__init__.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from typing import TYPE_CHECKING
|
2 |
|
3 |
from transformers.utils import (
|
@@ -8,7 +9,6 @@ from transformers.utils import (
|
|
8 |
|
9 |
_import_structure = {
|
10 |
"configuration_arlow_gpt": ["ARLOW_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP", "ArlowGPTConfig"],
|
11 |
-
"tokenization_arlow_gpt": ["ArlowGPTTokenizer"],
|
12 |
}
|
13 |
|
14 |
try:
|
@@ -19,13 +19,12 @@ except OptionalDependencyNotAvailable:
|
|
19 |
else:
|
20 |
_import_structure["modeling_arlow_gpt"] = [
|
21 |
"ArlowGPTModel",
|
22 |
-
"
|
23 |
"ArlowGPTPreTrainedModel",
|
24 |
]
|
25 |
|
26 |
if TYPE_CHECKING:
|
27 |
from .configuration_arlow_gpt import ARLOW_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP, ArlowGPTConfig
|
28 |
-
from .tokenization_arlow_gpt import ArlowGPTTokenizer
|
29 |
|
30 |
try:
|
31 |
if not is_torch_available():
|
@@ -35,7 +34,7 @@ if TYPE_CHECKING:
|
|
35 |
else:
|
36 |
from .modeling_arlow_gpt import (
|
37 |
ArlowGPTModel,
|
38 |
-
|
39 |
ArlowGPTPreTrainedModel,
|
40 |
)
|
41 |
|
|
|
1 |
+
# __init__.py
|
2 |
from typing import TYPE_CHECKING
|
3 |
|
4 |
from transformers.utils import (
|
|
|
9 |
|
10 |
_import_structure = {
|
11 |
"configuration_arlow_gpt": ["ARLOW_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP", "ArlowGPTConfig"],
|
|
|
12 |
}
|
13 |
|
14 |
try:
|
|
|
19 |
else:
|
20 |
_import_structure["modeling_arlow_gpt"] = [
|
21 |
"ArlowGPTModel",
|
22 |
+
"ArlowGPTForImageTextToText",
|
23 |
"ArlowGPTPreTrainedModel",
|
24 |
]
|
25 |
|
26 |
if TYPE_CHECKING:
|
27 |
from .configuration_arlow_gpt import ARLOW_GPT_PRETRAINED_CONFIG_ARCHIVE_MAP, ArlowGPTConfig
|
|
|
28 |
|
29 |
try:
|
30 |
if not is_torch_available():
|
|
|
34 |
else:
|
35 |
from .modeling_arlow_gpt import (
|
36 |
ArlowGPTModel,
|
37 |
+
ArlowGPTForImageTextToText,
|
38 |
ArlowGPTPreTrainedModel,
|
39 |
)
|
40 |
|