Shanshan Wang
commited on
Commit
•
647b441
1
Parent(s):
2ae6192
updated config.json
Browse files- config.json +120 -77
config.json
CHANGED
@@ -1,84 +1,127 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
"architectures": [
|
3 |
-
|
4 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
"auto_map": {
|
6 |
-
"AutoConfig": "
|
7 |
-
"AutoModel": "
|
8 |
-
"AutoModelForCausalLM": "modeling_h2ovl_chat.H2OVLChatModel"
|
9 |
},
|
10 |
-
|
11 |
-
"
|
12 |
-
"
|
13 |
-
"
|
14 |
-
"
|
15 |
-
"
|
16 |
-
"
|
17 |
-
"
|
18 |
-
"
|
19 |
-
"
|
20 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
"torch_dtype": "bfloat16",
|
22 |
-
"
|
23 |
-
"
|
24 |
-
"
|
25 |
-
"
|
26 |
-
|
27 |
-
"llm_config": {
|
28 |
-
"_name_or_path": "h2oai/h2o-danube2-1.8b-chat",
|
29 |
-
"model_type": "mistral",
|
30 |
-
"architectures": [
|
31 |
-
"MistralForCausalLM"
|
32 |
-
],
|
33 |
-
"attention_dropout": 0.0,
|
34 |
-
"torch_dtype": "bfloat16",
|
35 |
-
"use_bfloat16": true,
|
36 |
-
"hidden_size": 2560,
|
37 |
-
"intermediate_size": 6912,
|
38 |
-
"num_hidden_layers": 24,
|
39 |
-
"num_attention_heads": 32,
|
40 |
-
"num_key_value_heads": 8,
|
41 |
-
"rms_norm_eps": 1e-05,
|
42 |
-
"hidden_act": "silu",
|
43 |
-
"bos_token_id": 1,
|
44 |
-
"eos_token_id": 2,
|
45 |
-
"pad_token_id": 0,
|
46 |
-
"vocab_size": 32010,
|
47 |
-
"add_cross_attention": false,
|
48 |
-
"return_dict": true,
|
49 |
-
"output_attentions": false,
|
50 |
-
"output_hidden_states": false,
|
51 |
-
"output_scores": false,
|
52 |
-
"prefix": null,
|
53 |
-
"rope_theta": 10000,
|
54 |
-
"sep_token_id": null,
|
55 |
-
"sliding_window": null,
|
56 |
-
"tie_word_embeddings": false,
|
57 |
-
"tie_encoder_decoder": false,
|
58 |
-
"torchscript": false,
|
59 |
-
"use_cache": true,
|
60 |
-
"transformers_version": "4.44.0"
|
61 |
-
},
|
62 |
-
|
63 |
-
"vision_config": {
|
64 |
-
"architectures": [
|
65 |
-
"InternVisionModel"
|
66 |
-
],
|
67 |
-
"hidden_size": 1024,
|
68 |
-
"image_size": 448,
|
69 |
-
"intermediate_size": 4096,
|
70 |
-
"model_type": "intern_vit_6b",
|
71 |
-
"norm_type": "layer_norm",
|
72 |
-
"num_attention_heads": 16,
|
73 |
-
"num_channels": 3,
|
74 |
-
"num_hidden_layers": 24,
|
75 |
-
"patch_size": 14,
|
76 |
-
"qk_normalization": false,
|
77 |
-
"qkv_bias": true,
|
78 |
-
"return_dict": true,
|
79 |
-
"torch_dtype": "bfloat16",
|
80 |
-
"use_bfloat16": true,
|
81 |
-
"use_flash_attn": true
|
82 |
-
}
|
83 |
}
|
84 |
-
|
|
|
1 |
{
|
2 |
+
"architectures": [
|
3 |
+
"H2OVLChatModel"
|
4 |
+
],
|
5 |
+
"auto_map": {
|
6 |
+
"AutoConfig": "configuration_h2ovl_chat.H2OVLChatConfig",
|
7 |
+
"AutoModel": "modeling_h2ovl_chat.H2OVLChatModel",
|
8 |
+
"AutoModelForCausalLM": "modeling_h2ovl_chat.H2OVLChatModel"
|
9 |
+
},
|
10 |
+
"downsample_ratio": 0.5,
|
11 |
+
"dynamic_image_size": true,
|
12 |
+
"force_image_size": 448,
|
13 |
+
"max_dynamic_patch": 6,
|
14 |
+
"min_dynamic_patch": 1,
|
15 |
+
"model_type": "h2ovl_chat",
|
16 |
+
"pad2square": false,
|
17 |
+
"ps_version": "v2",
|
18 |
+
"select_layer": -1,
|
19 |
+
"template": "h2ogpt2",
|
20 |
+
"torch_dtype": "bfloat16",
|
21 |
+
"use_backbone_lora": 0,
|
22 |
+
"use_llm_lora": 0,
|
23 |
+
"use_thumbnail": true,
|
24 |
+
"use_msac": true,
|
25 |
+
"llm_config": {
|
26 |
+
"_name_or_path": "h2oai/h2o-danube2-1.8b-chat",
|
27 |
+
"model_type": "mistral",
|
28 |
"architectures": [
|
29 |
+
"MistralForCausalLM"
|
30 |
],
|
31 |
+
"attention_dropout": 0.0,
|
32 |
+
"torch_dtype": "bfloat16",
|
33 |
+
"use_bfloat16": true,
|
34 |
+
"hidden_size": 2560,
|
35 |
+
"intermediate_size": 6912,
|
36 |
+
"max_position_embeddings": 8192,
|
37 |
+
"num_hidden_layers": 24,
|
38 |
+
"num_attention_heads": 32,
|
39 |
+
"num_key_value_heads": 8,
|
40 |
+
"rms_norm_eps": 1e-05,
|
41 |
+
"hidden_act": "silu",
|
42 |
+
"bos_token_id": 1,
|
43 |
+
"eos_token_id": 2,
|
44 |
+
"pad_token_id": 0,
|
45 |
+
"vocab_size": 32010,
|
46 |
+
"add_cross_attention": false,
|
47 |
+
"return_dict": true,
|
48 |
+
"output_attentions": false,
|
49 |
+
"output_hidden_states": false,
|
50 |
+
"output_scores": false,
|
51 |
+
"prefix": null,
|
52 |
+
"rope_theta": 10000,
|
53 |
+
"sep_token_id": null,
|
54 |
+
"sliding_window": null,
|
55 |
+
"tie_word_embeddings": false,
|
56 |
+
"tie_encoder_decoder": false,
|
57 |
+
"torchscript": false,
|
58 |
+
"use_cache": true,
|
59 |
+
"transformers_version": "4.44.0"
|
60 |
+
},
|
61 |
+
"vision_config": {
|
62 |
+
"_name_or_path": "OpenGVLab/InternViT-300M-448px",
|
63 |
+
"add_cross_attention": false,
|
64 |
+
"architectures": [
|
65 |
+
"InternVisionModel"
|
66 |
+
],
|
67 |
+
"attention_dropout": 0.0,
|
68 |
"auto_map": {
|
69 |
+
"AutoConfig": "OpenGVLab/InternViT-300M-448px--configuration_intern_vit.InternVisionConfig",
|
70 |
+
"AutoModel": "OpenGVLab/InternViT-300M-448px--modeling_intern_vit.InternVisionModel"
|
|
|
71 |
},
|
72 |
+
"bos_token_id": null,
|
73 |
+
"chunk_size_feed_forward": 0,
|
74 |
+
"cross_attention_hidden_size": null,
|
75 |
+
"decoder_start_token_id": null,
|
76 |
+
"drop_path_rate": 0.0,
|
77 |
+
"dropout": 0.0,
|
78 |
+
"eos_token_id": null,
|
79 |
+
"exponential_decay_length_penalty": null,
|
80 |
+
"finetuning_task": null,
|
81 |
+
"hidden_act": "gelu",
|
82 |
+
"hidden_size": 1024,
|
83 |
+
"image_size": 448,
|
84 |
+
"initializer_factor": 1.0,
|
85 |
+
"initializer_range": 0.02,
|
86 |
+
"intermediate_size": 4096,
|
87 |
+
"is_decoder": false,
|
88 |
+
"is_encoder_decoder": false,
|
89 |
+
"layer_norm_eps": 1e-06,
|
90 |
+
"length_penalty": 1.0,
|
91 |
+
"max_length": 20,
|
92 |
+
"min_length": 0,
|
93 |
+
"model_type": "intern_vit_6b",
|
94 |
+
"no_repeat_ngram_size": 0,
|
95 |
+
"norm_type": "layer_norm",
|
96 |
+
"num_attention_heads": 16,
|
97 |
+
"num_beam_groups": 1,
|
98 |
+
"num_beams": 1,
|
99 |
+
"num_channels": 3,
|
100 |
+
"num_hidden_layers": 24,
|
101 |
+
"num_return_sequences": 1,
|
102 |
+
"output_attentions": false,
|
103 |
+
"output_hidden_states": false,
|
104 |
+
"output_scores": false,
|
105 |
+
"pad_token_id": null,
|
106 |
+
"patch_size": 14,
|
107 |
+
"prefix": null,
|
108 |
+
"problem_type": null,
|
109 |
+
"pruned_heads": {},
|
110 |
+
"qk_normalization": false,
|
111 |
+
"qkv_bias": true,
|
112 |
+
"remove_invalid_values": false,
|
113 |
+
"repetition_penalty": 1.0,
|
114 |
+
"return_dict": true,
|
115 |
+
"return_dict_in_generate": false,
|
116 |
+
"sep_token_id": null,
|
117 |
+
"task_specific_params": null,
|
118 |
+
"tie_encoder_decoder": false,
|
119 |
+
"tie_word_embeddings": true,
|
120 |
+
"tokenizer_class": null,
|
121 |
"torch_dtype": "bfloat16",
|
122 |
+
"torchscript": false,
|
123 |
+
"transformers_version": "4.42.0.dev0",
|
124 |
+
"use_bfloat16": false,
|
125 |
+
"use_flash_attn": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
}
|
127 |
+
}
|