Upload 340M/routpath_routfox_topk8_constant consolidated checkpoint
Browse files- 340M/routpath_routfox_topk8_constant/config.json +48 -0
- 340M/routpath_routfox_topk8_constant/generation_config.json +6 -0
- 340M/routpath_routfox_topk8_constant/model.safetensors +3 -0
- 340M/routpath_routfox_topk8_constant/special_tokens_map.json +23 -0
- 340M/routpath_routfox_topk8_constant/tokenizer.json +0 -0
- 340M/routpath_routfox_topk8_constant/tokenizer_config.json +44 -0
340M/routpath_routfox_topk8_constant/config.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_gumbel_noise": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"PaTHAttentionForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"bos_token_id": 1,
|
| 7 |
+
"elementwise_affine": true,
|
| 8 |
+
"eos_token_id": 2,
|
| 9 |
+
"fuse_cross_entropy": true,
|
| 10 |
+
"fuse_linear_cross_entropy": false,
|
| 11 |
+
"fuse_norm": true,
|
| 12 |
+
"fuse_swiglu": true,
|
| 13 |
+
"gate_logit_normalizer": 1.0,
|
| 14 |
+
"gumbel_decay_steps": null,
|
| 15 |
+
"gumbel_hold_step_ratio": 0.1,
|
| 16 |
+
"gumbel_hold_steps": null,
|
| 17 |
+
"gumbel_scale": 1.0,
|
| 18 |
+
"gumbel_schedule": "constant",
|
| 19 |
+
"gumbel_zero_step_ratio": 0.5,
|
| 20 |
+
"hidden_act": "swish",
|
| 21 |
+
"hidden_ratio": 4,
|
| 22 |
+
"hidden_size": 1024,
|
| 23 |
+
"initializer_range": 0.02,
|
| 24 |
+
"intermediate_size": null,
|
| 25 |
+
"log_router_stats": true,
|
| 26 |
+
"model_type": "path_attn",
|
| 27 |
+
"norm_eps": 1e-06,
|
| 28 |
+
"num_heads": 16,
|
| 29 |
+
"num_hidden_layers": 22,
|
| 30 |
+
"num_kv_heads": 16,
|
| 31 |
+
"qk_norm": false,
|
| 32 |
+
"qkv_bias": false,
|
| 33 |
+
"router_bias": false,
|
| 34 |
+
"router_score": "sigmoid",
|
| 35 |
+
"router_topk": 8,
|
| 36 |
+
"router_type": "lin",
|
| 37 |
+
"tie_word_embeddings": false,
|
| 38 |
+
"torch_dtype": "float32",
|
| 39 |
+
"transformers_version": "4.55.4",
|
| 40 |
+
"use_beta_router": true,
|
| 41 |
+
"use_cache": true,
|
| 42 |
+
"use_forget_gate": true,
|
| 43 |
+
"use_head_router": true,
|
| 44 |
+
"use_l2warp": false,
|
| 45 |
+
"use_low_rank_w": true,
|
| 46 |
+
"use_w_shortconv": true,
|
| 47 |
+
"vocab_size": 32000
|
| 48 |
+
}
|
340M/routpath_routfox_topk8_constant/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.55.4"
|
| 6 |
+
}
|
340M/routpath_routfox_topk8_constant/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1716d43d0dedbc85bc0fe499f903262723dc267bf84322fcaae3a3f04f73513f
|
| 3 |
+
size 1403099784
|
340M/routpath_routfox_topk8_constant/special_tokens_map.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<s>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "</s>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"unk_token": {
|
| 17 |
+
"content": "<unk>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
}
|
| 23 |
+
}
|
340M/routpath_routfox_topk8_constant/tokenizer.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
340M/routpath_routfox_topk8_constant/tokenizer_config.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"add_bos_token": true,
|
| 3 |
+
"add_eos_token": false,
|
| 4 |
+
"add_prefix_space": null,
|
| 5 |
+
"added_tokens_decoder": {
|
| 6 |
+
"0": {
|
| 7 |
+
"content": "<unk>",
|
| 8 |
+
"lstrip": false,
|
| 9 |
+
"normalized": false,
|
| 10 |
+
"rstrip": false,
|
| 11 |
+
"single_word": false,
|
| 12 |
+
"special": true
|
| 13 |
+
},
|
| 14 |
+
"1": {
|
| 15 |
+
"content": "<s>",
|
| 16 |
+
"lstrip": false,
|
| 17 |
+
"normalized": false,
|
| 18 |
+
"rstrip": false,
|
| 19 |
+
"single_word": false,
|
| 20 |
+
"special": true
|
| 21 |
+
},
|
| 22 |
+
"2": {
|
| 23 |
+
"content": "</s>",
|
| 24 |
+
"lstrip": false,
|
| 25 |
+
"normalized": false,
|
| 26 |
+
"rstrip": false,
|
| 27 |
+
"single_word": false,
|
| 28 |
+
"special": true
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"additional_special_tokens": [],
|
| 32 |
+
"bos_token": "<s>",
|
| 33 |
+
"clean_up_tokenization_spaces": false,
|
| 34 |
+
"eos_token": "</s>",
|
| 35 |
+
"extra_special_tokens": {},
|
| 36 |
+
"legacy": true,
|
| 37 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 38 |
+
"pad_token": null,
|
| 39 |
+
"sp_model_kwargs": {},
|
| 40 |
+
"spaces_between_special_tokens": false,
|
| 41 |
+
"tokenizer_class": "LlamaTokenizer",
|
| 42 |
+
"unk_token": "<unk>",
|
| 43 |
+
"use_default_system_prompt": false
|
| 44 |
+
}
|