Update config.json
Browse files- config.json +40 -48
config.json
CHANGED
|
@@ -1,52 +1,44 @@
|
|
| 1 |
{
|
| 2 |
-
"model_type": "
|
| 3 |
-
"
|
| 4 |
-
"
|
| 5 |
-
"
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
-
},
|
| 35 |
-
"belief_desire_intent_tree": {
|
| 36 |
-
"type": "recursive_neural_network"
|
| 37 |
-
},
|
| 38 |
-
"iragel": {
|
| 39 |
-
"retrieval_model": "path/to/retrieval_model",
|
| 40 |
-
"generation_model": "path/to/generation_model"
|
| 41 |
-
},
|
| 42 |
-
"explainer": {
|
| 43 |
-
"type": "attention_visualization"
|
| 44 |
-
},
|
| 45 |
-
"realtime_learning": {
|
| 46 |
-
"type": "online_learning",
|
| 47 |
-
"learning_rate": 0.001
|
| 48 |
-
},
|
| 49 |
-
"knowledge_base": {
|
| 50 |
-
"type": "knowledge_graph_embeddings"
|
| 51 |
}
|
| 52 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "custom",
|
| 3 |
+
"custom_model": {
|
| 4 |
+
"module": "path.to.your.custom_module",
|
| 5 |
+
"class": "CSUMLMModel",
|
| 6 |
+
"config": {
|
| 7 |
+
"text_encoder": {
|
| 8 |
+
"model_name": "bert-base-uncased",
|
| 9 |
+
"pretrained_weights": "path/to/bert-base-uncased"
|
| 10 |
+
},
|
| 11 |
+
"image_encoder": {
|
| 12 |
+
"model_name": "resnet50",
|
| 13 |
+
"pretrained_weights": "path/to/resnet50"
|
| 14 |
+
},
|
| 15 |
+
"audio_encoder": {
|
| 16 |
+
"model_name": "wav2vec2-base",
|
| 17 |
+
"pretrained_weights": "path/to/wav2vec2-base"
|
| 18 |
+
},
|
| 19 |
+
"fusion_layer": {
|
| 20 |
+
"type": "concatenate",
|
| 21 |
+
"output_dim": 1024
|
| 22 |
+
},
|
| 23 |
+
"output_layer": {
|
| 24 |
+
"type": "dense",
|
| 25 |
+
"units": 1,
|
| 26 |
+
"activation": "sigmoid"
|
| 27 |
+
},
|
| 28 |
+
"attention_mechanism": {
|
| 29 |
+
"traditional_attention": {
|
| 30 |
+
"type": "bahdanau"
|
| 31 |
+
},
|
| 32 |
+
"self_attention": {
|
| 33 |
+
"type": "scaled_dot_product"
|
| 34 |
+
},
|
| 35 |
+
"linear_attention": {
|
| 36 |
+
"type": "linear"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
"belief_desire_intent_tree": {
|
| 40 |
+
"type": "recursive_neural_network"
|
| 41 |
+
}
|
| 42 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
}
|
| 44 |
}
|