goodspeed3 commited on
Commit
e816d10
1 Parent(s): 2c9c20c

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +67 -51
config.json CHANGED
@@ -1,53 +1,69 @@
1
  {
2
- "model": {
3
- "bos_token_id": 1,
4
- "context_length": 131072,
5
- "decoder": {
6
- "session_options": {
7
- "log_id": "onnxruntime-genai",
8
- "provider_options": []
9
- },
10
- "filename": "phi3-mini-128k-instruct-cpu-int4-rtn-block-32-acc-level-4.onnx",
11
- "head_size": 96,
12
- "hidden_size": 3072,
13
- "inputs": {
14
- "input_ids": "input_ids",
15
- "attention_mask": "attention_mask",
16
- "position_ids": "position_ids",
17
- "past_key_names": "past_key_values.%d.key",
18
- "past_value_names": "past_key_values.%d.value"
19
- },
20
- "outputs": {
21
- "logits": "logits",
22
- "present_key_names": "present.%d.key",
23
- "present_value_names": "present.%d.value"
24
- },
25
- "num_attention_heads": 32,
26
- "num_hidden_layers": 32,
27
- "num_key_value_heads": 32
28
- },
29
- "eos_token_id": [
30
- 32000,
31
- 32007
32
- ],
33
- "pad_token_id": 32000,
34
- "type": "phi3",
35
- "vocab_size": 32064
36
- },
37
- "search": {
38
- "diversity_penalty": 0.0,
39
- "do_sample": false,
40
- "early_stopping": true,
41
- "length_penalty": 1.0,
42
- "max_length": 131072,
43
- "min_length": 0,
44
- "no_repeat_ngram_size": 0,
45
- "num_beams": 1,
46
- "num_return_sequences": 1,
47
- "past_present_share_buffer": false,
48
- "repetition_penalty": 1.0,
49
- "temperature": 1.0,
50
- "top_k": 1,
51
- "top_p": 1.0
52
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
  }
 
1
  {
2
+ "_name_or_path": "Phi-3-mini-128k-instruct",
3
+ "architectures": ["Phi3ForCausalLM"],
4
+ "attention_dropout": 0.0,
5
+ "auto_map": {
6
+ "AutoConfig": "configuration_phi3.Phi3Config",
7
+ "AutoModelForCausalLM": "modeling_phi3.Phi3ForCausalLM"
8
+ },
9
+ "bos_token_id": 1,
10
+ "embd_pdrop": 0.0,
11
+ "eos_token_id": 32000,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 3072,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 8192,
16
+ "max_position_embeddings": 131072,
17
+ "model_type": "phi3",
18
+ "num_attention_heads": 32,
19
+ "num_hidden_layers": 32,
20
+ "num_key_value_heads": 32,
21
+ "original_max_position_embeddings": 4096,
22
+ "pad_token_id": 32000,
23
+ "resid_pdrop": 0.0,
24
+ "rms_norm_eps": 1e-5,
25
+ "rope_scaling": {
26
+ "long_factor": [
27
+ 1.0299999713897705, 1.0499999523162842, 1.0499999523162842,
28
+ 1.0799999237060547, 1.2299998998641968, 1.2299998998641968,
29
+ 1.2999999523162842, 1.4499999284744263, 1.5999999046325684,
30
+ 1.6499998569488525, 1.8999998569488525, 2.859999895095825,
31
+ 3.68999981880188, 5.419999599456787, 5.489999771118164, 5.489999771118164,
32
+ 9.09000015258789, 11.579999923706055, 15.65999984741211,
33
+ 15.769999504089355, 15.789999961853027, 18.360000610351562,
34
+ 21.989999771118164, 23.079999923706055, 30.009998321533203,
35
+ 32.35000228881836, 32.590003967285156, 35.56000518798828,
36
+ 39.95000457763672, 53.840003967285156, 56.20000457763672,
37
+ 57.95000457763672, 59.29000473022461, 59.77000427246094,
38
+ 59.920005798339844, 61.190006256103516, 61.96000671386719,
39
+ 62.50000762939453, 63.3700065612793, 63.48000717163086, 63.48000717163086,
40
+ 63.66000747680664, 63.850006103515625, 64.08000946044922, 64.760009765625,
41
+ 64.80001068115234, 64.81001281738281, 64.81001281738281
42
+ ],
43
+ "short_factor": [
44
+ 1.05, 1.05, 1.05, 1.1, 1.1, 1.1500000000000001, 1.2000000000000002,
45
+ 1.2500000000000002, 1.3000000000000003, 1.3500000000000003,
46
+ 1.5000000000000004, 2.000000000000001, 2.000000000000001,
47
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
48
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
49
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
50
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
51
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
52
+ 2.000000000000001, 2.000000000000001, 2.000000000000001,
53
+ 2.000000000000001, 2.0500000000000007, 2.0500000000000007,
54
+ 2.0500000000000007, 2.1000000000000005, 2.1000000000000005,
55
+ 2.1000000000000005, 2.1500000000000004, 2.1500000000000004,
56
+ 2.3499999999999996, 2.549999999999999, 2.5999999999999988,
57
+ 2.5999999999999988, 2.7499999999999982, 2.849999999999998,
58
+ 2.849999999999998, 2.9499999999999975
59
+ ],
60
+ "type": "su"
61
+ },
62
+ "rope_theta": 10000.0,
63
+ "sliding_window": 262144,
64
+ "tie_word_embeddings": false,
65
+ "torch_dtype": "bfloat16",
66
+ "transformers_version": "4.39.3",
67
+ "use_cache": true,
68
+ "vocab_size": 32064
69
  }