Delete __init__.py
Browse files- __init__.py +0 -61
__init__.py
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
# coding=utf-8
|
2 |
-
# Copyright 2024 weblab. team. All rights reserved.
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
-
from typing import TYPE_CHECKING
|
16 |
-
|
17 |
-
from transformers.utils import (
|
18 |
-
OptionalDependencyNotAvailable,
|
19 |
-
_LazyModule,
|
20 |
-
is_torch_available,
|
21 |
-
)
|
22 |
-
|
23 |
-
_import_structure = {
|
24 |
-
"configuration_kinoe": ["KinoeConfig"],
|
25 |
-
}
|
26 |
-
|
27 |
-
try:
|
28 |
-
if not is_torch_available():
|
29 |
-
raise OptionalDependencyNotAvailable()
|
30 |
-
except OptionalDependencyNotAvailable:
|
31 |
-
pass
|
32 |
-
else:
|
33 |
-
_import_structure["modeling_kinoe"] = [
|
34 |
-
"KinoeForCausalLM",
|
35 |
-
"KinoeModel",
|
36 |
-
"KinoePreTrainedModel",
|
37 |
-
"KinoeForSequenceClassification",
|
38 |
-
"KinoeForTokenClassification",
|
39 |
-
]
|
40 |
-
|
41 |
-
if TYPE_CHECKING:
|
42 |
-
from .configuration_kinoe import KinoeConfig
|
43 |
-
|
44 |
-
try:
|
45 |
-
if not is_torch_available():
|
46 |
-
raise OptionalDependencyNotAvailable()
|
47 |
-
except OptionalDependencyNotAvailable:
|
48 |
-
pass
|
49 |
-
else:
|
50 |
-
from .modeling_kinoe import (
|
51 |
-
KinoeForCausalLM,
|
52 |
-
KinoeForSequenceClassification,
|
53 |
-
KinoeForTokenClassification,
|
54 |
-
KinoeModel,
|
55 |
-
KinoePreTrainedModel,
|
56 |
-
)
|
57 |
-
|
58 |
-
else:
|
59 |
-
import sys
|
60 |
-
|
61 |
-
sys.modules[__name__] = _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|