S1mKu commited on
Commit
4bd43ae
·
verified ·
1 Parent(s): f46bfc5

Upload Phi3ForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +170 -0
  2. generation_config.json +11 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Phi3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "microsoft/Phi-3.5-mini-instruct--configuration_phi3.Phi3Config",
9
+ "AutoModelForCausalLM": "microsoft/Phi-3.5-mini-instruct--modeling_phi3.Phi3ForCausalLM"
10
+ },
11
+ "bos_token_id": 1,
12
+ "embd_pdrop": 0.0,
13
+ "eos_token_id": 32000,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 3072,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 8192,
18
+ "max_position_embeddings": 131072,
19
+ "model_type": "phi3",
20
+ "num_attention_heads": 32,
21
+ "num_hidden_layers": 32,
22
+ "num_key_value_heads": 32,
23
+ "original_max_position_embeddings": 4096,
24
+ "pad_token_id": 32000,
25
+ "partial_rotary_factor": 1.0,
26
+ "quantization_config": {
27
+ "backend": "auto",
28
+ "batch_size": 1,
29
+ "bits": 8,
30
+ "block_name_to_quantize": null,
31
+ "cache_block_outputs": true,
32
+ "checkpoint_format": "gptq_v2",
33
+ "damp_percent": 0.1,
34
+ "dataset": "c4",
35
+ "desc_act": false,
36
+ "exllama_config": {
37
+ "version": 1
38
+ },
39
+ "group_size": 128,
40
+ "max_input_length": null,
41
+ "meta": {
42
+ "quantizer": [
43
+ "optimum:1.24.0",
44
+ "gptqmodel:2.2.0"
45
+ ]
46
+ },
47
+ "model_seqlen": null,
48
+ "module_name_preceding_first_block": null,
49
+ "modules_in_block_to_quantize": null,
50
+ "pad_token_id": null,
51
+ "quant_method": "gptq",
52
+ "sym": true,
53
+ "tokenizer": null,
54
+ "true_sequential": true,
55
+ "use_cuda_fp16": false,
56
+ "use_exllama": true
57
+ },
58
+ "resid_pdrop": 0.0,
59
+ "rms_norm_eps": 1e-05,
60
+ "rope_scaling": {
61
+ "long_factor": [
62
+ 1.0800000429153442,
63
+ 1.1100000143051147,
64
+ 1.1399999856948853,
65
+ 1.340000033378601,
66
+ 1.5899999141693115,
67
+ 1.600000023841858,
68
+ 1.6200000047683716,
69
+ 2.620000123977661,
70
+ 3.2300000190734863,
71
+ 3.2300000190734863,
72
+ 4.789999961853027,
73
+ 7.400000095367432,
74
+ 7.700000286102295,
75
+ 9.09000015258789,
76
+ 12.199999809265137,
77
+ 17.670000076293945,
78
+ 24.46000099182129,
79
+ 28.57000160217285,
80
+ 30.420001983642578,
81
+ 30.840002059936523,
82
+ 32.590003967285156,
83
+ 32.93000411987305,
84
+ 42.320003509521484,
85
+ 44.96000289916992,
86
+ 50.340003967285156,
87
+ 50.45000457763672,
88
+ 57.55000305175781,
89
+ 57.93000411987305,
90
+ 58.21000289916992,
91
+ 60.1400032043457,
92
+ 62.61000442504883,
93
+ 62.62000274658203,
94
+ 62.71000289916992,
95
+ 63.1400032043457,
96
+ 63.1400032043457,
97
+ 63.77000427246094,
98
+ 63.93000411987305,
99
+ 63.96000289916992,
100
+ 63.970001220703125,
101
+ 64.02999877929688,
102
+ 64.06999969482422,
103
+ 64.08000183105469,
104
+ 64.12000274658203,
105
+ 64.41000366210938,
106
+ 64.4800033569336,
107
+ 64.51000213623047,
108
+ 64.52999877929688,
109
+ 64.83999633789062
110
+ ],
111
+ "short_factor": [
112
+ 1.0,
113
+ 1.0199999809265137,
114
+ 1.0299999713897705,
115
+ 1.0299999713897705,
116
+ 1.0499999523162842,
117
+ 1.0499999523162842,
118
+ 1.0499999523162842,
119
+ 1.0499999523162842,
120
+ 1.0499999523162842,
121
+ 1.0699999332427979,
122
+ 1.0999999046325684,
123
+ 1.1099998950958252,
124
+ 1.1599998474121094,
125
+ 1.1599998474121094,
126
+ 1.1699998378753662,
127
+ 1.2899998426437378,
128
+ 1.339999794960022,
129
+ 1.679999828338623,
130
+ 1.7899998426437378,
131
+ 1.8199998140335083,
132
+ 1.8499997854232788,
133
+ 1.8799997568130493,
134
+ 1.9099997282028198,
135
+ 1.9399996995925903,
136
+ 1.9899996519088745,
137
+ 2.0199997425079346,
138
+ 2.0199997425079346,
139
+ 2.0199997425079346,
140
+ 2.0199997425079346,
141
+ 2.0199997425079346,
142
+ 2.0199997425079346,
143
+ 2.0299997329711914,
144
+ 2.0299997329711914,
145
+ 2.0299997329711914,
146
+ 2.0299997329711914,
147
+ 2.0299997329711914,
148
+ 2.0299997329711914,
149
+ 2.0299997329711914,
150
+ 2.0299997329711914,
151
+ 2.0299997329711914,
152
+ 2.0799996852874756,
153
+ 2.0899996757507324,
154
+ 2.189999580383301,
155
+ 2.2199995517730713,
156
+ 2.5899994373321533,
157
+ 2.729999542236328,
158
+ 2.749999523162842,
159
+ 2.8399994373321533
160
+ ],
161
+ "type": "longrope"
162
+ },
163
+ "rope_theta": 10000.0,
164
+ "sliding_window": 262144,
165
+ "tie_word_embeddings": false,
166
+ "torch_dtype": "float16",
167
+ "transformers_version": "4.51.3",
168
+ "use_cache": true,
169
+ "vocab_size": 32064
170
+ }
generation_config.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": [
5
+ 32007,
6
+ 32001,
7
+ 32000
8
+ ],
9
+ "pad_token_id": 32000,
10
+ "transformers_version": "4.51.3"
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2404b48b59160e68c441a0847c0c554ef2069c7c656f96bf62214e4735068d4
3
+ size 4103309216