DreamOnRain
commited on
Commit
•
4e8dad5
1
Parent(s):
078ed00
Upload MambaForCausalLM
Browse files- config.json +40 -0
- generation_config.json +7 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "state-spaces/mamba-130m-hf",
|
3 |
+
"architectures": [
|
4 |
+
"MambaForCausalLM"
|
5 |
+
],
|
6 |
+
"bos_token_id": 0,
|
7 |
+
"conv_kernel": 4,
|
8 |
+
"d_inner": 1536,
|
9 |
+
"d_model": 768,
|
10 |
+
"eos_token_id": 0,
|
11 |
+
"expand": 2,
|
12 |
+
"fused_add_norm": true,
|
13 |
+
"hidden_act": "silu",
|
14 |
+
"hidden_size": 768,
|
15 |
+
"initializer_range": 0.1,
|
16 |
+
"intermediate_size": 1536,
|
17 |
+
"layer_norm_epsilon": 1e-05,
|
18 |
+
"model_type": "mamba",
|
19 |
+
"n_layer": 24,
|
20 |
+
"num_hidden_layers": 24,
|
21 |
+
"pad_token_id": 0,
|
22 |
+
"pad_vocab_size_multiple": 8,
|
23 |
+
"rescale_prenorm_residual": false,
|
24 |
+
"residual_in_fp32": true,
|
25 |
+
"rms_norm": true,
|
26 |
+
"ssm_cfg": {},
|
27 |
+
"state_size": 16,
|
28 |
+
"time_step_floor": 0.0001,
|
29 |
+
"time_step_init_scheme": "random",
|
30 |
+
"time_step_max": 0.1,
|
31 |
+
"time_step_min": 0.001,
|
32 |
+
"time_step_rank": 48,
|
33 |
+
"time_step_scale": 1.0,
|
34 |
+
"torch_dtype": "float16",
|
35 |
+
"transformers_version": "4.39.3",
|
36 |
+
"use_bias": false,
|
37 |
+
"use_cache": true,
|
38 |
+
"use_conv_bias": true,
|
39 |
+
"vocab_size": 50280
|
40 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"eos_token_id": 0,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.39.3"
|
7 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:77aaeaec7ea5f59c95316425ae7d0de63566a1d9d453ad1165d6431e7de17594
|
3 |
+
size 259476320
|