Commit
·
227a2e7
1
Parent(s):
8cc6843
Upload MPTForCausalLM
Browse files- config.json +59 -0
- generation_config.json +5 -0
- pytorch_model.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "mosaicml/mpt-7b",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"MPTForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attn_config": {
|
| 7 |
+
"alibi": true,
|
| 8 |
+
"alibi_bias_max": 8,
|
| 9 |
+
"attn_impl": "torch",
|
| 10 |
+
"attn_pdrop": 0,
|
| 11 |
+
"attn_type": "multihead_attention",
|
| 12 |
+
"attn_uses_sequence_id": false,
|
| 13 |
+
"clip_qkv": null,
|
| 14 |
+
"prefix_lm": false,
|
| 15 |
+
"qk_ln": false,
|
| 16 |
+
"softmax_scale": null
|
| 17 |
+
},
|
| 18 |
+
"auto_map": {
|
| 19 |
+
"AutoConfig": "mosaicml/mpt-7b--configuration_mpt.MPTConfig",
|
| 20 |
+
"AutoModelForCausalLM": "mosaicml/mpt-7b--modeling_mpt.MPTForCausalLM"
|
| 21 |
+
},
|
| 22 |
+
"d_model": 4096,
|
| 23 |
+
"emb_pdrop": 0,
|
| 24 |
+
"embedding_fraction": 1.0,
|
| 25 |
+
"expansion_ratio": 4,
|
| 26 |
+
"init_config": {
|
| 27 |
+
"emb_init_std": null,
|
| 28 |
+
"emb_init_uniform_lim": null,
|
| 29 |
+
"fan_mode": "fan_in",
|
| 30 |
+
"init_div_is_residual": true,
|
| 31 |
+
"init_gain": 0,
|
| 32 |
+
"init_nonlinearity": "relu",
|
| 33 |
+
"init_std": 0.02,
|
| 34 |
+
"name": "kaiming_normal_",
|
| 35 |
+
"verbose": 0
|
| 36 |
+
},
|
| 37 |
+
"init_device": "cpu",
|
| 38 |
+
"learned_pos_emb": true,
|
| 39 |
+
"logit_scale": null,
|
| 40 |
+
"max_seq_len": 2048,
|
| 41 |
+
"model_type": "mpt",
|
| 42 |
+
"n_heads": 32,
|
| 43 |
+
"n_layers": 32,
|
| 44 |
+
"no_bias": true,
|
| 45 |
+
"norm_type": "low_precision_layernorm",
|
| 46 |
+
"quantization_config": {
|
| 47 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
| 48 |
+
"llm_int8_skip_modules": null,
|
| 49 |
+
"llm_int8_threshold": 6.0,
|
| 50 |
+
"load_in_8bit": true
|
| 51 |
+
},
|
| 52 |
+
"resid_pdrop": 0,
|
| 53 |
+
"tokenizer_name": "EleutherAI/gpt-neox-20b",
|
| 54 |
+
"torch_dtype": "float16",
|
| 55 |
+
"transformers_version": "4.29.0.dev0",
|
| 56 |
+
"use_cache": false,
|
| 57 |
+
"verbose": 0,
|
| 58 |
+
"vocab_size": 50432
|
| 59 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"transformers_version": "4.29.0.dev0",
|
| 4 |
+
"use_cache": false
|
| 5 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09620b86adf6f06f78e302cb133d6ff30d9741651181c688148cc11cb8d8c2ad
|
| 3 |
+
size 6860949933
|