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