StevenMD commited on
Commit
643aa05
·
verified ·
1 Parent(s): b7434f9

Uploaded Phi-4-mini-instruct with fixed tokenizer.

Browse files
Files changed (3) hide show
  1. config.json +158 -0
  2. generation_config.json +10 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Phi3ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "microsoft/Phi-4-mini-instruct--configuration_phi3.Phi3Config",
9
+ "AutoModelForCausalLM": "microsoft/Phi-4-mini-instruct--modeling_phi3.Phi3ForCausalLM",
10
+ "AutoTokenizer": "microsoft/Phi-4-mini-instruct--Xenova/gpt-4o"
11
+ },
12
+ "bos_token_id": 199999,
13
+ "embd_pdrop": 0.0,
14
+ "eos_token_id": 199999,
15
+ "full_attn_mod": 1,
16
+ "hidden_act": "silu",
17
+ "hidden_size": 3072,
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 8192,
20
+ "interpolate_factor": 1,
21
+ "lm_head_bias": false,
22
+ "max_position_embeddings": 131072,
23
+ "mlp_bias": false,
24
+ "model_type": "phi3",
25
+ "num_attention_heads": 24,
26
+ "num_hidden_layers": 32,
27
+ "num_key_value_heads": 8,
28
+ "original_max_position_embeddings": 4096,
29
+ "pad_token_id": 199999,
30
+ "partial_rotary_factor": 0.75,
31
+ "quantization_config": {
32
+ "_load_in_4bit": true,
33
+ "_load_in_8bit": false,
34
+ "bnb_4bit_compute_dtype": "bfloat16",
35
+ "bnb_4bit_quant_storage": "uint8",
36
+ "bnb_4bit_quant_type": "nf4",
37
+ "bnb_4bit_use_double_quant": true,
38
+ "llm_int8_enable_fp32_cpu_offload": false,
39
+ "llm_int8_has_fp16_weight": false,
40
+ "llm_int8_skip_modules": null,
41
+ "llm_int8_threshold": 6.0,
42
+ "load_in_4bit": true,
43
+ "load_in_8bit": false,
44
+ "quant_method": "bitsandbytes"
45
+ },
46
+ "resid_pdrop": 0.0,
47
+ "rms_norm_eps": 1e-05,
48
+ "rope_scaling": {
49
+ "long_factor": [
50
+ 1,
51
+ 1.118320672,
52
+ 1.250641126,
53
+ 1.398617824,
54
+ 1.564103225,
55
+ 1.74916897,
56
+ 1.956131817,
57
+ 2.187582649,
58
+ 2.446418898,
59
+ 2.735880826,
60
+ 3.059592084,
61
+ 3.421605075,
62
+ 3.826451687,
63
+ 4.279200023,
64
+ 4.785517845,
65
+ 5.351743533,
66
+ 5.984965424,
67
+ 6.693110555,
68
+ 7.485043894,
69
+ 8.370679318,
70
+ 9.36110372,
71
+ 10.4687158,
72
+ 11.70738129,
73
+ 13.09260651,
74
+ 14.64173252,
75
+ 16.37415215,
76
+ 18.31155283,
77
+ 20.47818807,
78
+ 22.90118105,
79
+ 25.61086418,
80
+ 28.64115884,
81
+ 32.03,
82
+ 32.1,
83
+ 32.13,
84
+ 32.23,
85
+ 32.6,
86
+ 32.61,
87
+ 32.64,
88
+ 32.66,
89
+ 32.7,
90
+ 32.71,
91
+ 32.93,
92
+ 32.97,
93
+ 33.28,
94
+ 33.49,
95
+ 33.5,
96
+ 44.16,
97
+ 47.77
98
+ ],
99
+ "short_factor": [
100
+ 1.0,
101
+ 1.0,
102
+ 1.0,
103
+ 1.0,
104
+ 1.0,
105
+ 1.0,
106
+ 1.0,
107
+ 1.0,
108
+ 1.0,
109
+ 1.0,
110
+ 1.0,
111
+ 1.0,
112
+ 1.0,
113
+ 1.0,
114
+ 1.0,
115
+ 1.0,
116
+ 1.0,
117
+ 1.0,
118
+ 1.0,
119
+ 1.0,
120
+ 1.0,
121
+ 1.0,
122
+ 1.0,
123
+ 1.0,
124
+ 1.0,
125
+ 1.0,
126
+ 1.0,
127
+ 1.0,
128
+ 1.0,
129
+ 1.0,
130
+ 1.0,
131
+ 1.0,
132
+ 1.0,
133
+ 1.0,
134
+ 1.0,
135
+ 1.0,
136
+ 1.0,
137
+ 1.0,
138
+ 1.0,
139
+ 1.0,
140
+ 1.0,
141
+ 1.0,
142
+ 1.0,
143
+ 1.0,
144
+ 1.0,
145
+ 1.0,
146
+ 1.0,
147
+ 1.0
148
+ ],
149
+ "type": "longrope"
150
+ },
151
+ "rope_theta": 10000.0,
152
+ "sliding_window": 262144,
153
+ "tie_word_embeddings": true,
154
+ "torch_dtype": "bfloat16",
155
+ "transformers_version": "4.52.4",
156
+ "use_cache": true,
157
+ "vocab_size": 200064
158
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 199999,
4
+ "eos_token_id": [
5
+ 200020,
6
+ 199999
7
+ ],
8
+ "pad_token_id": 199999,
9
+ "transformers_version": "4.52.4"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caf870ed9fe9ca7e8f998e6dcdc6657f0e184ed51242fb056576e4682804d322
3
+ size 2891584764