Update with important fields from original config.json
Browse files- config.json +110 -0
config.json
CHANGED
|
@@ -13,24 +13,67 @@
|
|
| 13 |
"hidden_size": 3584,
|
| 14 |
"image_fold": null,
|
| 15 |
"llm_config": {
|
|
|
|
| 16 |
"_name_or_path": "./pretrained/Qwen2.5-32B-Instruct",
|
|
|
|
| 17 |
"architectures": [
|
| 18 |
"Qwen2ForCausalLM"
|
| 19 |
],
|
| 20 |
"attention_dropout": 0.0,
|
|
|
|
|
|
|
| 21 |
"bos_token_id": 151643,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
"eos_token_id": 151643,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
"hidden_act": "silu",
|
| 24 |
"hidden_size": 3584,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
"initializer_range": 0.02,
|
| 26 |
"intermediate_size": 18944,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
"max_position_embeddings": 32768,
|
| 28 |
"max_window_layers": 70,
|
|
|
|
| 29 |
"model_type": "qwen2",
|
| 30 |
"moe_config": null,
|
|
|
|
| 31 |
"num_attention_heads": 28,
|
|
|
|
|
|
|
| 32 |
"num_hidden_layers": 28,
|
| 33 |
"num_key_value_heads": 4,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
"rms_norm_eps": 1e-06,
|
| 35 |
"rope_scaling": {
|
| 36 |
"factor": 2.0,
|
|
@@ -38,8 +81,19 @@
|
|
| 38 |
"type": "dynamic"
|
| 39 |
},
|
| 40 |
"rope_theta": 1000000.0,
|
|
|
|
| 41 |
"sliding_window": null,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
"torch_dtype": "bfloat16",
|
|
|
|
| 43 |
"use_bfloat16": true,
|
| 44 |
"use_cache": false,
|
| 45 |
"use_sliding_window": false,
|
|
@@ -200,7 +254,9 @@
|
|
| 200 |
"use_llm_lora": 0,
|
| 201 |
"use_thumbnail": true,
|
| 202 |
"vision_config": {
|
|
|
|
| 203 |
"_name_or_path": "OpenGVLab/InternViT-6B-448px-V1-5",
|
|
|
|
| 204 |
"architectures": [
|
| 205 |
"InternVisionModel"
|
| 206 |
],
|
|
@@ -209,35 +265,89 @@
|
|
| 209 |
"AutoConfig": "configuration_intern_vit.InternVisionConfig",
|
| 210 |
"AutoModel": "modeling_intern_vit.InternVisionModel"
|
| 211 |
},
|
|
|
|
|
|
|
|
|
|
| 212 |
"capacity_factor": 1.2,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 213 |
"drop_path_rate": 0.1,
|
| 214 |
"dropout": 0.0,
|
|
|
|
|
|
|
|
|
|
| 215 |
"eval_capacity_factor": 1.4,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
"hidden_act": "gelu",
|
| 217 |
"hidden_size": 1024,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
"image_size": 448,
|
| 219 |
"initializer_factor": 0.1,
|
| 220 |
"initializer_range": 1e-10,
|
| 221 |
"intermediate_size": 4096,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 222 |
"laux_allreduce": "all_nodes",
|
| 223 |
"layer_norm_eps": 1e-06,
|
|
|
|
|
|
|
|
|
|
| 224 |
"model_type": "intern_vit_6b",
|
| 225 |
"moe_coeff_ratio": 0.5,
|
| 226 |
"moe_intermediate_size": 768,
|
| 227 |
"moe_output_scale": 4.0,
|
|
|
|
| 228 |
"noisy_gate_policy": "RSample_before",
|
| 229 |
"norm_type": "layer_norm",
|
| 230 |
"num_attention_heads": 16,
|
|
|
|
|
|
|
| 231 |
"num_channels": 3,
|
| 232 |
"num_experts": 8,
|
| 233 |
"num_hidden_layers": 24,
|
|
|
|
| 234 |
"num_routed_experts": 4,
|
| 235 |
"num_shared_experts": 4,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
"patch_size": 14,
|
|
|
|
|
|
|
|
|
|
| 237 |
"qk_normalization": false,
|
| 238 |
"qkv_bias": true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
"shared_expert_intermediate_size": 3072,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
"torch_dtype": "bfloat16",
|
|
|
|
| 241 |
"use_bfloat16": true,
|
| 242 |
"use_flash_attn": true,
|
| 243 |
"use_moe": false,
|
|
|
|
| 13 |
"hidden_size": 3584,
|
| 14 |
"image_fold": null,
|
| 15 |
"llm_config": {
|
| 16 |
+
"_attn_implementation_autoset": true,
|
| 17 |
"_name_or_path": "./pretrained/Qwen2.5-32B-Instruct",
|
| 18 |
+
"add_cross_attention": false,
|
| 19 |
"architectures": [
|
| 20 |
"Qwen2ForCausalLM"
|
| 21 |
],
|
| 22 |
"attention_dropout": 0.0,
|
| 23 |
+
"bad_words_ids": null,
|
| 24 |
+
"begin_suppress_tokens": null,
|
| 25 |
"bos_token_id": 151643,
|
| 26 |
+
"chunk_size_feed_forward": 0,
|
| 27 |
+
"cross_attention_hidden_size": null,
|
| 28 |
+
"decoder_start_token_id": null,
|
| 29 |
+
"diversity_penalty": 0,
|
| 30 |
+
"do_sample": false,
|
| 31 |
+
"early_stopping": false,
|
| 32 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 33 |
"eos_token_id": 151643,
|
| 34 |
+
"exponential_decay_length_penalty": null,
|
| 35 |
+
"finetuning_task": null,
|
| 36 |
+
"forced_bos_token_id": null,
|
| 37 |
+
"forced_eos_token_id": null,
|
| 38 |
"hidden_act": "silu",
|
| 39 |
"hidden_size": 3584,
|
| 40 |
+
"id2label": {
|
| 41 |
+
"0": "LABEL_0",
|
| 42 |
+
"1": "LABEL_1"
|
| 43 |
+
},
|
| 44 |
"initializer_range": 0.02,
|
| 45 |
"intermediate_size": 18944,
|
| 46 |
+
"is_decoder": false,
|
| 47 |
+
"is_encoder_decoder": false,
|
| 48 |
+
"label2id": {
|
| 49 |
+
"LABEL_0": 0,
|
| 50 |
+
"LABEL_1": 1
|
| 51 |
+
},
|
| 52 |
+
"length_penalty": 1,
|
| 53 |
+
"max_length": 20,
|
| 54 |
"max_position_embeddings": 32768,
|
| 55 |
"max_window_layers": 70,
|
| 56 |
+
"min_length": 0,
|
| 57 |
"model_type": "qwen2",
|
| 58 |
"moe_config": null,
|
| 59 |
+
"no_repeat_ngram_size": 0,
|
| 60 |
"num_attention_heads": 28,
|
| 61 |
+
"num_beam_groups": 1,
|
| 62 |
+
"num_beams": 1,
|
| 63 |
"num_hidden_layers": 28,
|
| 64 |
"num_key_value_heads": 4,
|
| 65 |
+
"num_return_sequences": 1,
|
| 66 |
+
"output_attentions": false,
|
| 67 |
+
"output_hidden_states": false,
|
| 68 |
+
"output_scores": false,
|
| 69 |
+
"pad_token_id": null,
|
| 70 |
+
"prefix": null,
|
| 71 |
+
"problem_type": null,
|
| 72 |
+
"pruned_heads": {},
|
| 73 |
+
"remove_invalid_values": false,
|
| 74 |
+
"repetition_penalty": 1,
|
| 75 |
+
"return_dict": true,
|
| 76 |
+
"return_dict_in_generate": false,
|
| 77 |
"rms_norm_eps": 1e-06,
|
| 78 |
"rope_scaling": {
|
| 79 |
"factor": 2.0,
|
|
|
|
| 81 |
"type": "dynamic"
|
| 82 |
},
|
| 83 |
"rope_theta": 1000000.0,
|
| 84 |
+
"sep_token_id": null,
|
| 85 |
"sliding_window": null,
|
| 86 |
+
"suppress_tokens": null,
|
| 87 |
+
"task_specific_params": null,
|
| 88 |
+
"temperature": 1,
|
| 89 |
+
"tf_legacy_loss": false,
|
| 90 |
+
"tie_encoder_decoder": false,
|
| 91 |
+
"tie_word_embeddings": false,
|
| 92 |
+
"tokenizer_class": null,
|
| 93 |
+
"top_k": 50,
|
| 94 |
+
"top_p": 1,
|
| 95 |
"torch_dtype": "bfloat16",
|
| 96 |
+
"typical_p": 1,
|
| 97 |
"use_bfloat16": true,
|
| 98 |
"use_cache": false,
|
| 99 |
"use_sliding_window": false,
|
|
|
|
| 254 |
"use_llm_lora": 0,
|
| 255 |
"use_thumbnail": true,
|
| 256 |
"vision_config": {
|
| 257 |
+
"_attn_implementation_autoset": true,
|
| 258 |
"_name_or_path": "OpenGVLab/InternViT-6B-448px-V1-5",
|
| 259 |
+
"add_cross_attention": false,
|
| 260 |
"architectures": [
|
| 261 |
"InternVisionModel"
|
| 262 |
],
|
|
|
|
| 265 |
"AutoConfig": "configuration_intern_vit.InternVisionConfig",
|
| 266 |
"AutoModel": "modeling_intern_vit.InternVisionModel"
|
| 267 |
},
|
| 268 |
+
"bad_words_ids": null,
|
| 269 |
+
"begin_suppress_tokens": null,
|
| 270 |
+
"bos_token_id": null,
|
| 271 |
"capacity_factor": 1.2,
|
| 272 |
+
"chunk_size_feed_forward": 0,
|
| 273 |
+
"cross_attention_hidden_size": null,
|
| 274 |
+
"decoder_start_token_id": null,
|
| 275 |
+
"diversity_penalty": 0,
|
| 276 |
+
"do_sample": false,
|
| 277 |
"drop_path_rate": 0.1,
|
| 278 |
"dropout": 0.0,
|
| 279 |
+
"early_stopping": false,
|
| 280 |
+
"encoder_no_repeat_ngram_size": 0,
|
| 281 |
+
"eos_token_id": null,
|
| 282 |
"eval_capacity_factor": 1.4,
|
| 283 |
+
"exponential_decay_length_penalty": null,
|
| 284 |
+
"finetuning_task": null,
|
| 285 |
+
"forced_bos_token_id": null,
|
| 286 |
+
"forced_eos_token_id": null,
|
| 287 |
"hidden_act": "gelu",
|
| 288 |
"hidden_size": 1024,
|
| 289 |
+
"id2label": {
|
| 290 |
+
"0": "LABEL_0",
|
| 291 |
+
"1": "LABEL_1"
|
| 292 |
+
},
|
| 293 |
"image_size": 448,
|
| 294 |
"initializer_factor": 0.1,
|
| 295 |
"initializer_range": 1e-10,
|
| 296 |
"intermediate_size": 4096,
|
| 297 |
+
"is_decoder": false,
|
| 298 |
+
"is_encoder_decoder": false,
|
| 299 |
+
"label2id": {
|
| 300 |
+
"LABEL_0": 0,
|
| 301 |
+
"LABEL_1": 1
|
| 302 |
+
},
|
| 303 |
"laux_allreduce": "all_nodes",
|
| 304 |
"layer_norm_eps": 1e-06,
|
| 305 |
+
"length_penalty": 1,
|
| 306 |
+
"max_length": 20,
|
| 307 |
+
"min_length": 0,
|
| 308 |
"model_type": "intern_vit_6b",
|
| 309 |
"moe_coeff_ratio": 0.5,
|
| 310 |
"moe_intermediate_size": 768,
|
| 311 |
"moe_output_scale": 4.0,
|
| 312 |
+
"no_repeat_ngram_size": 0,
|
| 313 |
"noisy_gate_policy": "RSample_before",
|
| 314 |
"norm_type": "layer_norm",
|
| 315 |
"num_attention_heads": 16,
|
| 316 |
+
"num_beam_groups": 1,
|
| 317 |
+
"num_beams": 1,
|
| 318 |
"num_channels": 3,
|
| 319 |
"num_experts": 8,
|
| 320 |
"num_hidden_layers": 24,
|
| 321 |
+
"num_return_sequences": 1,
|
| 322 |
"num_routed_experts": 4,
|
| 323 |
"num_shared_experts": 4,
|
| 324 |
+
"output_attentions": false,
|
| 325 |
+
"output_hidden_states": false,
|
| 326 |
+
"output_scores": false,
|
| 327 |
+
"pad_token_id": null,
|
| 328 |
"patch_size": 14,
|
| 329 |
+
"prefix": null,
|
| 330 |
+
"problem_type": null,
|
| 331 |
+
"pruned_heads": {},
|
| 332 |
"qk_normalization": false,
|
| 333 |
"qkv_bias": true,
|
| 334 |
+
"remove_invalid_values": false,
|
| 335 |
+
"repetition_penalty": 1,
|
| 336 |
+
"return_dict": true,
|
| 337 |
+
"return_dict_in_generate": false,
|
| 338 |
+
"sep_token_id": null,
|
| 339 |
"shared_expert_intermediate_size": 3072,
|
| 340 |
+
"suppress_tokens": null,
|
| 341 |
+
"task_specific_params": null,
|
| 342 |
+
"temperature": 1,
|
| 343 |
+
"tf_legacy_loss": false,
|
| 344 |
+
"tie_encoder_decoder": false,
|
| 345 |
+
"tie_word_embeddings": true,
|
| 346 |
+
"tokenizer_class": null,
|
| 347 |
+
"top_k": 50,
|
| 348 |
+
"top_p": 1,
|
| 349 |
"torch_dtype": "bfloat16",
|
| 350 |
+
"typical_p": 1,
|
| 351 |
"use_bfloat16": true,
|
| 352 |
"use_flash_attn": true,
|
| 353 |
"use_moe": false,
|