File size: 4,629 Bytes
d2c3585
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
  "model_type": "memt_nemotron_h",
  "architectures": [
    "MemTNemotronHForCausalLM"
  ],
  "dtype": "bfloat16",
  "tie_word_embeddings": false,
  "bos_token_id": 1,
  "eos_token_id": 2,
  "pad_token_id": 0,
  "use_cache": true,
  "backbone_configs": {
    "architectures": [
      "NemotronHForCausalLM"
    ],
    "attention_bias": false,
    "attention_dropout": 0.0,
    "bos_token_id": 1,
    "chunk_size": 128,
    "conv_kernel": 4,
    "dtype": "bfloat16",
    "eos_token_id": 2,
    "expand": 2,
    "head_dim": 128,
    "hidden_dropout": 0.0,
    "hidden_size": 8192,
    "initializer_range": 0.02,
    "intermediate_size": 5120,
    "layer_norm_epsilon": 1e-05,
    "layers_block_type": [
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "attention",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe",
      "mamba",
      "moe"
    ],
    "mamba_head_dim": 64,
    "mamba_hidden_act": "silu",
    "mamba_num_heads": 256,
    "mamba_proj_bias": false,
    "mamba_ssm_cache_dtype": "float32",
    "max_position_embeddings": 262144,
    "mlp_bias": false,
    "mlp_hidden_act": "relu2",
    "model_type": "nemotron_h",
    "moe_intermediate_size": 5120,
    "moe_latent_size": 2048,
    "moe_shared_expert_intermediate_size": 10240,
    "moe_shared_expert_overlap": false,
    "mtp_layers_block_type": [
      "attention",
      "moe"
    ],
    "n_group": 1,
    "n_groups": 8,
    "n_routed_experts": 512,
    "n_shared_experts": 1,
    "norm_eps": 1e-05,
    "norm_topk_prob": true,
    "num_attention_heads": 64,
    "num_experts_per_tok": 22,
    "num_key_value_heads": 2,
    "num_logits_to_keep": 1,
    "num_nextn_predict_layers": 1,
    "pad_token_id": 0,
    "partial_rotary_factor": 1.0,
    "rescale_prenorm_residual": true,
    "residual_in_fp32": false,
    "rope_theta": 10000,
    "routed_scaling_factor": 5.0,
    "sliding_window": null,
    "ssm_state_size": 128,
    "tie_word_embeddings": false,
    "time_step_floor": 0.0001,
    "time_step_max": 0.1,
    "time_step_min": 0.001,
    "topk_group": 1,
    "transformers_version": "4.57.6",
    "use_bias": false,
    "use_cache": true,
    "use_conv_bias": true,
    "use_mamba_kernels": true,
    "vocab_size": 131072
  },
  "memt": {
    "chunk_tokens": 2048,
    "gate_latent_norm": false,
    "gate_rank": 512,
    "gdn_version": "stable_gdn2",
    "head_dim": 128,
    "layers": [
      7,
      14,
      23,
      32,
      39,
      48,
      57,
      64,
      73,
      82,
      89,
      98
    ],
    "linear_attention_state_policy": "reset_per_chunk",
    "memory_head_mode": "mha",
    "memory_read_scale": "k_inv_sqrt",
    "memory_update_mode": "token",
    "memory_use_short_conv": false,
    "norm_eps": 1e-05,
    "num_kv_heads": 64,
    "num_memory_heads": 64,
    "output_gate_bias": false,
    "output_gate_softcap_enabled": true,
    "output_gate_softcap_limit": 2.0,
    "output_gate_type": "silu",
    "projection": "dense_v1",
    "stable_gdn2_sqrt_erase_gate": true,
    "tail_policy": "commit"
  },
  "auto_map": {
    "AutoConfig": "configuration_memt.MemTNemotronHConfig",
    "AutoModelForCausalLM": "modeling_memt.MemTNemotronHForCausalLM"
  },
  "transformers_version": "5.12.1"
}