Upload MixFormerSequentialForCausalLM
Browse files- config.json +38 -0
- generation_config.json +4 -0
- pytorch_model.bin +3 -0
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/phi-1_5",
|
3 |
+
"activation_function": "gelu_new",
|
4 |
+
"architectures": [
|
5 |
+
"MixFormerSequentialForCausalLM"
|
6 |
+
],
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "microsoft/phi-1_5--configuration_mixformer_sequential.MixFormerSequentialConfig",
|
9 |
+
"AutoModelForCausalLM": "microsoft/phi-1_5--modeling_mixformer_sequential.MixFormerSequentialForCausalLM"
|
10 |
+
},
|
11 |
+
"embd_pdrop": 0.0,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"layer_norm_epsilon": 1e-05,
|
14 |
+
"model_type": "mixformer-sequential",
|
15 |
+
"n_embd": 2048,
|
16 |
+
"n_head": 32,
|
17 |
+
"n_head_kv": null,
|
18 |
+
"n_inner": null,
|
19 |
+
"n_layer": 24,
|
20 |
+
"n_positions": 2048,
|
21 |
+
"quantization_config": {
|
22 |
+
"bnb_4bit_compute_dtype": "float32",
|
23 |
+
"bnb_4bit_quant_type": "fp4",
|
24 |
+
"bnb_4bit_use_double_quant": false,
|
25 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
26 |
+
"llm_int8_has_fp16_weight": false,
|
27 |
+
"llm_int8_skip_modules": null,
|
28 |
+
"llm_int8_threshold": 6.0,
|
29 |
+
"load_in_4bit": false,
|
30 |
+
"load_in_8bit": true
|
31 |
+
},
|
32 |
+
"resid_pdrop": 0.0,
|
33 |
+
"rotary_dim": 32,
|
34 |
+
"tie_word_embeddings": false,
|
35 |
+
"torch_dtype": "float16",
|
36 |
+
"transformers_version": "4.31.0",
|
37 |
+
"vocab_size": 51200
|
38 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"transformers_version": "4.31.0"
|
4 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d1a95b4adce8ae52d8a6c6a0ef44b684c26129253eb3d3bbe3437ae0b92e65ee
|
3 |
+
size 1525807906
|