Remove problematic imports and add utility files to config.json auto_map
Browse files- config.json +6 -1
- modeling_ablang2paired.py +1 -7
config.json
CHANGED
@@ -13,6 +13,11 @@
|
|
13 |
"auto_map": {
|
14 |
"AutoConfig": "configuration_ablang2paired.AbLang2PairedConfig",
|
15 |
"AutoModel": "modeling_ablang2paired.AbLang2PairedHFModel",
|
16 |
-
"AutoTokenizer": ["tokenizer_ablang2paired.AbLang2PairedTokenizer", "tokenizer_ablang2paired.AbLang2PairedTokenizer"]
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
}
|
|
|
13 |
"auto_map": {
|
14 |
"AutoConfig": "configuration_ablang2paired.AbLang2PairedConfig",
|
15 |
"AutoModel": "modeling_ablang2paired.AbLang2PairedHFModel",
|
16 |
+
"AutoTokenizer": ["tokenizer_ablang2paired.AbLang2PairedTokenizer", "tokenizer_ablang2paired.AbLang2PairedTokenizer"],
|
17 |
+
"AbRestore": "restoration.AbRestore",
|
18 |
+
"AbScores": "scores.AbScores",
|
19 |
+
"AbAlignment": "alignment.AbAlignment",
|
20 |
+
"AbEncoding": "ablang_encodings.AbEncoding",
|
21 |
+
"ExtraUtils": "extra_utils"
|
22 |
}
|
23 |
}
|
modeling_ablang2paired.py
CHANGED
@@ -21,13 +21,7 @@ except ImportError:
|
|
21 |
"Could not find AbLang module. Please ensure ablang.py is present in the repository."
|
22 |
)
|
23 |
|
24 |
-
|
25 |
-
# These imports ensure all utility files are included when the model is downloaded
|
26 |
-
import restoration
|
27 |
-
import scores
|
28 |
-
import alignment
|
29 |
-
import ablang_encodings
|
30 |
-
import extra_utils
|
31 |
|
32 |
|
33 |
|
|
|
21 |
"Could not find AbLang module. Please ensure ablang.py is present in the repository."
|
22 |
)
|
23 |
|
24 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
|
27 |
|