ArthurZ HF staff commited on
Commit
448460c
1 Parent(s): fae4fbc

Upload MambaForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +41 -0
  2. generation_config.json +6 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "ArthurZ/mamba-370m",
3
+ "architectures": [
4
+ "MambaForCausalLM"
5
+ ],
6
+ "bos_token_id": 0,
7
+ "conv_kernel": 4,
8
+ "d_inner": 160,
9
+ "d_model": 1024,
10
+ "dt_rank": "auto",
11
+ "eos_token_id": 0,
12
+ "expand": 2,
13
+ "fused_add_norm": true,
14
+ "hidden_act": "silu",
15
+ "hidden_size": 1024,
16
+ "initializer_range": 0.1,
17
+ "intermediate_size": 2048,
18
+ "layer_norm_epsilon": 1e-05,
19
+ "model_type": "mamba",
20
+ "n_layer": 48,
21
+ "num_hidden_layers": 48,
22
+ "pad_token_id": 0,
23
+ "pad_vocab_size_multiple": 8,
24
+ "rescale_prenorm_residual": false,
25
+ "residual_in_fp32": true,
26
+ "rms_norm": true,
27
+ "ssm_cfg": {},
28
+ "state_size": 16,
29
+ "time_step_floor": 0.0001,
30
+ "time_step_init_scheme": "random",
31
+ "time_step_max": 0.1,
32
+ "time_step_min": 0.001,
33
+ "time_step_rank": 64,
34
+ "time_step_scale": 1.0,
35
+ "torch_dtype": "float32",
36
+ "transformers_version": "4.39.0.dev0",
37
+ "use_bias": false,
38
+ "use_cache": true,
39
+ "use_conv_bias": true,
40
+ "vocab_size": 50280
41
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.39.0.dev0"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e2386de4c63e64a371cb9bc451421b04a33390103ba5e596ead4ac4c668a2b1
3
+ size 1486118288