Commit
·
8490a85
1
Parent(s):
10ce9e4
Upload folder using huggingface_hub
Browse files- README.md +1 -1
- config.json +5 -11
- generation_config.json +1 -0
README.md
CHANGED
|
@@ -6,7 +6,7 @@ base_model: lmzheng/grok-1
|
|
| 6 |
|
| 7 |
# Grok-1-W4A8KV8
|
| 8 |
## Introduction
|
| 9 |
-
This model was created by applying [Quark](https://quark.docs.amd.com/latest/index.html) with calibration samples from Pile dataset.
|
| 10 |
## Quantization Stragegy
|
| 11 |
- ***Quantized Layers***: All linear layers excluding "lm_head", "*.gate"
|
| 12 |
- ***Weight***: FP8 symmetric per-tensor, additionally, INT4 symmetric per-channel for MoE linear
|
|
|
|
| 6 |
|
| 7 |
# Grok-1-W4A8KV8
|
| 8 |
## Introduction
|
| 9 |
+
This model was created by applying [Quark](https://quark.docs.amd.com/latest/index.html) with calibration samples from Pile dataset.
|
| 10 |
## Quantization Stragegy
|
| 11 |
- ***Quantized Layers***: All linear layers excluding "lm_head", "*.gate"
|
| 12 |
- ***Weight***: FP8 symmetric per-tensor, additionally, INT4 symmetric per-channel for MoE linear
|
config.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "/
|
| 3 |
"architectures": [
|
| 4 |
"Grok1ModelForCausalLM"
|
| 5 |
],
|
| 6 |
-
"
|
| 7 |
-
"attn_output_multiplier": 1.0,
|
| 8 |
"auto_map": {
|
| 9 |
"AutoConfig": "configuration_grok1.Grok1Config",
|
| 10 |
"AutoModel": "modeling_grok1.Grok1Model",
|
|
@@ -13,21 +12,19 @@
|
|
| 13 |
"bos_token_id": 1,
|
| 14 |
"embedding_multiplier_scale": 78.38367176906169,
|
| 15 |
"eos_token_id": 2,
|
| 16 |
-
"final_logit_softcapping": 50.0,
|
| 17 |
-
"head_dim": 128,
|
| 18 |
"hidden_size": 6144,
|
| 19 |
"intermediate_size": 32768,
|
| 20 |
-
"max_attn_value":
|
| 21 |
-
"max_position_embeddings":
|
| 22 |
"model_type": "grok-1",
|
| 23 |
"num_attention_heads": 48,
|
| 24 |
"num_experts": 8,
|
| 25 |
"num_experts_per_tok": 2,
|
| 26 |
"num_hidden_layers": 64,
|
| 27 |
"num_key_value_heads": 8,
|
| 28 |
-
"num_local_experts": 8,
|
| 29 |
"output_multiplier_scale": 0.5773502691896257,
|
| 30 |
"output_router_logits": false,
|
|
|
|
| 31 |
"quantization_config": {
|
| 32 |
"activation_scheme": "static",
|
| 33 |
"export": {
|
|
@@ -115,11 +112,8 @@
|
|
| 115 |
"group": "column"
|
| 116 |
}
|
| 117 |
},
|
| 118 |
-
"replicate_lm_head": false,
|
| 119 |
"rms_norm_eps": 1e-05,
|
| 120 |
-
"rope_theta": 10000.0,
|
| 121 |
"router_aux_loss_coef": 0.001,
|
| 122 |
-
"router_logit_softcapping": 30.0,
|
| 123 |
"torch_dtype": "bfloat16",
|
| 124 |
"transformers_version": "4.47.1",
|
| 125 |
"use_cache": true,
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "/group/amdneuralopt/huggingface/pretrained_models/grok-1-sglang-tp1",
|
| 3 |
"architectures": [
|
| 4 |
"Grok1ModelForCausalLM"
|
| 5 |
],
|
| 6 |
+
"attn_output_multiplier": 0.08838834764831845,
|
|
|
|
| 7 |
"auto_map": {
|
| 8 |
"AutoConfig": "configuration_grok1.Grok1Config",
|
| 9 |
"AutoModel": "modeling_grok1.Grok1Model",
|
|
|
|
| 12 |
"bos_token_id": 1,
|
| 13 |
"embedding_multiplier_scale": 78.38367176906169,
|
| 14 |
"eos_token_id": 2,
|
|
|
|
|
|
|
| 15 |
"hidden_size": 6144,
|
| 16 |
"intermediate_size": 32768,
|
| 17 |
+
"max_attn_value": 30.0,
|
| 18 |
+
"max_position_embeddings": 8192,
|
| 19 |
"model_type": "grok-1",
|
| 20 |
"num_attention_heads": 48,
|
| 21 |
"num_experts": 8,
|
| 22 |
"num_experts_per_tok": 2,
|
| 23 |
"num_hidden_layers": 64,
|
| 24 |
"num_key_value_heads": 8,
|
|
|
|
| 25 |
"output_multiplier_scale": 0.5773502691896257,
|
| 26 |
"output_router_logits": false,
|
| 27 |
+
"pad_token_id": 0,
|
| 28 |
"quantization_config": {
|
| 29 |
"activation_scheme": "static",
|
| 30 |
"export": {
|
|
|
|
| 112 |
"group": "column"
|
| 113 |
}
|
| 114 |
},
|
|
|
|
| 115 |
"rms_norm_eps": 1e-05,
|
|
|
|
| 116 |
"router_aux_loss_coef": 0.001,
|
|
|
|
| 117 |
"torch_dtype": "bfloat16",
|
| 118 |
"transformers_version": "4.47.1",
|
| 119 |
"use_cache": true,
|
generation_config.json
CHANGED
|
@@ -2,5 +2,6 @@
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
|
|
|
| 5 |
"transformers_version": "4.47.1"
|
| 6 |
}
|
|
|
|
| 2 |
"_from_model_config": true,
|
| 3 |
"bos_token_id": 1,
|
| 4 |
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
"transformers_version": "4.47.1"
|
| 7 |
}
|