jburtoft commited on
Commit
9135676
·
verified ·
1 Parent(s): 6162ce2

Upload neuron_config.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. neuron_config.json +469 -0
neuron_config.json ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/mnt/models/Laguna-XS.2/",
3
+ "add_cross_attention": false,
4
+ "architectures": [
5
+ "LagunaForCausalLM"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "attribute_map": {},
10
+ "auto_map": {
11
+ "AutoConfig": "configuration_laguna.LagunaConfig",
12
+ "AutoModelForCausalLM": "modeling_laguna.LagunaForCausalLM"
13
+ },
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "bos_token_id": 2,
17
+ "chunk_size_feed_forward": 0,
18
+ "cross_attention_hidden_size": null,
19
+ "decoder_start_token_id": null,
20
+ "diversity_penalty": 0.0,
21
+ "do_sample": false,
22
+ "early_stopping": false,
23
+ "encoder_no_repeat_ngram_size": 0,
24
+ "eos_token_id": [
25
+ 2,
26
+ 24
27
+ ],
28
+ "exponential_decay_length_penalty": null,
29
+ "finetuning_task": null,
30
+ "forced_bos_token_id": null,
31
+ "forced_eos_token_id": null,
32
+ "fused_spec_config": null,
33
+ "gating": true,
34
+ "head_dim": 128,
35
+ "hidden_act": "silu",
36
+ "hidden_size": 2048,
37
+ "id2label": {
38
+ "0": "LABEL_0",
39
+ "1": "LABEL_1"
40
+ },
41
+ "intermediate_size": 8192,
42
+ "is_decoder": false,
43
+ "is_encoder_decoder": false,
44
+ "label2id": {
45
+ "LABEL_0": 0,
46
+ "LABEL_1": 1
47
+ },
48
+ "layer_types": [
49
+ "full_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "full_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "full_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "full_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "full_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "full_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "full_attention",
82
+ "sliding_attention",
83
+ "sliding_attention",
84
+ "sliding_attention",
85
+ "full_attention",
86
+ "sliding_attention",
87
+ "sliding_attention",
88
+ "sliding_attention"
89
+ ],
90
+ "length_penalty": 1.0,
91
+ "max_length": 20,
92
+ "max_position_embeddings": 131072,
93
+ "metadata": null,
94
+ "min_length": 0,
95
+ "mlp_layer_types": [
96
+ "dense",
97
+ "sparse",
98
+ "sparse",
99
+ "sparse",
100
+ "sparse",
101
+ "sparse",
102
+ "sparse",
103
+ "sparse",
104
+ "sparse",
105
+ "sparse",
106
+ "sparse",
107
+ "sparse",
108
+ "sparse",
109
+ "sparse",
110
+ "sparse",
111
+ "sparse",
112
+ "sparse",
113
+ "sparse",
114
+ "sparse",
115
+ "sparse",
116
+ "sparse",
117
+ "sparse",
118
+ "sparse",
119
+ "sparse",
120
+ "sparse",
121
+ "sparse",
122
+ "sparse",
123
+ "sparse",
124
+ "sparse",
125
+ "sparse",
126
+ "sparse",
127
+ "sparse",
128
+ "sparse",
129
+ "sparse",
130
+ "sparse",
131
+ "sparse",
132
+ "sparse",
133
+ "sparse",
134
+ "sparse",
135
+ "sparse"
136
+ ],
137
+ "model_type": "",
138
+ "moe_apply_router_weight_on_input": false,
139
+ "moe_cte_ep_degree": 1,
140
+ "moe_cte_tp_degree": 4,
141
+ "moe_intermediate_size": 512,
142
+ "moe_routed_scaling_factor": 2.5,
143
+ "moe_tkg_ep_degree": 1,
144
+ "moe_tkg_tp_degree": 4,
145
+ "n_shared_experts": 1,
146
+ "neuron_config": {
147
+ "activation_quantization_type": null,
148
+ "allow_input_truncation": false,
149
+ "apply_seq_ids_mask": false,
150
+ "async_mode": false,
151
+ "attention_dp_degree": 1,
152
+ "attention_dtype": null,
153
+ "attn_block_cte_nki_kernel_enabled": false,
154
+ "attn_block_tkg_nki_kernel_cache_update": false,
155
+ "attn_block_tkg_nki_kernel_cascaded_attention": false,
156
+ "attn_block_tkg_nki_kernel_disable_gpsimd_sb2sb": false,
157
+ "attn_block_tkg_nki_kernel_enabled": false,
158
+ "attn_block_tkg_nki_kernel_use_online_softmax": true,
159
+ "attn_cls": "NeuronLlamaAttention",
160
+ "attn_kernel_enabled": true,
161
+ "attn_tkg_builtin_kernel_enabled": false,
162
+ "attn_tkg_nki_kernel_enabled": false,
163
+ "batch_size": 4,
164
+ "blockwise_matmul_config": {
165
+ "always_augment_inputs_for_blockwise_matmul": false,
166
+ "block_sharding_strategy": {
167
+ "__objclass__": {
168
+ "__module__": "nkilib.core.moe.moe_cte.moe_cte_utils",
169
+ "__name__": "BlockShardStrategy"
170
+ },
171
+ "_name_": "HI_LO",
172
+ "_sort_order_": 0,
173
+ "_value_": 0
174
+ },
175
+ "block_size": 512,
176
+ "blockwise_nki_autograd_cls": null,
177
+ "logical_nc_config": {
178
+ "__objclass__": {
179
+ "__module__": "neuronx_distributed.utils.model_utils",
180
+ "__name__": "LogicalNCConfig"
181
+ },
182
+ "_name_": "LNC_2",
183
+ "_sort_order_": 1,
184
+ "_value_": 2
185
+ },
186
+ "num_static_blocks": null,
187
+ "optimized_block_to_token_mapping": true,
188
+ "pad_num_blocks_to_even": false,
189
+ "parallelize_token_to_block_mapping": true,
190
+ "skip_dma_token": false,
191
+ "skip_dma_weight": false,
192
+ "use_block_parallel": false,
193
+ "use_shard_on_block_dynamic_while": false,
194
+ "use_shard_on_intermediate_dynamic_while": false,
195
+ "use_torch_block_wise": true
196
+ },
197
+ "bucket_n_active_tokens": false,
198
+ "buckets": [
199
+ 4096
200
+ ],
201
+ "capacity_factor": null,
202
+ "cast_type": "config",
203
+ "cc_pipeline_tiling_factor": 2,
204
+ "chunked_prefill_config": null,
205
+ "context_encoding_buckets": null,
206
+ "cp_degree": 1,
207
+ "ctx_batch_size": 1,
208
+ "disable_argmax_kernel": false,
209
+ "disable_kv_cache_tiling": false,
210
+ "disable_numeric_cc_token": false,
211
+ "dma_order_config": null,
212
+ "draft_model_modules_to_not_convert": null,
213
+ "eagle_rolling_buffer_kernel_enabled": false,
214
+ "early_expert_affinity_modulation": false,
215
+ "enable_bucketing": true,
216
+ "enable_cte_modular_flow": false,
217
+ "enable_eagle_draft_input_norm": false,
218
+ "enable_eagle_speculation": false,
219
+ "enable_fused_speculation": false,
220
+ "enable_long_context_mode": false,
221
+ "enable_output_completion_notifications": false,
222
+ "enable_spill_reload_dge": false,
223
+ "enable_token_tree": false,
224
+ "enable_ve_data_parallel": false,
225
+ "ep_degree": 1,
226
+ "ep_dispatch_cc_option": "AR_AG",
227
+ "expert_mlp_nki_kernel_enabled": null,
228
+ "flash_decoding_enabled": false,
229
+ "fused_qkv": false,
230
+ "fused_rmsnorm_skip_gamma": false,
231
+ "fused_shared_experts": false,
232
+ "gate_clamp_lower_limit": null,
233
+ "gate_clamp_upper_limit": null,
234
+ "glu_mlp": true,
235
+ "glu_type": "glu",
236
+ "hidden_act_bias": 0.0,
237
+ "hidden_act_scaling_factor": 1.0,
238
+ "hybrid_sharding_config": null,
239
+ "is_block_kv_layout": false,
240
+ "is_chunked_prefill": false,
241
+ "is_continuous_batching": true,
242
+ "is_eagle3": false,
243
+ "is_eagle_draft": false,
244
+ "is_full_model_shuffled": false,
245
+ "is_hidden_dim_shuffled": false,
246
+ "is_intermediate_dim_shuffled": false,
247
+ "is_medusa": false,
248
+ "is_mxfp4_compute": false,
249
+ "is_prefill_stage": null,
250
+ "is_prefix_caching": false,
251
+ "k_cache_transposed": false,
252
+ "kv_cache_batch_size": 4,
253
+ "kv_cache_padding_size": 0,
254
+ "kv_cache_quant": false,
255
+ "kv_cache_tiling": false,
256
+ "kv_cache_update_with_kernel": false,
257
+ "kv_quant_config": null,
258
+ "layer_boundary_markers": false,
259
+ "lm_head_pad": true,
260
+ "lm_head_pad_alignment_size": 1,
261
+ "local_ranks_size": 4,
262
+ "logical_nc_config": 2,
263
+ "lora_config": null,
264
+ "max_batch_size": 4,
265
+ "max_context_length": 4096,
266
+ "max_length": 4096,
267
+ "max_new_tokens": null,
268
+ "medusa_speculation_length": 0,
269
+ "medusa_tree": null,
270
+ "mlp_cp_degree": 1,
271
+ "mlp_kernel_enabled": false,
272
+ "mlp_kernel_fuse_residual_add": false,
273
+ "mlp_tkg_nki_kernel_enabled": false,
274
+ "modules_to_not_convert": null,
275
+ "moe_ep_degree": 1,
276
+ "moe_fused_nki_kernel_enabled": true,
277
+ "moe_mask_padded_tokens": false,
278
+ "moe_tp_degree": 4,
279
+ "n_active_tokens": 4096,
280
+ "n_positions": 4096,
281
+ "normalize_top_k_affinities": true,
282
+ "num_medusa_heads": 0,
283
+ "on_cpu": false,
284
+ "on_device_sampling_config": {
285
+ "deterministic": false,
286
+ "do_sample": false,
287
+ "dynamic": true,
288
+ "global_topk": 256,
289
+ "on_device_sampling_config": true,
290
+ "sampling_dp_degree": 1,
291
+ "temperature": 1.0,
292
+ "top_k": 1,
293
+ "top_k_kernel_enabled": true,
294
+ "top_p": 1.0
295
+ },
296
+ "out_proj_kernel_enabled": false,
297
+ "output_logits": false,
298
+ "overrides_torch_dtype": true,
299
+ "pa_block_size": 4096,
300
+ "pa_num_blocks": 2,
301
+ "padded_hidden_size": null,
302
+ "padded_intermediate_size": null,
303
+ "padding_side": "right",
304
+ "pp_degree": 1,
305
+ "pre_rope_rmsnorm": false,
306
+ "prefix_buckets": null,
307
+ "qk_layernorm": false,
308
+ "qkv_cte_nki_kernel_fuse_rope": false,
309
+ "qkv_kernel_enabled": false,
310
+ "qkv_kernel_fuse_residual_add": false,
311
+ "qkv_kernel_nbsd_layout": false,
312
+ "qkv_nki_kernel_enabled": false,
313
+ "quantization_block_axis": null,
314
+ "quantization_block_size": null,
315
+ "quantization_dtype": "int8",
316
+ "quantization_scale_dtype": "f32",
317
+ "quantization_type": "per_tensor_symmetric",
318
+ "quantize_clamp_bound": Infinity,
319
+ "quantized": false,
320
+ "quantized_checkpoints_path": null,
321
+ "quantized_mlp_kernel_enabled": false,
322
+ "return_expert_index": false,
323
+ "return_router_logits": false,
324
+ "rmsnorm_quantize_kernel_enabled": false,
325
+ "router_config": {
326
+ "act_fn": "sigmoid",
327
+ "dtype": "float32"
328
+ },
329
+ "router_topk_nki_kernel_enabled": null,
330
+ "rpl_reduce_dtype": null,
331
+ "save_sharded_checkpoint": true,
332
+ "scratchpad_page_size": null,
333
+ "seq_len": 4096,
334
+ "seq_len_threshold_for_cc_tiling": 16384,
335
+ "sequence_parallel_enabled": false,
336
+ "shared_experts_sequence_parallel_enabled": false,
337
+ "shared_mlp_nki_kernel_enabled": null,
338
+ "skip_sharding": false,
339
+ "skip_warmup": false,
340
+ "spec_batch_size": 4,
341
+ "speculation_length": 0,
342
+ "start_rank_id": 0,
343
+ "strided_context_parallel_kernel_enabled": false,
344
+ "switch_cc": false,
345
+ "target": null,
346
+ "tensor_capture_config": null,
347
+ "tensor_replacement_config": null,
348
+ "tile_cc": false,
349
+ "tkg_batch_size": 4,
350
+ "token_generation_batches": null,
351
+ "token_generation_buckets": null,
352
+ "token_tree_config": null,
353
+ "torch_dtype": "bfloat16",
354
+ "tp_degree": 4,
355
+ "transpose_shared_experts_weights": false,
356
+ "up_clamp_lower_limit": null,
357
+ "up_clamp_upper_limit": null,
358
+ "use_index_calc_kernel": false,
359
+ "vocab_parallel": false,
360
+ "weight_gather_seq_len_threshold": 32768,
361
+ "weights_to_skip_layout_optimization": [],
362
+ "windowed_context_encoding_size": null,
363
+ "world_size": 4
364
+ },
365
+ "no_repeat_ngram_size": 0,
366
+ "num_attention_heads": 48,
367
+ "num_attention_heads_per_layer": [
368
+ 48,
369
+ 64,
370
+ 64,
371
+ 64,
372
+ 48,
373
+ 64,
374
+ 64,
375
+ 64,
376
+ 48,
377
+ 64,
378
+ 64,
379
+ 64,
380
+ 48,
381
+ 64,
382
+ 64,
383
+ 64,
384
+ 48,
385
+ 64,
386
+ 64,
387
+ 64,
388
+ 48,
389
+ 64,
390
+ 64,
391
+ 64,
392
+ 48,
393
+ 64,
394
+ 64,
395
+ 64,
396
+ 48,
397
+ 64,
398
+ 64,
399
+ 64,
400
+ 48,
401
+ 64,
402
+ 64,
403
+ 64,
404
+ 48,
405
+ 64,
406
+ 64,
407
+ 64
408
+ ],
409
+ "num_beam_groups": 1,
410
+ "num_beams": 1,
411
+ "num_cores_per_group": 1,
412
+ "num_experts": 256,
413
+ "num_experts_per_tok": 8,
414
+ "num_hidden_layers": 40,
415
+ "num_key_value_heads": 8,
416
+ "num_local_experts": 256,
417
+ "num_return_sequences": 1,
418
+ "output_attentions": false,
419
+ "output_hidden_states": false,
420
+ "output_scores": false,
421
+ "pad_token_id": 9,
422
+ "partial_rotary_factor": 0.5,
423
+ "prefix": null,
424
+ "problem_type": null,
425
+ "pruned_heads": {},
426
+ "remove_invalid_values": false,
427
+ "repetition_penalty": 1.0,
428
+ "return_dict": true,
429
+ "return_dict_in_generate": false,
430
+ "rms_norm_eps": 1e-06,
431
+ "rope_parameters": {
432
+ "full_attention": {
433
+ "attention_factor": 1.0,
434
+ "beta_fast": 64.0,
435
+ "beta_slow": 1.0,
436
+ "factor": 32.0,
437
+ "original_max_position_embeddings": 4096,
438
+ "partial_rotary_factor": 0.5,
439
+ "rope_theta": 500000.0,
440
+ "rope_type": "yarn"
441
+ },
442
+ "original_max_position_embeddings": 4096,
443
+ "rope_type": "yarn",
444
+ "sliding_attention": {
445
+ "partial_rotary_factor": 1.0,
446
+ "rope_theta": 10000.0,
447
+ "rope_type": "default"
448
+ }
449
+ },
450
+ "router_aux_loss_coef": 0.0,
451
+ "sep_token_id": null,
452
+ "shared_expert_intermediate_size": 512,
453
+ "sliding_window": 512,
454
+ "suppress_tokens": null,
455
+ "task_specific_params": null,
456
+ "temperature": 1.0,
457
+ "tf_legacy_loss": false,
458
+ "tie_encoder_decoder": false,
459
+ "tie_word_embeddings": false,
460
+ "tokenizer_class": null,
461
+ "top_k": 50,
462
+ "top_p": 1.0,
463
+ "torchscript": false,
464
+ "transformers_version": "4.57.6",
465
+ "typical_p": 1.0,
466
+ "use_bfloat16": false,
467
+ "use_cache": true,
468
+ "vocab_size": 100352
469
+ }