auto_map in the config
Browse files- modeling.py +5 -0
modeling.py
CHANGED
@@ -10,6 +10,11 @@ from ultra.eval import test
|
|
10 |
class UltraConfig(PretrainedConfig):
|
11 |
|
12 |
model_type = "ultra"
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
def __init__(
|
15 |
self,
|
|
|
10 |
class UltraConfig(PretrainedConfig):
|
11 |
|
12 |
model_type = "ultra"
|
13 |
+
|
14 |
+
"auto_map": {
|
15 |
+
"AutoConfig": "modeling.UltraConfig",
|
16 |
+
"AutoModel": "modeling.UltraForKnowledgeGraphReasoning",
|
17 |
+
}
|
18 |
|
19 |
def __init__(
|
20 |
self,
|