Update genai_config.json
Browse files- genai_config.json +54 -55
genai_config.json
CHANGED
|
@@ -1,56 +1,55 @@
|
|
| 1 |
-
{
|
| 2 |
-
"model": {
|
| 3 |
-
"bos_token_id": 1,
|
| 4 |
-
"context_length": 4096,
|
| 5 |
-
"decoder": {
|
| 6 |
-
"session_options": {
|
| 7 |
-
"log_id": "onnxruntime-genai",
|
| 8 |
-
"custom_ops_library": "onnxruntime_vitis_ai_custom_ops.dll",
|
| 9 |
-
"provider_options": [
|
| 10 |
-
{
|
| 11 |
-
"VitisAI": {
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
"
|
| 18 |
-
"
|
| 19 |
-
"
|
| 20 |
-
|
| 21 |
-
"
|
| 22 |
-
"
|
| 23 |
-
"
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
-
"
|
| 46 |
-
"
|
| 47 |
-
"
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
-
"
|
| 51 |
-
"
|
| 52 |
-
"
|
| 53 |
-
"
|
| 54 |
-
|
| 55 |
-
}
|
| 56 |
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"context_length": 4096,
|
| 5 |
+
"decoder": {
|
| 6 |
+
"session_options": {
|
| 7 |
+
"log_id": "onnxruntime-genai",
|
| 8 |
+
"custom_ops_library": "onnxruntime_vitis_ai_custom_ops.dll",
|
| 9 |
+
"provider_options": [
|
| 10 |
+
{
|
| 11 |
+
"VitisAI": {
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
]
|
| 15 |
+
},
|
| 16 |
+
"filename": "model.onnx",
|
| 17 |
+
"head_size": 128,
|
| 18 |
+
"hidden_size": 4096,
|
| 19 |
+
"inputs": {
|
| 20 |
+
"input_ids": "input_ids",
|
| 21 |
+
"attention_mask": "attention_mask",
|
| 22 |
+
"past_key_names": "past_key_values.%d.key",
|
| 23 |
+
"past_value_names": "past_key_values.%d.value"
|
| 24 |
+
},
|
| 25 |
+
"outputs": {
|
| 26 |
+
"logits": "logits",
|
| 27 |
+
"present_key_names": "present.%d.key",
|
| 28 |
+
"present_value_names": "present.%d.value"
|
| 29 |
+
},
|
| 30 |
+
"num_attention_heads": 32,
|
| 31 |
+
"num_hidden_layers": 32,
|
| 32 |
+
"num_key_value_heads": 32
|
| 33 |
+
},
|
| 34 |
+
"eos_token_id": 2,
|
| 35 |
+
"pad_token_id": 0,
|
| 36 |
+
"type": "llama",
|
| 37 |
+
"vocab_size": 32000
|
| 38 |
+
},
|
| 39 |
+
"search": {
|
| 40 |
+
"diversity_penalty": 0.0,
|
| 41 |
+
"do_sample": true,
|
| 42 |
+
"early_stopping": true,
|
| 43 |
+
"length_penalty": 1.0,
|
| 44 |
+
"max_length": 4096,
|
| 45 |
+
"min_length": 0,
|
| 46 |
+
"no_repeat_ngram_size": 0,
|
| 47 |
+
"num_beams": 1,
|
| 48 |
+
"num_return_sequences": 1,
|
| 49 |
+
"past_present_share_buffer": true,
|
| 50 |
+
"repetition_penalty": 1.0,
|
| 51 |
+
"temperature": 0.6,
|
| 52 |
+
"top_k": 1,
|
| 53 |
+
"top_p": 0.9
|
| 54 |
+
}
|
|
|
|
| 55 |
}
|