Upload folder using huggingface_hub
Browse files- config.json +47 -20
- special_tokens_map.json +21 -3
- tokenizer_config.json +8 -4
config.json
CHANGED
|
@@ -2,35 +2,62 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"Grok1ForCausalLM"
|
| 4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
"embedding_multiplier_scale": 90.50966799187809,
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"hidden_size": 8192,
|
|
|
|
| 9 |
"intermediate_size": 32768,
|
| 10 |
-
"
|
| 11 |
"max_position_embeddings": 131072,
|
|
|
|
|
|
|
|
|
|
| 12 |
"num_experts_per_tok": 2,
|
|
|
|
|
|
|
|
|
|
| 13 |
"num_local_experts": 8,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"residual_moe": true,
|
| 15 |
-
"num_attention_heads": 64,
|
| 16 |
-
"num_key_value_heads": 8,
|
| 17 |
-
"num_hidden_layers": 64,
|
| 18 |
-
"head_dim": 128,
|
| 19 |
"rms_norm_eps": 1e-05,
|
| 20 |
-
"final_logit_softcapping": 50,
|
| 21 |
-
"attn_logit_softcapping": 30.0,
|
| 22 |
-
"router_logit_softcapping": 30.0,
|
| 23 |
"rope_theta": 208533496,
|
| 24 |
-
"attn_temperature_len": 1024,
|
| 25 |
-
"sliding_window_size": -1,
|
| 26 |
-
"global_attn_every_n": 1,
|
| 27 |
-
"model_type": "git",
|
| 28 |
-
"torch_dtype": "bfloat16",
|
| 29 |
"rope_type": "original",
|
| 30 |
-
"
|
| 31 |
"scaling_factor": 16.0,
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
}
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"Grok1ForCausalLM"
|
| 4 |
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"attn_factor": 1.0,
|
| 7 |
+
"attn_logit_softcapping": 30.0,
|
| 8 |
+
"attn_temperature_len": 1024,
|
| 9 |
+
"beta_fast": 8,
|
| 10 |
+
"beta_slow": 1,
|
| 11 |
+
"dtype": "bfloat16",
|
| 12 |
"embedding_multiplier_scale": 90.50966799187809,
|
| 13 |
+
"eos_token_id": 102,
|
| 14 |
+
"extrapolation_factor": 1.0,
|
| 15 |
+
"final_logit_softcapping": 50,
|
| 16 |
+
"global_attn_every_n": 1,
|
| 17 |
+
"head_dim": 128,
|
| 18 |
+
"hidden_act": "gelu",
|
| 19 |
+
"hidden_dropout_prob": 0.1,
|
| 20 |
"hidden_size": 8192,
|
| 21 |
+
"initializer_range": 0.02,
|
| 22 |
"intermediate_size": 32768,
|
| 23 |
+
"layer_norm_eps": 1e-12,
|
| 24 |
"max_position_embeddings": 131072,
|
| 25 |
+
"model_type": "git",
|
| 26 |
+
"moe_intermediate_size": 16384,
|
| 27 |
+
"num_attention_heads": 64,
|
| 28 |
"num_experts_per_tok": 2,
|
| 29 |
+
"num_hidden_layers": 64,
|
| 30 |
+
"num_image_with_embedding": null,
|
| 31 |
+
"num_key_value_heads": 8,
|
| 32 |
"num_local_experts": 8,
|
| 33 |
+
"original_max_position_embeddings": 8192,
|
| 34 |
+
"output_multiplier_scale": 0.5,
|
| 35 |
+
"pad_token_id": 0,
|
| 36 |
+
"position_embedding_type": "absolute",
|
| 37 |
"residual_moe": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
"rms_norm_eps": 1e-05,
|
|
|
|
|
|
|
|
|
|
| 39 |
"rope_theta": 208533496,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
"rope_type": "original",
|
| 41 |
+
"router_logit_softcapping": 30.0,
|
| 42 |
"scaling_factor": 16.0,
|
| 43 |
+
"sliding_window_size": -1,
|
| 44 |
+
"tie_word_embeddings": false,
|
| 45 |
+
"transformers_version": "4.56.1",
|
| 46 |
+
"unsloth_fixed": true,
|
| 47 |
+
"use_cache": true,
|
| 48 |
+
"vision_config": {
|
| 49 |
+
"attention_dropout": 0.0,
|
| 50 |
+
"hidden_act": "quick_gelu",
|
| 51 |
+
"hidden_size": 768,
|
| 52 |
+
"image_size": 224,
|
| 53 |
+
"initializer_range": 0.02,
|
| 54 |
+
"intermediate_size": 3072,
|
| 55 |
+
"layer_norm_eps": 1e-05,
|
| 56 |
+
"model_type": "git_vision_model",
|
| 57 |
+
"num_attention_heads": 12,
|
| 58 |
+
"num_channels": 3,
|
| 59 |
+
"num_hidden_layers": 12,
|
| 60 |
+
"patch_size": 16
|
| 61 |
+
},
|
| 62 |
+
"vocab_size": 131072
|
| 63 |
}
|
special_tokens_map.json
CHANGED
|
@@ -129,7 +129,25 @@
|
|
| 129 |
"<|control124|>",
|
| 130 |
"<|control125|>"
|
| 131 |
],
|
| 132 |
-
"eos_token":
|
| 133 |
-
|
| 134 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 135 |
}
|
|
|
|
| 129 |
"<|control124|>",
|
| 130 |
"<|control125|>"
|
| 131 |
],
|
| 132 |
+
"eos_token": {
|
| 133 |
+
"content": "<|separator|>",
|
| 134 |
+
"lstrip": false,
|
| 135 |
+
"normalized": false,
|
| 136 |
+
"rstrip": false,
|
| 137 |
+
"single_word": false
|
| 138 |
+
},
|
| 139 |
+
"pad_token": {
|
| 140 |
+
"content": "<|pad|>",
|
| 141 |
+
"lstrip": false,
|
| 142 |
+
"normalized": false,
|
| 143 |
+
"rstrip": false,
|
| 144 |
+
"single_word": false
|
| 145 |
+
},
|
| 146 |
+
"sep_token": {
|
| 147 |
+
"content": "<|separator|>",
|
| 148 |
+
"lstrip": false,
|
| 149 |
+
"normalized": false,
|
| 150 |
+
"rstrip": false,
|
| 151 |
+
"single_word": false
|
| 152 |
+
}
|
| 153 |
}
|
tokenizer_config.json
CHANGED
|
@@ -1155,11 +1155,15 @@
|
|
| 1155 |
"<|control124|>",
|
| 1156 |
"<|control125|>"
|
| 1157 |
],
|
|
|
|
| 1158 |
"clean_up_tokenization_spaces": false,
|
| 1159 |
-
"eos_token": "<|
|
| 1160 |
"extra_special_tokens": {},
|
| 1161 |
-
"model_max_length":
|
| 1162 |
"pad_token": "<|pad|>",
|
|
|
|
| 1163 |
"sep_token": "<|separator|>",
|
| 1164 |
-
"tokenizer_class": "PreTrainedTokenizerFast"
|
| 1165 |
-
|
|
|
|
|
|
|
|
|
| 1155 |
"<|control124|>",
|
| 1156 |
"<|control125|>"
|
| 1157 |
],
|
| 1158 |
+
"bos_token": null,
|
| 1159 |
"clean_up_tokenization_spaces": false,
|
| 1160 |
+
"eos_token": "<|separator|>",
|
| 1161 |
"extra_special_tokens": {},
|
| 1162 |
+
"model_max_length": 131072,
|
| 1163 |
"pad_token": "<|pad|>",
|
| 1164 |
+
"padding_side": "left",
|
| 1165 |
"sep_token": "<|separator|>",
|
| 1166 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 1167 |
+
"unk_token": null,
|
| 1168 |
+
"chat_template": "{% for message in messages %}{% if message['role'] == 'user' %}{{ 'Human: ' + message['content'].strip() + '<|separator|>\n\n' }}{% elif message['role'] == 'system' %}{{ 'System: ' + message['content'].strip() + '<|separator|>\n\n' }}{% elif message['role'] == 'assistant' %}{{ 'Assistant: ' + message['content'] + '<|separator|>\n\n' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ 'Assistant:' }}{% endif %}"
|
| 1169 |
+
}
|