medmekk HF Staff commited on
Commit
7c0a9d5
·
verified ·
1 Parent(s): 80f9bee

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +23 -0
  2. config.json +154 -0
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model:
3
+ - medmekk/Phi-3.5-mini-instruct-bnb-4bit
4
+ ---
5
+
6
+ # medmekk/Phi-3.5-mini-instruct-bnb-4bit (Quantized)
7
+
8
+ ## Description
9
+ This model is a quantized version of the original model `medmekk/Phi-3.5-mini-instruct-bnb-4bit`. It has been quantized using int4 quantization with bitsandbytes.
10
+
11
+ ## Quantization Details
12
+ - **Quantization Type**: int4
13
+ - **bnb_4bit_quant_type**: nf4
14
+ - **bnb_4bit_use_double_quant**: True
15
+ - **bnb_4bit_compute_dtype**: bfloat16
16
+ - **bnb_4bit_quant_storage**: uint8
17
+
18
+ ## Usage
19
+ You can use this model in your applications by loading it directly from the Hugging Face Hub:
20
+ ```python
21
+ from transformers import AutoModel
22
+
23
+ model = AutoModel.from_pretrained("medmekk/Phi-3.5-mini-instruct-bnb-4bit")
config.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "microsoft/Phi-3.5-mini-instruct",
3
+ "architectures": [
4
+ "Phi3Model"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "auto_map": {
9
+ "AutoConfig": "microsoft/Phi-3.5-mini-instruct--configuration_phi3.Phi3Config",
10
+ "AutoModelForCausalLM": "microsoft/Phi-3.5-mini-instruct--modeling_phi3.Phi3ForCausalLM"
11
+ },
12
+ "bos_token_id": 1,
13
+ "embd_pdrop": 0.0,
14
+ "eos_token_id": 32000,
15
+ "hidden_act": "silu",
16
+ "hidden_size": 3072,
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 8192,
19
+ "max_position_embeddings": 131072,
20
+ "model_type": "phi3",
21
+ "num_attention_heads": 32,
22
+ "num_hidden_layers": 32,
23
+ "num_key_value_heads": 32,
24
+ "original_max_position_embeddings": 4096,
25
+ "pad_token_id": 32000,
26
+ "partial_rotary_factor": 1.0,
27
+ "quantization_config": {
28
+ "_load_in_4bit": true,
29
+ "_load_in_8bit": false,
30
+ "bnb_4bit_compute_dtype": "bfloat16",
31
+ "bnb_4bit_quant_storage": "uint8",
32
+ "bnb_4bit_quant_type": "nf4",
33
+ "bnb_4bit_use_double_quant": true,
34
+ "llm_int8_enable_fp32_cpu_offload": false,
35
+ "llm_int8_has_fp16_weight": false,
36
+ "llm_int8_skip_modules": null,
37
+ "llm_int8_threshold": 6.0,
38
+ "load_in_4bit": true,
39
+ "load_in_8bit": false,
40
+ "quant_method": "bitsandbytes"
41
+ },
42
+ "resid_pdrop": 0.0,
43
+ "rms_norm_eps": 1e-05,
44
+ "rope_scaling": {
45
+ "long_factor": [
46
+ 1.0800000429153442,
47
+ 1.1100000143051147,
48
+ 1.1399999856948853,
49
+ 1.340000033378601,
50
+ 1.5899999141693115,
51
+ 1.600000023841858,
52
+ 1.6200000047683716,
53
+ 2.620000123977661,
54
+ 3.2300000190734863,
55
+ 3.2300000190734863,
56
+ 4.789999961853027,
57
+ 7.400000095367432,
58
+ 7.700000286102295,
59
+ 9.09000015258789,
60
+ 12.199999809265137,
61
+ 17.670000076293945,
62
+ 24.46000099182129,
63
+ 28.57000160217285,
64
+ 30.420001983642578,
65
+ 30.840002059936523,
66
+ 32.590003967285156,
67
+ 32.93000411987305,
68
+ 42.320003509521484,
69
+ 44.96000289916992,
70
+ 50.340003967285156,
71
+ 50.45000457763672,
72
+ 57.55000305175781,
73
+ 57.93000411987305,
74
+ 58.21000289916992,
75
+ 60.1400032043457,
76
+ 62.61000442504883,
77
+ 62.62000274658203,
78
+ 62.71000289916992,
79
+ 63.1400032043457,
80
+ 63.1400032043457,
81
+ 63.77000427246094,
82
+ 63.93000411987305,
83
+ 63.96000289916992,
84
+ 63.970001220703125,
85
+ 64.02999877929688,
86
+ 64.06999969482422,
87
+ 64.08000183105469,
88
+ 64.12000274658203,
89
+ 64.41000366210938,
90
+ 64.4800033569336,
91
+ 64.51000213623047,
92
+ 64.52999877929688,
93
+ 64.83999633789062
94
+ ],
95
+ "short_factor": [
96
+ 1.0,
97
+ 1.0199999809265137,
98
+ 1.0299999713897705,
99
+ 1.0299999713897705,
100
+ 1.0499999523162842,
101
+ 1.0499999523162842,
102
+ 1.0499999523162842,
103
+ 1.0499999523162842,
104
+ 1.0499999523162842,
105
+ 1.0699999332427979,
106
+ 1.0999999046325684,
107
+ 1.1099998950958252,
108
+ 1.1599998474121094,
109
+ 1.1599998474121094,
110
+ 1.1699998378753662,
111
+ 1.2899998426437378,
112
+ 1.339999794960022,
113
+ 1.679999828338623,
114
+ 1.7899998426437378,
115
+ 1.8199998140335083,
116
+ 1.8499997854232788,
117
+ 1.8799997568130493,
118
+ 1.9099997282028198,
119
+ 1.9399996995925903,
120
+ 1.9899996519088745,
121
+ 2.0199997425079346,
122
+ 2.0199997425079346,
123
+ 2.0199997425079346,
124
+ 2.0199997425079346,
125
+ 2.0199997425079346,
126
+ 2.0199997425079346,
127
+ 2.0299997329711914,
128
+ 2.0299997329711914,
129
+ 2.0299997329711914,
130
+ 2.0299997329711914,
131
+ 2.0299997329711914,
132
+ 2.0299997329711914,
133
+ 2.0299997329711914,
134
+ 2.0299997329711914,
135
+ 2.0299997329711914,
136
+ 2.0799996852874756,
137
+ 2.0899996757507324,
138
+ 2.189999580383301,
139
+ 2.2199995517730713,
140
+ 2.5899994373321533,
141
+ 2.729999542236328,
142
+ 2.749999523162842,
143
+ 2.8399994373321533
144
+ ],
145
+ "type": "longrope"
146
+ },
147
+ "rope_theta": 10000.0,
148
+ "sliding_window": 262144,
149
+ "tie_word_embeddings": false,
150
+ "torch_dtype": "bfloat16",
151
+ "transformers_version": "4.49.0",
152
+ "use_cache": true,
153
+ "vocab_size": 32064
154
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ccb5513497ca975dd9379b1ac29ffcefc7a701ba203d8fd13cb580020625dd5c
3
+ size 2067103743