Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- chat_template.jinja +65 -0
- config.json +515 -0
- configuration_afmoe.py +133 -0
- generation_config.json +10 -0
- model-00002-of-00081.safetensors +3 -0
- model-00003-of-00081.safetensors +3 -0
- model-00004-of-00081.safetensors +3 -0
- model-00005-of-00081.safetensors +3 -0
- model-00007-of-00081.safetensors +3 -0
- model-00009-of-00081.safetensors +3 -0
- model-00010-of-00081.safetensors +3 -0
- model-00011-of-00081.safetensors +3 -0
- model-00012-of-00081.safetensors +3 -0
- model-00013-of-00081.safetensors +3 -0
- model-00017-of-00081.safetensors +3 -0
- model-00021-of-00081.safetensors +3 -0
- model-00023-of-00081.safetensors +3 -0
- model-00025-of-00081.safetensors +3 -0
- model-00026-of-00081.safetensors +3 -0
- model-00028-of-00081.safetensors +3 -0
- model-00029-of-00081.safetensors +3 -0
- model-00032-of-00081.safetensors +3 -0
- model-00033-of-00081.safetensors +3 -0
- model-00034-of-00081.safetensors +3 -0
- model-00036-of-00081.safetensors +3 -0
- model-00037-of-00081.safetensors +3 -0
- model-00038-of-00081.safetensors +3 -0
- model-00042-of-00081.safetensors +3 -0
- model-00045-of-00081.safetensors +3 -0
- model-00046-of-00081.safetensors +3 -0
- model-00049-of-00081.safetensors +3 -0
- model-00052-of-00081.safetensors +3 -0
- model-00053-of-00081.safetensors +3 -0
- model-00054-of-00081.safetensors +3 -0
- model-00055-of-00081.safetensors +3 -0
- model-00059-of-00081.safetensors +3 -0
- model-00061-of-00081.safetensors +3 -0
- model-00063-of-00081.safetensors +3 -0
- model-00064-of-00081.safetensors +3 -0
- model-00066-of-00081.safetensors +3 -0
- model-00069-of-00081.safetensors +3 -0
- model-00072-of-00081.safetensors +3 -0
- model-00079-of-00081.safetensors +3 -0
- model-00080-of-00081.safetensors +3 -0
- model-00081-of-00081.safetensors +3 -0
- model.safetensors.index.json +0 -0
- recipe.yaml +7 -0
- special_tokens_map.json +23 -0
- tokenizer.json +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{{ bos_token }}{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0].role == 'system' %}
|
| 4 |
+
{{- messages[0].content + '\n\n' }}
|
| 5 |
+
{%- endif %}
|
| 6 |
+
{{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 7 |
+
{%- for tool in tools %}
|
| 8 |
+
{{- "\n" }}
|
| 9 |
+
{{- tool | tojson }}
|
| 10 |
+
{%- endfor %}
|
| 11 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 12 |
+
{%- else %}
|
| 13 |
+
{%- if messages[0].role == 'system' %}
|
| 14 |
+
{{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }}
|
| 15 |
+
{%- endif %}
|
| 16 |
+
{%- endif %}
|
| 17 |
+
{%- for message in messages %}
|
| 18 |
+
{%- if message.content is string %}
|
| 19 |
+
{%- set content = message.content %}
|
| 20 |
+
{%- else %}
|
| 21 |
+
{%- set content = '' %}
|
| 22 |
+
{%- endif %}
|
| 23 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) %}
|
| 24 |
+
{{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
|
| 25 |
+
{%- elif message.role == "assistant" %}
|
| 26 |
+
{{- '<|im_start|>' + message.role + '\n' }}
|
| 27 |
+
{% generation %}
|
| 28 |
+
{{- content}}
|
| 29 |
+
{%- if message.tool_calls %}
|
| 30 |
+
{%- for tool_call in message.tool_calls %}
|
| 31 |
+
{%- if (loop.first and content) or (not loop.first) %}
|
| 32 |
+
{{- '\n' }}
|
| 33 |
+
{%- endif %}
|
| 34 |
+
{%- if tool_call.function %}
|
| 35 |
+
{%- set tool_call = tool_call.function %}
|
| 36 |
+
{%- endif %}
|
| 37 |
+
{{- '<tool_call>\n{"name": "' }}
|
| 38 |
+
{{- tool_call.name }}
|
| 39 |
+
{{- '", "arguments": ' }}
|
| 40 |
+
{%- if tool_call.arguments is string %}
|
| 41 |
+
{{- tool_call.arguments }}
|
| 42 |
+
{%- else %}
|
| 43 |
+
{{- tool_call.arguments | tojson }}
|
| 44 |
+
{%- endif %}
|
| 45 |
+
{{- '}\n</tool_call>' }}
|
| 46 |
+
{%- endfor %}
|
| 47 |
+
{%- endif %}
|
| 48 |
+
{{- '<|im_end|>' }}
|
| 49 |
+
{% endgeneration%}
|
| 50 |
+
{{- '\n' }}
|
| 51 |
+
{%- elif message.role == "tool" %}
|
| 52 |
+
{%- if loop.first or (messages[loop.index0 - 1].role != "tool") %}
|
| 53 |
+
{{- '<|im_start|>user' }}
|
| 54 |
+
{%- endif %}
|
| 55 |
+
{{- '\n<tool_response>\n' }}
|
| 56 |
+
{{- content }}
|
| 57 |
+
{{- '\n</tool_response>' }}
|
| 58 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 59 |
+
{{- '<|im_end|>\n' }}
|
| 60 |
+
{%- endif %}
|
| 61 |
+
{%- endif %}
|
| 62 |
+
{%- endfor %}
|
| 63 |
+
{%- if add_generation_prompt %}
|
| 64 |
+
{{- '<|im_start|>assistant\n' }}
|
| 65 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"AfmoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"auto_map": {
|
| 7 |
+
"AutoConfig": "configuration_afmoe.AfmoeConfig",
|
| 8 |
+
"AutoModel": "modeling_afmoe.AfmoeModel",
|
| 9 |
+
"AutoModelForCausalLM": "modeling_afmoe.AfmoeForCausalLM"
|
| 10 |
+
},
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
+
"global_attn_every_n_layers": 4,
|
| 13 |
+
"head_dim": 128,
|
| 14 |
+
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 3072,
|
| 16 |
+
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 12288,
|
| 18 |
+
"layer_types": [
|
| 19 |
+
"sliding_attention",
|
| 20 |
+
"sliding_attention",
|
| 21 |
+
"sliding_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"sliding_attention",
|
| 24 |
+
"sliding_attention",
|
| 25 |
+
"sliding_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"sliding_attention",
|
| 28 |
+
"sliding_attention",
|
| 29 |
+
"sliding_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"sliding_attention",
|
| 32 |
+
"sliding_attention",
|
| 33 |
+
"sliding_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"sliding_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"full_attention",
|
| 39 |
+
"sliding_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"sliding_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"sliding_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
+
"sliding_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"full_attention",
|
| 55 |
+
"sliding_attention",
|
| 56 |
+
"sliding_attention",
|
| 57 |
+
"sliding_attention",
|
| 58 |
+
"full_attention",
|
| 59 |
+
"sliding_attention",
|
| 60 |
+
"sliding_attention",
|
| 61 |
+
"sliding_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"sliding_attention",
|
| 64 |
+
"sliding_attention",
|
| 65 |
+
"sliding_attention",
|
| 66 |
+
"full_attention",
|
| 67 |
+
"sliding_attention",
|
| 68 |
+
"sliding_attention",
|
| 69 |
+
"sliding_attention",
|
| 70 |
+
"full_attention",
|
| 71 |
+
"sliding_attention",
|
| 72 |
+
"sliding_attention",
|
| 73 |
+
"sliding_attention",
|
| 74 |
+
"full_attention",
|
| 75 |
+
"sliding_attention",
|
| 76 |
+
"sliding_attention",
|
| 77 |
+
"sliding_attention",
|
| 78 |
+
"full_attention"
|
| 79 |
+
],
|
| 80 |
+
"load_balance_coeff": 5e-05,
|
| 81 |
+
"max_position_embeddings": 262144,
|
| 82 |
+
"model_type": "afmoe",
|
| 83 |
+
"moe_intermediate_size": 3072,
|
| 84 |
+
"mup_enabled": true,
|
| 85 |
+
"n_group": 1,
|
| 86 |
+
"num_attention_heads": 48,
|
| 87 |
+
"num_dense_layers": 6,
|
| 88 |
+
"num_expert_groups": 1,
|
| 89 |
+
"num_experts": 256,
|
| 90 |
+
"num_experts_per_tok": 4,
|
| 91 |
+
"num_hidden_layers": 60,
|
| 92 |
+
"num_key_value_heads": 8,
|
| 93 |
+
"num_limited_groups": 1,
|
| 94 |
+
"num_shared_experts": 1,
|
| 95 |
+
"quantization_config": {
|
| 96 |
+
"config_groups": {
|
| 97 |
+
"group_0": {
|
| 98 |
+
"format": "float-quantized",
|
| 99 |
+
"input_activations": {
|
| 100 |
+
"actorder": null,
|
| 101 |
+
"block_structure": null,
|
| 102 |
+
"dynamic": true,
|
| 103 |
+
"group_size": 128,
|
| 104 |
+
"num_bits": 8,
|
| 105 |
+
"observer": null,
|
| 106 |
+
"observer_kwargs": {},
|
| 107 |
+
"scale_dtype": null,
|
| 108 |
+
"strategy": "group",
|
| 109 |
+
"symmetric": true,
|
| 110 |
+
"type": "float",
|
| 111 |
+
"zp_dtype": null
|
| 112 |
+
},
|
| 113 |
+
"output_activations": null,
|
| 114 |
+
"targets": [
|
| 115 |
+
"Linear"
|
| 116 |
+
],
|
| 117 |
+
"weights": {
|
| 118 |
+
"actorder": null,
|
| 119 |
+
"block_structure": [
|
| 120 |
+
128,
|
| 121 |
+
128
|
| 122 |
+
],
|
| 123 |
+
"dynamic": false,
|
| 124 |
+
"group_size": null,
|
| 125 |
+
"num_bits": 8,
|
| 126 |
+
"observer": "memoryless_minmax",
|
| 127 |
+
"observer_kwargs": {},
|
| 128 |
+
"scale_dtype": null,
|
| 129 |
+
"strategy": "block",
|
| 130 |
+
"symmetric": true,
|
| 131 |
+
"type": "float",
|
| 132 |
+
"zp_dtype": null
|
| 133 |
+
}
|
| 134 |
+
}
|
| 135 |
+
},
|
| 136 |
+
"format": "float-quantized",
|
| 137 |
+
"global_compression_ratio": null,
|
| 138 |
+
"ignore": [
|
| 139 |
+
"model.layers.0.self_attn.q_proj",
|
| 140 |
+
"model.layers.0.self_attn.k_proj",
|
| 141 |
+
"model.layers.0.self_attn.v_proj",
|
| 142 |
+
"model.layers.0.self_attn.o_proj",
|
| 143 |
+
"model.layers.0.self_attn.gate_proj",
|
| 144 |
+
"model.layers.1.self_attn.q_proj",
|
| 145 |
+
"model.layers.1.self_attn.k_proj",
|
| 146 |
+
"model.layers.1.self_attn.v_proj",
|
| 147 |
+
"model.layers.1.self_attn.o_proj",
|
| 148 |
+
"model.layers.1.self_attn.gate_proj",
|
| 149 |
+
"model.layers.2.self_attn.q_proj",
|
| 150 |
+
"model.layers.2.self_attn.k_proj",
|
| 151 |
+
"model.layers.2.self_attn.v_proj",
|
| 152 |
+
"model.layers.2.self_attn.o_proj",
|
| 153 |
+
"model.layers.2.self_attn.gate_proj",
|
| 154 |
+
"model.layers.3.self_attn.q_proj",
|
| 155 |
+
"model.layers.3.self_attn.k_proj",
|
| 156 |
+
"model.layers.3.self_attn.v_proj",
|
| 157 |
+
"model.layers.3.self_attn.o_proj",
|
| 158 |
+
"model.layers.3.self_attn.gate_proj",
|
| 159 |
+
"model.layers.4.self_attn.q_proj",
|
| 160 |
+
"model.layers.4.self_attn.k_proj",
|
| 161 |
+
"model.layers.4.self_attn.v_proj",
|
| 162 |
+
"model.layers.4.self_attn.o_proj",
|
| 163 |
+
"model.layers.4.self_attn.gate_proj",
|
| 164 |
+
"model.layers.5.self_attn.q_proj",
|
| 165 |
+
"model.layers.5.self_attn.k_proj",
|
| 166 |
+
"model.layers.5.self_attn.v_proj",
|
| 167 |
+
"model.layers.5.self_attn.o_proj",
|
| 168 |
+
"model.layers.5.self_attn.gate_proj",
|
| 169 |
+
"model.layers.6.self_attn.q_proj",
|
| 170 |
+
"model.layers.6.self_attn.k_proj",
|
| 171 |
+
"model.layers.6.self_attn.v_proj",
|
| 172 |
+
"model.layers.6.self_attn.o_proj",
|
| 173 |
+
"model.layers.6.self_attn.gate_proj",
|
| 174 |
+
"model.layers.6.mlp.router.gate",
|
| 175 |
+
"model.layers.7.self_attn.q_proj",
|
| 176 |
+
"model.layers.7.self_attn.k_proj",
|
| 177 |
+
"model.layers.7.self_attn.v_proj",
|
| 178 |
+
"model.layers.7.self_attn.o_proj",
|
| 179 |
+
"model.layers.7.self_attn.gate_proj",
|
| 180 |
+
"model.layers.7.mlp.router.gate",
|
| 181 |
+
"model.layers.8.self_attn.q_proj",
|
| 182 |
+
"model.layers.8.self_attn.k_proj",
|
| 183 |
+
"model.layers.8.self_attn.v_proj",
|
| 184 |
+
"model.layers.8.self_attn.o_proj",
|
| 185 |
+
"model.layers.8.self_attn.gate_proj",
|
| 186 |
+
"model.layers.8.mlp.router.gate",
|
| 187 |
+
"model.layers.9.self_attn.q_proj",
|
| 188 |
+
"model.layers.9.self_attn.k_proj",
|
| 189 |
+
"model.layers.9.self_attn.v_proj",
|
| 190 |
+
"model.layers.9.self_attn.o_proj",
|
| 191 |
+
"model.layers.9.self_attn.gate_proj",
|
| 192 |
+
"model.layers.9.mlp.router.gate",
|
| 193 |
+
"model.layers.10.self_attn.q_proj",
|
| 194 |
+
"model.layers.10.self_attn.k_proj",
|
| 195 |
+
"model.layers.10.self_attn.v_proj",
|
| 196 |
+
"model.layers.10.self_attn.o_proj",
|
| 197 |
+
"model.layers.10.self_attn.gate_proj",
|
| 198 |
+
"model.layers.10.mlp.router.gate",
|
| 199 |
+
"model.layers.11.self_attn.q_proj",
|
| 200 |
+
"model.layers.11.self_attn.k_proj",
|
| 201 |
+
"model.layers.11.self_attn.v_proj",
|
| 202 |
+
"model.layers.11.self_attn.o_proj",
|
| 203 |
+
"model.layers.11.self_attn.gate_proj",
|
| 204 |
+
"model.layers.11.mlp.router.gate",
|
| 205 |
+
"model.layers.12.self_attn.q_proj",
|
| 206 |
+
"model.layers.12.self_attn.k_proj",
|
| 207 |
+
"model.layers.12.self_attn.v_proj",
|
| 208 |
+
"model.layers.12.self_attn.o_proj",
|
| 209 |
+
"model.layers.12.self_attn.gate_proj",
|
| 210 |
+
"model.layers.12.mlp.router.gate",
|
| 211 |
+
"model.layers.13.self_attn.q_proj",
|
| 212 |
+
"model.layers.13.self_attn.k_proj",
|
| 213 |
+
"model.layers.13.self_attn.v_proj",
|
| 214 |
+
"model.layers.13.self_attn.o_proj",
|
| 215 |
+
"model.layers.13.self_attn.gate_proj",
|
| 216 |
+
"model.layers.13.mlp.router.gate",
|
| 217 |
+
"model.layers.14.self_attn.q_proj",
|
| 218 |
+
"model.layers.14.self_attn.k_proj",
|
| 219 |
+
"model.layers.14.self_attn.v_proj",
|
| 220 |
+
"model.layers.14.self_attn.o_proj",
|
| 221 |
+
"model.layers.14.self_attn.gate_proj",
|
| 222 |
+
"model.layers.14.mlp.router.gate",
|
| 223 |
+
"model.layers.15.self_attn.q_proj",
|
| 224 |
+
"model.layers.15.self_attn.k_proj",
|
| 225 |
+
"model.layers.15.self_attn.v_proj",
|
| 226 |
+
"model.layers.15.self_attn.o_proj",
|
| 227 |
+
"model.layers.15.self_attn.gate_proj",
|
| 228 |
+
"model.layers.15.mlp.router.gate",
|
| 229 |
+
"model.layers.16.self_attn.q_proj",
|
| 230 |
+
"model.layers.16.self_attn.k_proj",
|
| 231 |
+
"model.layers.16.self_attn.v_proj",
|
| 232 |
+
"model.layers.16.self_attn.o_proj",
|
| 233 |
+
"model.layers.16.self_attn.gate_proj",
|
| 234 |
+
"model.layers.16.mlp.router.gate",
|
| 235 |
+
"model.layers.17.self_attn.q_proj",
|
| 236 |
+
"model.layers.17.self_attn.k_proj",
|
| 237 |
+
"model.layers.17.self_attn.v_proj",
|
| 238 |
+
"model.layers.17.self_attn.o_proj",
|
| 239 |
+
"model.layers.17.self_attn.gate_proj",
|
| 240 |
+
"model.layers.17.mlp.router.gate",
|
| 241 |
+
"model.layers.18.self_attn.q_proj",
|
| 242 |
+
"model.layers.18.self_attn.k_proj",
|
| 243 |
+
"model.layers.18.self_attn.v_proj",
|
| 244 |
+
"model.layers.18.self_attn.o_proj",
|
| 245 |
+
"model.layers.18.self_attn.gate_proj",
|
| 246 |
+
"model.layers.18.mlp.router.gate",
|
| 247 |
+
"model.layers.19.self_attn.q_proj",
|
| 248 |
+
"model.layers.19.self_attn.k_proj",
|
| 249 |
+
"model.layers.19.self_attn.v_proj",
|
| 250 |
+
"model.layers.19.self_attn.o_proj",
|
| 251 |
+
"model.layers.19.self_attn.gate_proj",
|
| 252 |
+
"model.layers.19.mlp.router.gate",
|
| 253 |
+
"model.layers.20.self_attn.q_proj",
|
| 254 |
+
"model.layers.20.self_attn.k_proj",
|
| 255 |
+
"model.layers.20.self_attn.v_proj",
|
| 256 |
+
"model.layers.20.self_attn.o_proj",
|
| 257 |
+
"model.layers.20.self_attn.gate_proj",
|
| 258 |
+
"model.layers.20.mlp.router.gate",
|
| 259 |
+
"model.layers.21.self_attn.q_proj",
|
| 260 |
+
"model.layers.21.self_attn.k_proj",
|
| 261 |
+
"model.layers.21.self_attn.v_proj",
|
| 262 |
+
"model.layers.21.self_attn.o_proj",
|
| 263 |
+
"model.layers.21.self_attn.gate_proj",
|
| 264 |
+
"model.layers.21.mlp.router.gate",
|
| 265 |
+
"model.layers.22.self_attn.q_proj",
|
| 266 |
+
"model.layers.22.self_attn.k_proj",
|
| 267 |
+
"model.layers.22.self_attn.v_proj",
|
| 268 |
+
"model.layers.22.self_attn.o_proj",
|
| 269 |
+
"model.layers.22.self_attn.gate_proj",
|
| 270 |
+
"model.layers.22.mlp.router.gate",
|
| 271 |
+
"model.layers.23.self_attn.q_proj",
|
| 272 |
+
"model.layers.23.self_attn.k_proj",
|
| 273 |
+
"model.layers.23.self_attn.v_proj",
|
| 274 |
+
"model.layers.23.self_attn.o_proj",
|
| 275 |
+
"model.layers.23.self_attn.gate_proj",
|
| 276 |
+
"model.layers.23.mlp.router.gate",
|
| 277 |
+
"model.layers.24.self_attn.q_proj",
|
| 278 |
+
"model.layers.24.self_attn.k_proj",
|
| 279 |
+
"model.layers.24.self_attn.v_proj",
|
| 280 |
+
"model.layers.24.self_attn.o_proj",
|
| 281 |
+
"model.layers.24.self_attn.gate_proj",
|
| 282 |
+
"model.layers.24.mlp.router.gate",
|
| 283 |
+
"model.layers.25.self_attn.q_proj",
|
| 284 |
+
"model.layers.25.self_attn.k_proj",
|
| 285 |
+
"model.layers.25.self_attn.v_proj",
|
| 286 |
+
"model.layers.25.self_attn.o_proj",
|
| 287 |
+
"model.layers.25.self_attn.gate_proj",
|
| 288 |
+
"model.layers.25.mlp.router.gate",
|
| 289 |
+
"model.layers.26.self_attn.q_proj",
|
| 290 |
+
"model.layers.26.self_attn.k_proj",
|
| 291 |
+
"model.layers.26.self_attn.v_proj",
|
| 292 |
+
"model.layers.26.self_attn.o_proj",
|
| 293 |
+
"model.layers.26.self_attn.gate_proj",
|
| 294 |
+
"model.layers.26.mlp.router.gate",
|
| 295 |
+
"model.layers.27.self_attn.q_proj",
|
| 296 |
+
"model.layers.27.self_attn.k_proj",
|
| 297 |
+
"model.layers.27.self_attn.v_proj",
|
| 298 |
+
"model.layers.27.self_attn.o_proj",
|
| 299 |
+
"model.layers.27.self_attn.gate_proj",
|
| 300 |
+
"model.layers.27.mlp.router.gate",
|
| 301 |
+
"model.layers.28.self_attn.q_proj",
|
| 302 |
+
"model.layers.28.self_attn.k_proj",
|
| 303 |
+
"model.layers.28.self_attn.v_proj",
|
| 304 |
+
"model.layers.28.self_attn.o_proj",
|
| 305 |
+
"model.layers.28.self_attn.gate_proj",
|
| 306 |
+
"model.layers.28.mlp.router.gate",
|
| 307 |
+
"model.layers.29.self_attn.q_proj",
|
| 308 |
+
"model.layers.29.self_attn.k_proj",
|
| 309 |
+
"model.layers.29.self_attn.v_proj",
|
| 310 |
+
"model.layers.29.self_attn.o_proj",
|
| 311 |
+
"model.layers.29.self_attn.gate_proj",
|
| 312 |
+
"model.layers.29.mlp.router.gate",
|
| 313 |
+
"model.layers.30.self_attn.q_proj",
|
| 314 |
+
"model.layers.30.self_attn.k_proj",
|
| 315 |
+
"model.layers.30.self_attn.v_proj",
|
| 316 |
+
"model.layers.30.self_attn.o_proj",
|
| 317 |
+
"model.layers.30.self_attn.gate_proj",
|
| 318 |
+
"model.layers.30.mlp.router.gate",
|
| 319 |
+
"model.layers.31.self_attn.q_proj",
|
| 320 |
+
"model.layers.31.self_attn.k_proj",
|
| 321 |
+
"model.layers.31.self_attn.v_proj",
|
| 322 |
+
"model.layers.31.self_attn.o_proj",
|
| 323 |
+
"model.layers.31.self_attn.gate_proj",
|
| 324 |
+
"model.layers.31.mlp.router.gate",
|
| 325 |
+
"model.layers.32.self_attn.q_proj",
|
| 326 |
+
"model.layers.32.self_attn.k_proj",
|
| 327 |
+
"model.layers.32.self_attn.v_proj",
|
| 328 |
+
"model.layers.32.self_attn.o_proj",
|
| 329 |
+
"model.layers.32.self_attn.gate_proj",
|
| 330 |
+
"model.layers.32.mlp.router.gate",
|
| 331 |
+
"model.layers.33.self_attn.q_proj",
|
| 332 |
+
"model.layers.33.self_attn.k_proj",
|
| 333 |
+
"model.layers.33.self_attn.v_proj",
|
| 334 |
+
"model.layers.33.self_attn.o_proj",
|
| 335 |
+
"model.layers.33.self_attn.gate_proj",
|
| 336 |
+
"model.layers.33.mlp.router.gate",
|
| 337 |
+
"model.layers.34.self_attn.q_proj",
|
| 338 |
+
"model.layers.34.self_attn.k_proj",
|
| 339 |
+
"model.layers.34.self_attn.v_proj",
|
| 340 |
+
"model.layers.34.self_attn.o_proj",
|
| 341 |
+
"model.layers.34.self_attn.gate_proj",
|
| 342 |
+
"model.layers.34.mlp.router.gate",
|
| 343 |
+
"model.layers.35.self_attn.q_proj",
|
| 344 |
+
"model.layers.35.self_attn.k_proj",
|
| 345 |
+
"model.layers.35.self_attn.v_proj",
|
| 346 |
+
"model.layers.35.self_attn.o_proj",
|
| 347 |
+
"model.layers.35.self_attn.gate_proj",
|
| 348 |
+
"model.layers.35.mlp.router.gate",
|
| 349 |
+
"model.layers.36.self_attn.q_proj",
|
| 350 |
+
"model.layers.36.self_attn.k_proj",
|
| 351 |
+
"model.layers.36.self_attn.v_proj",
|
| 352 |
+
"model.layers.36.self_attn.o_proj",
|
| 353 |
+
"model.layers.36.self_attn.gate_proj",
|
| 354 |
+
"model.layers.36.mlp.router.gate",
|
| 355 |
+
"model.layers.37.self_attn.q_proj",
|
| 356 |
+
"model.layers.37.self_attn.k_proj",
|
| 357 |
+
"model.layers.37.self_attn.v_proj",
|
| 358 |
+
"model.layers.37.self_attn.o_proj",
|
| 359 |
+
"model.layers.37.self_attn.gate_proj",
|
| 360 |
+
"model.layers.37.mlp.router.gate",
|
| 361 |
+
"model.layers.38.self_attn.q_proj",
|
| 362 |
+
"model.layers.38.self_attn.k_proj",
|
| 363 |
+
"model.layers.38.self_attn.v_proj",
|
| 364 |
+
"model.layers.38.self_attn.o_proj",
|
| 365 |
+
"model.layers.38.self_attn.gate_proj",
|
| 366 |
+
"model.layers.38.mlp.router.gate",
|
| 367 |
+
"model.layers.39.self_attn.q_proj",
|
| 368 |
+
"model.layers.39.self_attn.k_proj",
|
| 369 |
+
"model.layers.39.self_attn.v_proj",
|
| 370 |
+
"model.layers.39.self_attn.o_proj",
|
| 371 |
+
"model.layers.39.self_attn.gate_proj",
|
| 372 |
+
"model.layers.39.mlp.router.gate",
|
| 373 |
+
"model.layers.40.self_attn.q_proj",
|
| 374 |
+
"model.layers.40.self_attn.k_proj",
|
| 375 |
+
"model.layers.40.self_attn.v_proj",
|
| 376 |
+
"model.layers.40.self_attn.o_proj",
|
| 377 |
+
"model.layers.40.self_attn.gate_proj",
|
| 378 |
+
"model.layers.40.mlp.router.gate",
|
| 379 |
+
"model.layers.41.self_attn.q_proj",
|
| 380 |
+
"model.layers.41.self_attn.k_proj",
|
| 381 |
+
"model.layers.41.self_attn.v_proj",
|
| 382 |
+
"model.layers.41.self_attn.o_proj",
|
| 383 |
+
"model.layers.41.self_attn.gate_proj",
|
| 384 |
+
"model.layers.41.mlp.router.gate",
|
| 385 |
+
"model.layers.42.self_attn.q_proj",
|
| 386 |
+
"model.layers.42.self_attn.k_proj",
|
| 387 |
+
"model.layers.42.self_attn.v_proj",
|
| 388 |
+
"model.layers.42.self_attn.o_proj",
|
| 389 |
+
"model.layers.42.self_attn.gate_proj",
|
| 390 |
+
"model.layers.42.mlp.router.gate",
|
| 391 |
+
"model.layers.43.self_attn.q_proj",
|
| 392 |
+
"model.layers.43.self_attn.k_proj",
|
| 393 |
+
"model.layers.43.self_attn.v_proj",
|
| 394 |
+
"model.layers.43.self_attn.o_proj",
|
| 395 |
+
"model.layers.43.self_attn.gate_proj",
|
| 396 |
+
"model.layers.43.mlp.router.gate",
|
| 397 |
+
"model.layers.44.self_attn.q_proj",
|
| 398 |
+
"model.layers.44.self_attn.k_proj",
|
| 399 |
+
"model.layers.44.self_attn.v_proj",
|
| 400 |
+
"model.layers.44.self_attn.o_proj",
|
| 401 |
+
"model.layers.44.self_attn.gate_proj",
|
| 402 |
+
"model.layers.44.mlp.router.gate",
|
| 403 |
+
"model.layers.45.self_attn.q_proj",
|
| 404 |
+
"model.layers.45.self_attn.k_proj",
|
| 405 |
+
"model.layers.45.self_attn.v_proj",
|
| 406 |
+
"model.layers.45.self_attn.o_proj",
|
| 407 |
+
"model.layers.45.self_attn.gate_proj",
|
| 408 |
+
"model.layers.45.mlp.router.gate",
|
| 409 |
+
"model.layers.46.self_attn.q_proj",
|
| 410 |
+
"model.layers.46.self_attn.k_proj",
|
| 411 |
+
"model.layers.46.self_attn.v_proj",
|
| 412 |
+
"model.layers.46.self_attn.o_proj",
|
| 413 |
+
"model.layers.46.self_attn.gate_proj",
|
| 414 |
+
"model.layers.46.mlp.router.gate",
|
| 415 |
+
"model.layers.47.self_attn.q_proj",
|
| 416 |
+
"model.layers.47.self_attn.k_proj",
|
| 417 |
+
"model.layers.47.self_attn.v_proj",
|
| 418 |
+
"model.layers.47.self_attn.o_proj",
|
| 419 |
+
"model.layers.47.self_attn.gate_proj",
|
| 420 |
+
"model.layers.47.mlp.router.gate",
|
| 421 |
+
"model.layers.48.self_attn.q_proj",
|
| 422 |
+
"model.layers.48.self_attn.k_proj",
|
| 423 |
+
"model.layers.48.self_attn.v_proj",
|
| 424 |
+
"model.layers.48.self_attn.o_proj",
|
| 425 |
+
"model.layers.48.self_attn.gate_proj",
|
| 426 |
+
"model.layers.48.mlp.router.gate",
|
| 427 |
+
"model.layers.49.self_attn.q_proj",
|
| 428 |
+
"model.layers.49.self_attn.k_proj",
|
| 429 |
+
"model.layers.49.self_attn.v_proj",
|
| 430 |
+
"model.layers.49.self_attn.o_proj",
|
| 431 |
+
"model.layers.49.self_attn.gate_proj",
|
| 432 |
+
"model.layers.49.mlp.router.gate",
|
| 433 |
+
"model.layers.50.self_attn.q_proj",
|
| 434 |
+
"model.layers.50.self_attn.k_proj",
|
| 435 |
+
"model.layers.50.self_attn.v_proj",
|
| 436 |
+
"model.layers.50.self_attn.o_proj",
|
| 437 |
+
"model.layers.50.self_attn.gate_proj",
|
| 438 |
+
"model.layers.50.mlp.router.gate",
|
| 439 |
+
"model.layers.51.self_attn.q_proj",
|
| 440 |
+
"model.layers.51.self_attn.k_proj",
|
| 441 |
+
"model.layers.51.self_attn.v_proj",
|
| 442 |
+
"model.layers.51.self_attn.o_proj",
|
| 443 |
+
"model.layers.51.self_attn.gate_proj",
|
| 444 |
+
"model.layers.51.mlp.router.gate",
|
| 445 |
+
"model.layers.52.self_attn.q_proj",
|
| 446 |
+
"model.layers.52.self_attn.k_proj",
|
| 447 |
+
"model.layers.52.self_attn.v_proj",
|
| 448 |
+
"model.layers.52.self_attn.o_proj",
|
| 449 |
+
"model.layers.52.self_attn.gate_proj",
|
| 450 |
+
"model.layers.52.mlp.router.gate",
|
| 451 |
+
"model.layers.53.self_attn.q_proj",
|
| 452 |
+
"model.layers.53.self_attn.k_proj",
|
| 453 |
+
"model.layers.53.self_attn.v_proj",
|
| 454 |
+
"model.layers.53.self_attn.o_proj",
|
| 455 |
+
"model.layers.53.self_attn.gate_proj",
|
| 456 |
+
"model.layers.53.mlp.router.gate",
|
| 457 |
+
"model.layers.54.self_attn.q_proj",
|
| 458 |
+
"model.layers.54.self_attn.k_proj",
|
| 459 |
+
"model.layers.54.self_attn.v_proj",
|
| 460 |
+
"model.layers.54.self_attn.o_proj",
|
| 461 |
+
"model.layers.54.self_attn.gate_proj",
|
| 462 |
+
"model.layers.54.mlp.router.gate",
|
| 463 |
+
"model.layers.55.self_attn.q_proj",
|
| 464 |
+
"model.layers.55.self_attn.k_proj",
|
| 465 |
+
"model.layers.55.self_attn.v_proj",
|
| 466 |
+
"model.layers.55.self_attn.o_proj",
|
| 467 |
+
"model.layers.55.self_attn.gate_proj",
|
| 468 |
+
"model.layers.55.mlp.router.gate",
|
| 469 |
+
"model.layers.56.self_attn.q_proj",
|
| 470 |
+
"model.layers.56.self_attn.k_proj",
|
| 471 |
+
"model.layers.56.self_attn.v_proj",
|
| 472 |
+
"model.layers.56.self_attn.o_proj",
|
| 473 |
+
"model.layers.56.self_attn.gate_proj",
|
| 474 |
+
"model.layers.56.mlp.router.gate",
|
| 475 |
+
"model.layers.57.self_attn.q_proj",
|
| 476 |
+
"model.layers.57.self_attn.k_proj",
|
| 477 |
+
"model.layers.57.self_attn.v_proj",
|
| 478 |
+
"model.layers.57.self_attn.o_proj",
|
| 479 |
+
"model.layers.57.self_attn.gate_proj",
|
| 480 |
+
"model.layers.57.mlp.router.gate",
|
| 481 |
+
"model.layers.58.self_attn.q_proj",
|
| 482 |
+
"model.layers.58.self_attn.k_proj",
|
| 483 |
+
"model.layers.58.self_attn.v_proj",
|
| 484 |
+
"model.layers.58.self_attn.o_proj",
|
| 485 |
+
"model.layers.58.self_attn.gate_proj",
|
| 486 |
+
"model.layers.58.mlp.router.gate",
|
| 487 |
+
"model.layers.59.self_attn.q_proj",
|
| 488 |
+
"model.layers.59.self_attn.k_proj",
|
| 489 |
+
"model.layers.59.self_attn.v_proj",
|
| 490 |
+
"model.layers.59.self_attn.o_proj",
|
| 491 |
+
"model.layers.59.self_attn.gate_proj",
|
| 492 |
+
"model.layers.59.mlp.router.gate",
|
| 493 |
+
"lm_head"
|
| 494 |
+
],
|
| 495 |
+
"kv_cache_scheme": null,
|
| 496 |
+
"quant_method": "compressed-tensors",
|
| 497 |
+
"quantization_status": "compressed",
|
| 498 |
+
"sparsity_config": {},
|
| 499 |
+
"transform_config": {},
|
| 500 |
+
"version": "0.14.0"
|
| 501 |
+
},
|
| 502 |
+
"rms_norm_eps": 1e-05,
|
| 503 |
+
"rope_scaling": null,
|
| 504 |
+
"rope_theta": 10000,
|
| 505 |
+
"route_norm": true,
|
| 506 |
+
"route_scale": 2.448,
|
| 507 |
+
"score_func": "sigmoid",
|
| 508 |
+
"sliding_window": 4096,
|
| 509 |
+
"tie_word_embeddings": false,
|
| 510 |
+
"topk_group": 1,
|
| 511 |
+
"transformers_version": "4.57.6",
|
| 512 |
+
"use_cache": true,
|
| 513 |
+
"use_grouped_mm": true,
|
| 514 |
+
"vocab_size": 200192
|
| 515 |
+
}
|
configuration_afmoe.py
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# coding=utf-8
|
| 2 |
+
# Copyright 2022 EleutherAI and the HuggingFace Inc. team. All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
# you may not use this file except in compliance with the License.
|
| 6 |
+
# You may obtain a copy of the License at
|
| 7 |
+
#
|
| 8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
#
|
| 10 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
# See the License for the specific language governing permissions and
|
| 14 |
+
# limitations under the License.
|
| 15 |
+
from transformers.configuration_utils import PretrainedConfig
|
| 16 |
+
from transformers.modeling_rope_utils import rope_config_validation
|
| 17 |
+
from transformers.configuration_utils import layer_type_validation
|
| 18 |
+
from transformers.utils import logging
|
| 19 |
+
|
| 20 |
+
logger = logging.get_logger(__name__)
|
| 21 |
+
|
| 22 |
+
class AfmoeConfig(PretrainedConfig):
|
| 23 |
+
"""
|
| 24 |
+
n_group (`int`, *optional*, defaults to 1):
|
| 25 |
+
Number of groups for routed experts.
|
| 26 |
+
topk_group (`int`, *optional*, defaults to 1):
|
| 27 |
+
Number of selected groups for each token(for each token, ensuring the selected experts is only within `topk_group` groups).
|
| 28 |
+
"""
|
| 29 |
+
model_type = "afmoe"
|
| 30 |
+
base_model_pp_plan = {
|
| 31 |
+
"embed_tokens": (["input_ids"], ["inputs_embeds"]),
|
| 32 |
+
"layers": (["hidden_states", "attention_mask"], ["hidden_states"]),
|
| 33 |
+
"norm": (["hidden_states"], ["hidden_states"]),
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
def __init__(
|
| 37 |
+
self,
|
| 38 |
+
num_hidden_layers: int = 32,
|
| 39 |
+
vocab_size: int = 200192,
|
| 40 |
+
hidden_size: int = 2048,
|
| 41 |
+
intermediate_size: int = 6144,
|
| 42 |
+
moe_intermediate_size=1408,
|
| 43 |
+
num_dense_layers=1,
|
| 44 |
+
num_attention_heads=16,
|
| 45 |
+
num_key_value_heads=None,
|
| 46 |
+
head_dim=128,
|
| 47 |
+
hidden_act="silu",
|
| 48 |
+
max_position_embeddings=16384,
|
| 49 |
+
initializer_range=0.02,
|
| 50 |
+
rms_norm_eps=1e-5,
|
| 51 |
+
use_cache=True,
|
| 52 |
+
tie_word_embeddings=False,
|
| 53 |
+
rope_theta=10000.0,
|
| 54 |
+
rope_scaling=None,
|
| 55 |
+
num_experts=64,
|
| 56 |
+
num_experts_per_tok=6,
|
| 57 |
+
num_shared_experts=2,
|
| 58 |
+
num_expert_groups=1,
|
| 59 |
+
num_limited_groups=1,
|
| 60 |
+
score_func="sigmoid",
|
| 61 |
+
route_norm=True,
|
| 62 |
+
route_scale=1.0,
|
| 63 |
+
global_attn_every_n_layers=4,
|
| 64 |
+
sliding_window=1024,
|
| 65 |
+
mup_enabled=False,
|
| 66 |
+
layer_types=None,
|
| 67 |
+
attention_dropout: float = 0.0,
|
| 68 |
+
n_group: int = 1,
|
| 69 |
+
topk_group: int = 1,
|
| 70 |
+
**kwargs,
|
| 71 |
+
):
|
| 72 |
+
self.vocab_size = vocab_size
|
| 73 |
+
self.max_position_embeddings = max_position_embeddings
|
| 74 |
+
self.hidden_size = hidden_size
|
| 75 |
+
self.intermediate_size = intermediate_size
|
| 76 |
+
self.num_hidden_layers = num_hidden_layers
|
| 77 |
+
self.num_dense_layers = num_dense_layers
|
| 78 |
+
self.num_attention_heads = num_attention_heads
|
| 79 |
+
self.head_dim = head_dim
|
| 80 |
+
self.hidden_act = hidden_act
|
| 81 |
+
self.initializer_range = initializer_range
|
| 82 |
+
self.rms_norm_eps = rms_norm_eps
|
| 83 |
+
self.use_cache = use_cache
|
| 84 |
+
self.rope_theta = rope_theta
|
| 85 |
+
self.rope_scaling = rope_scaling
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
# MoE specific
|
| 89 |
+
self.moe_intermediate_size = moe_intermediate_size
|
| 90 |
+
self.num_experts_per_tok = num_experts_per_tok
|
| 91 |
+
self.n_group = n_group
|
| 92 |
+
self.topk_group = topk_group
|
| 93 |
+
self.num_experts = num_experts
|
| 94 |
+
self.num_shared_experts = num_shared_experts
|
| 95 |
+
self.num_expert_groups = num_expert_groups
|
| 96 |
+
self.num_limited_groups = num_limited_groups
|
| 97 |
+
self.score_func = score_func
|
| 98 |
+
self.route_norm = route_norm
|
| 99 |
+
self.route_scale = route_scale
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
# Attention specific
|
| 103 |
+
self.attention_dropout = attention_dropout
|
| 104 |
+
self.global_attn_every_n_layers = global_attn_every_n_layers
|
| 105 |
+
self.sliding_window = sliding_window
|
| 106 |
+
self.layer_types = layer_types
|
| 107 |
+
if self.layer_types is None:
|
| 108 |
+
self.layer_types = [
|
| 109 |
+
"sliding_attention" if bool((i + 1) % global_attn_every_n_layers) else "full_attention" for i in range(self.num_hidden_layers)
|
| 110 |
+
]
|
| 111 |
+
layer_type_validation(self.layer_types)
|
| 112 |
+
|
| 113 |
+
# muP specific
|
| 114 |
+
self.mup_enabled = mup_enabled
|
| 115 |
+
|
| 116 |
+
if num_key_value_heads is None:
|
| 117 |
+
num_key_value_heads = num_attention_heads
|
| 118 |
+
|
| 119 |
+
self.num_key_value_heads = num_key_value_heads
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
# Validate rope configs
|
| 123 |
+
if self.rope_scaling is not None and "type" in self.rope_scaling:
|
| 124 |
+
self.rope_scaling["rope_type"] = self.rope_scaling["type"]
|
| 125 |
+
rope_config_validation(self)
|
| 126 |
+
|
| 127 |
+
super().__init__(
|
| 128 |
+
tie_word_embeddings=tie_word_embeddings,
|
| 129 |
+
**kwargs,
|
| 130 |
+
)
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
__all__ = ["AfmoeConfig"]
|
generation_config.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 0,
|
| 4 |
+
"do_sample": true,
|
| 5 |
+
"eos_token_id": 3,
|
| 6 |
+
"pad_token_id": 12,
|
| 7 |
+
"temperature": 0.8,
|
| 8 |
+
"top_p": 0.8,
|
| 9 |
+
"transformers_version": "4.57.6"
|
| 10 |
+
}
|
model-00002-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32a18d0dd75fe2c2b5df5ff40f6f0428cd90eb1681c8861ccec96f4cf795dead
|
| 3 |
+
size 4993010240
|
model-00003-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b156805b23deeffe0be50154690039412b8b0ae61cb3dff038edec45caf524b
|
| 3 |
+
size 4997737720
|
model-00004-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9271ba1753b5a980f646024d67ed500efee02c97e258bab245e4b63192f66606
|
| 3 |
+
size 4997737816
|
model-00005-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7133af971736fc62e46748a963f2e8064884b3d6fcde75045069d43593255294
|
| 3 |
+
size 4986706032
|
model-00007-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:488c721d1e2c44735cc0283b33a88ce230b62c567824334bd8836b594a95673e
|
| 3 |
+
size 4997739824
|
model-00009-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d782411caf60c5ecf0d9da8057ce1fab40f11040942006ff9e4bf42c5955482b
|
| 3 |
+
size 4993010824
|
model-00010-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e378a634c7ed99ca5497ce28a915bf6e47430ec5ea3275858e1806531b10ef2
|
| 3 |
+
size 4997738792
|
model-00011-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40c8b9186ae9113c46820aacb387432daf6aaf28df54469e6a1b422c48441228
|
| 3 |
+
size 4997739272
|
model-00012-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:72b38889df4ebdba8a44c574293af942ae8687737102e0166a2eaa13ad005912
|
| 3 |
+
size 4993010896
|
model-00013-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8a76bc2f719f553dc4ff19329074cd9eb2b5ace9dabc7828d0988375cce7791e
|
| 3 |
+
size 4997738760
|
model-00017-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acd5833d26d5dd7181385b1b6ce2c13e366059f060e277dda5ec26c6ed5a2c77
|
| 3 |
+
size 4997739224
|
model-00021-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78329a9e7d9c8859518446eb31e981e480afdfbed1366269a8e0cb88c7d04564
|
| 3 |
+
size 4993011008
|
model-00023-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cdc0b84e5026628a1959509bfb2fcd7ba140949e8aab6454c54f8086c441507
|
| 3 |
+
size 4997739144
|
model-00025-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20483ca7e8c51af45aec715e108c4cffaa4ce46b3e0fa25997c21543adb9a482
|
| 3 |
+
size 4997738760
|
model-00026-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:16637170984f217fa1e7049710cb659b26035049af1b30c8dc781c8ac8be29f0
|
| 3 |
+
size 4997739112
|
model-00028-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0186ff433240e0b7efc44d5ba4c57e2cbc37acb9889834f9f5bf9035ca653da8
|
| 3 |
+
size 4997738760
|
model-00029-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98c9dcff7ef969e1873d670b44bacdd077902f6aa571af0a65e0dc3b31e854d3
|
| 3 |
+
size 4997739072
|
model-00032-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cc96c5834415bcf79000d860ac4f49f69824949c953f8f869144d4bde0528cd4
|
| 3 |
+
size 4997739032
|
model-00033-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:085456c10dbaa210cbae28bb81bb3865d64701b4db71c4c7c8b0ab52bcd8557b
|
| 3 |
+
size 4993011160
|
model-00034-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07011b261b19ea30f01fe8811c496ea7ad30b827c5b99f89d7cfdf41ff9e7003
|
| 3 |
+
size 4997738768
|
model-00036-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08b66a2065cbb57f9f90b18d68acb200d10df27b13d2c8777695dae65230e430
|
| 3 |
+
size 4993011200
|
model-00037-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f50481424ed34d6f07666159cffa345a7cda8c3e578578c5f8e7db208d9ced5
|
| 3 |
+
size 4997738768
|
model-00038-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02a91a789bb6b129c15c3f0fa35a14e14d68a3470ce6d9bed99cc3d1be5dbe0c
|
| 3 |
+
size 4997738960
|
model-00042-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d1b6c4504546d2533dc36c36026f051816f29c7a2d145a755b8d21a8d159806
|
| 3 |
+
size 4993011280
|
model-00045-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:401c752c03eecaf08e687902472173e454f482c0ce157d86f0886f63e4fb67a4
|
| 3 |
+
size 4983572728
|
model-00046-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a1c27097ae5952749930b249a1bdffd4b5c4cc27aafd00b4425fb356f68d5c0a
|
| 3 |
+
size 4997738776
|
model-00049-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:959f00bed59b83daa7b55eb18674e13b515b46cac81f9fb5f642ba7608dd51ff
|
| 3 |
+
size 4993010784
|
model-00052-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:077ab336e9bfc0204462f0e56d514ffed612fc8606802d95db74c4a02c584102
|
| 3 |
+
size 4993010856
|
model-00053-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2bf1822d01dd98208d07affcf1e4f4e1c516705afe85196e0b973b19d9a369e7
|
| 3 |
+
size 4997738768
|
model-00054-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f31120c1568007a0624dd92316574793d2261604b1e0ed687d10545b6a0533a0
|
| 3 |
+
size 4997739272
|
model-00055-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6831b68e33589f769016b91b59d21f09fbbbc2fbfdd48dfdd1c0b7a6bd417a7c
|
| 3 |
+
size 4993010920
|
model-00059-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c6a77002859e4e3f41e0124ef1ed91c89e47e577a5526b0ad07b1f814bb40e8c
|
| 3 |
+
size 4997738760
|
model-00061-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19479762194866893aff2df4d999587c24a80dc6191eab3f9d2e310a1fd99365
|
| 3 |
+
size 4993010992
|
model-00063-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:943921a2dbe92055bd957e86c4c44df9765545ea78112c3f2c9804d0737b4582
|
| 3 |
+
size 4997739168
|
model-00064-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd60dbbf5a6948d770df1bda91a1560cef03b9b27581bc27ae61e14e4f5b7f33
|
| 3 |
+
size 4993011032
|
model-00066-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88e09c3d43399cbde32193f494545b71d72b296336a0d7d6ba97548da2236799
|
| 3 |
+
size 4997739128
|
model-00069-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87641ec7d6ee5ff271c23388876270ea4c28b2574bc88b22ea0a617c414c34d8
|
| 3 |
+
size 4997739088
|
model-00072-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:691328fec81a94c2b5349197748c60cb0821840f232dbb048a7ed7f35f11177e
|
| 3 |
+
size 4997739048
|
model-00079-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:820c83fed28d86790fd8f3131dfbb75263962a79d6ef92c7fe5ee6643ca148d5
|
| 3 |
+
size 4993011216
|
model-00080-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d5b7dc48f07b71998497905cff7c7d17ea3896bdc3fb89f2a28bc033680843b
|
| 3 |
+
size 4997738768
|
model-00081-of-00081.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a8fd8937dd2c7a96e7a9a471aab8a13d84c5b7290a0b64cf89f8344f41bb130c
|
| 3 |
+
size 4071002704
|
model.safetensors.index.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
recipe.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
default_stage:
|
| 2 |
+
default_modifiers:
|
| 3 |
+
QuantizationModifier:
|
| 4 |
+
targets: [Linear]
|
| 5 |
+
ignore: ['re:.*mlp\.router\.gate.*', lm_head, 're:.*norm.*', 're:.*self_attn.*']
|
| 6 |
+
scheme: FP8_BLOCK
|
| 7 |
+
bypass_divisibility_checks: false
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token": {
|
| 3 |
+
"content": "<|begin_of_text|>",
|
| 4 |
+
"lstrip": false,
|
| 5 |
+
"normalized": false,
|
| 6 |
+
"rstrip": false,
|
| 7 |
+
"single_word": false
|
| 8 |
+
},
|
| 9 |
+
"eos_token": {
|
| 10 |
+
"content": "<|im_end|>",
|
| 11 |
+
"lstrip": false,
|
| 12 |
+
"normalized": false,
|
| 13 |
+
"rstrip": false,
|
| 14 |
+
"single_word": false
|
| 15 |
+
},
|
| 16 |
+
"pad_token": {
|
| 17 |
+
"content": "<|pad|>",
|
| 18 |
+
"lstrip": false,
|
| 19 |
+
"normalized": false,
|
| 20 |
+
"rstrip": false,
|
| 21 |
+
"single_word": false
|
| 22 |
+
}
|
| 23 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d864fe0d9c300d44c54006f5960548946d507d8ec05a082a3bff3e49de58208
|
| 3 |
+
size 14614721
|