Alienanthony commited on
Commit
d6ac07b
·
verified ·
1 Parent(s): 70b9f14

Create config.json

Browse files
Files changed (1) hide show
  1. config.json +59 -0
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "AdaptiveRiverLM"
4
+ ],
5
+ "model_type": "adaptive-river",
6
+ "auto_map": {
7
+ "AutoConfig": "configuration_adaptive_river.AdaptiveRiverConfig",
8
+ "AutoModelForCausalLM": "modeling_adaptive_river.AdaptiveRiverLM"
9
+ },
10
+ "vocab_size": 50257,
11
+ "hidden_size": 1024,
12
+ "num_hidden_layers": 24,
13
+ "intermediate_size": 4096,
14
+ "num_attention_heads": 16,
15
+ "max_position_embeddings": 2048,
16
+ "rms_norm_eps": 1e-05,
17
+ "initializer_range": 0.02,
18
+ "use_cache": false,
19
+ "pad_token_id": 50256,
20
+ "bos_token_id": 50256,
21
+ "eos_token_id": 50256,
22
+ "tie_word_embeddings": false,
23
+ "rope_theta": 10000.0,
24
+ "rope_scaling": null,
25
+ "attention_dropout": 0.0,
26
+ "moe_config": {
27
+ "num_attention_experts": 6,
28
+ "num_ffn_experts": 4,
29
+ "attention_top_k": 6,
30
+ "ffn_top_k": 1,
31
+ "gate_temperature": 0.7,
32
+ "moe_dropout": 0.0,
33
+ "load_balance_weight": 0.01,
34
+ "router_z_weight": 0.001,
35
+ "entropy_weight": 0.0001,
36
+ "head_entropy_weight": 0.0001
37
+ },
38
+ "mamba_config": {
39
+ "d_state": 16,
40
+ "d_conv": 4,
41
+ "expand_factor": 2,
42
+ "enhanced_expand_factor": 4,
43
+ "early_mamba_layers": [0, 1],
44
+ "enhanced_mamba_layers": [22, 23]
45
+ },
46
+ "layer_types": {
47
+ "0": "mamba",
48
+ "1": "mamba",
49
+ "2-21": "moe",
50
+ "22": "mamba_enhanced",
51
+ "23": "mamba_enhanced"
52
+ },
53
+ "budget_ratio_default": 1.0,
54
+ "checkpoint_attention_threshold": 0.35,
55
+ "checkpoint_ffn_threshold": 0.35,
56
+ "rotary_pct": 1.0,
57
+ "torch_dtype": "bfloat16",
58
+ "transformers_version": "4.36.0"
59
+ }