Upload InternVL2_5ForConditionalGeneration
Browse files- config.json +61 -0
- generation_config.json +9 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "OpenGVLab/InternVL2_5-1B",
|
3 |
+
"architectures": [
|
4 |
+
"InternVL2_5ForConditionalGeneration"
|
5 |
+
],
|
6 |
+
"downsample_ratio": 0.5,
|
7 |
+
"dynamic_image_size": true,
|
8 |
+
"eos_token_id": 151645,
|
9 |
+
"force_image_size": 448,
|
10 |
+
"hidden_size": 896,
|
11 |
+
"image_end_token_id": 151666,
|
12 |
+
"image_start_token_id": 151665,
|
13 |
+
"image_token_id": 151667,
|
14 |
+
"max_dynamic_patch": 12,
|
15 |
+
"min_dynamic_patch": 1,
|
16 |
+
"model_type": "internvl2_5",
|
17 |
+
"num_image_token": 256,
|
18 |
+
"pixel_shuffle_version": "v2",
|
19 |
+
"select_layer": -1,
|
20 |
+
"text_config": {
|
21 |
+
"_attn_implementation_autoset": true,
|
22 |
+
"_name_or_path": "Qwen/Qwen2.5-0.5B-Instruct",
|
23 |
+
"architectures": [
|
24 |
+
"Qwen2ForCausalLM"
|
25 |
+
],
|
26 |
+
"bos_token_id": 151643,
|
27 |
+
"eos_token_id": 151645,
|
28 |
+
"hidden_size": 896,
|
29 |
+
"intermediate_size": 4864,
|
30 |
+
"max_window_layers": 21,
|
31 |
+
"model_type": "qwen2",
|
32 |
+
"num_attention_heads": 14,
|
33 |
+
"num_hidden_layers": 24,
|
34 |
+
"num_key_value_heads": 2,
|
35 |
+
"rope_theta": 1000000.0,
|
36 |
+
"torch_dtype": "bfloat16",
|
37 |
+
"use_bfloat16": true,
|
38 |
+
"vocab_size": 151674
|
39 |
+
},
|
40 |
+
"tie_word_embeddings": false,
|
41 |
+
"torch_dtype": "bfloat16",
|
42 |
+
"transformers_version": "4.49.0.dev0",
|
43 |
+
"use_thumbnail": true,
|
44 |
+
"vision_config": {
|
45 |
+
"_attn_implementation_autoset": true,
|
46 |
+
"architectures": [
|
47 |
+
"InternVL2_5VisionModel"
|
48 |
+
],
|
49 |
+
"hidden_size": 1024,
|
50 |
+
"image_size": 448,
|
51 |
+
"initializer_factor": 1.0,
|
52 |
+
"intermediate_size": 4096,
|
53 |
+
"model_type": "internvl2_5",
|
54 |
+
"norm_type": "layer_norm",
|
55 |
+
"num_attention_heads": 16,
|
56 |
+
"num_hidden_layers": 24,
|
57 |
+
"qk_normalization": false,
|
58 |
+
"qkv_bias": true,
|
59 |
+
"torch_dtype": "bfloat16"
|
60 |
+
}
|
61 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"eos_token_id": [
|
4 |
+
151644,
|
5 |
+
151645,
|
6 |
+
151643
|
7 |
+
],
|
8 |
+
"transformers_version": "4.49.0.dev0"
|
9 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8d5575f96a88f9048a2a054267f4a1523ec6d3dc36ed57e39e612306dec72dc3
|
3 |
+
size 1876463472
|