AntonV HF Staff commited on
Commit
b6b5f9a
·
verified ·
1 Parent(s): faa9923

Rebuild tiny HyperCLOVAX Vision V2 from native upstream config

Browse files
config.json CHANGED
@@ -1,69 +1,101 @@
1
  {
 
2
  "architectures": [
3
  "HyperCLOVAXVisionV2ForConditionalGeneration"
4
  ],
 
5
  "dtype": "float32",
6
- "image_token_id": 3,
 
 
 
 
 
 
7
  "model_type": "hyperclovax_vision_v2",
 
8
  "pad_token_id": 0,
 
 
 
9
  "text_config": {
 
 
 
10
  "attention_bias": false,
11
  "attention_dropout": 0.0,
12
  "attention_multiplier": 0.25,
13
- "bos_token_id": 0,
14
  "embedding_multiplier": 1.0,
15
  "eos_token_id": 128001,
16
  "head_dim": 16,
17
- "hidden_act": "gelu",
18
  "hidden_size": 32,
19
- "initializer_range": 0.02,
20
- "intermediate_size": 32,
21
  "logits_scaling": 1.0,
22
- "max_position_embeddings": 512,
23
  "mlp_bias": false,
24
  "model_type": "hyperclovax",
25
  "num_attention_heads": 2,
26
  "num_hidden_layers": 2,
27
- "num_key_value_heads": 2,
28
  "pad_token_id": 0,
 
 
29
  "residual_multiplier": 1.0,
30
- "rms_norm_eps": 1e-06,
31
  "rope_parameters": {
32
- "rope_theta": 10000.0,
33
  "rope_type": "default"
34
  },
35
  "tie_word_embeddings": false,
36
  "use_cache": true,
37
- "use_post_norm": true,
38
  "vocab_size": 128256
39
  },
40
- "tie_word_embeddings": false,
41
  "transformers_version": "5.18.0.dev0",
42
- "video_token_id": 4,
 
 
 
 
 
 
 
 
43
  "vision_config": {
 
 
 
 
44
  "depth": 2,
45
  "fullatt_block_indexes": [
46
- 7,
47
- 15,
48
- 23,
49
- 31
50
  ],
51
- "hidden_act": "gelu",
52
  "hidden_size": 32,
53
  "in_channels": 3,
 
54
  "initializer_range": 0.02,
55
- "intermediate_size": 32,
 
56
  "model_type": "qwen2_5_vl_vision",
57
- "num_heads": 4,
58
  "out_hidden_size": 32,
59
  "patch_size": 14,
60
  "rope_parameters": {
61
  "rope_theta": 10000.0,
62
  "rope_type": "axial"
63
  },
64
- "spatial_merge_size": 1,
 
65
  "temporal_patch_size": 2,
66
- "tokens_per_second": 1,
67
  "window_size": 112
68
- }
 
 
 
69
  }
 
1
  {
2
+ "anyres": false,
3
  "architectures": [
4
  "HyperCLOVAXVisionV2ForConditionalGeneration"
5
  ],
6
+ "audio_projector_type": "mlp",
7
  "dtype": "float32",
8
+ "eos_token_id": 128001,
9
+ "hidden_size": 32,
10
+ "ignore_index": -100,
11
+ "image_end_token_id": 128057,
12
+ "image_start_token_id": 128056,
13
+ "image_token_id": 128060,
14
+ "max_num_grids": -1,
15
  "model_type": "hyperclovax_vision_v2",
16
+ "num_queries_vis_abstractor": -1,
17
  "pad_token_id": 0,
18
+ "possible_resolutions": [],
19
+ "proj_pos_emb": true,
20
+ "proj_prenorm": false,
21
  "text_config": {
22
+ "architectures": [
23
+ "HyperCLOVAXForCausalLM"
24
+ ],
25
  "attention_bias": false,
26
  "attention_dropout": 0.0,
27
  "attention_multiplier": 0.25,
28
+ "bos_token_id": 128000,
29
  "embedding_multiplier": 1.0,
30
  "eos_token_id": 128001,
31
  "head_dim": 16,
32
+ "hidden_act": "silu",
33
  "hidden_size": 32,
34
+ "initializer_range": 0.006,
35
+ "intermediate_size": 64,
36
  "logits_scaling": 1.0,
37
+ "max_position_embeddings": 131072,
38
  "mlp_bias": false,
39
  "model_type": "hyperclovax",
40
  "num_attention_heads": 2,
41
  "num_hidden_layers": 2,
42
+ "num_key_value_heads": 1,
43
  "pad_token_id": 0,
44
+ "pretraining_tp": 1,
45
+ "resid_pdrop": 0.2,
46
  "residual_multiplier": 1.0,
47
+ "rms_norm_eps": 1e-05,
48
  "rope_parameters": {
49
+ "rope_theta": 50000000,
50
  "rope_type": "default"
51
  },
52
  "tie_word_embeddings": false,
53
  "use_cache": true,
54
+ "use_post_norm": false,
55
  "vocab_size": 128256
56
  },
57
+ "tie_word_embeddings": true,
58
  "transformers_version": "5.18.0.dev0",
59
+ "unpad": false,
60
+ "use_1x1_grid": false,
61
+ "video_end_token_id": 128059,
62
+ "video_first_last_frames_slows": null,
63
+ "video_max_num_frames": null,
64
+ "video_num_queries_fast": null,
65
+ "video_num_queries_slow": null,
66
+ "video_start_token_id": 128058,
67
+ "video_token_id": 128061,
68
  "vision_config": {
69
+ "anyres": false,
70
+ "architectures": [
71
+ "Qwen2_5_VisionTransformerPretrainedModel"
72
+ ],
73
  "depth": 2,
74
  "fullatt_block_indexes": [
75
+ 1
 
 
 
76
  ],
77
+ "hidden_act": "silu",
78
  "hidden_size": 32,
79
  "in_channels": 3,
80
+ "in_chans": 3,
81
  "initializer_range": 0.02,
82
+ "intermediate_size": 64,
83
+ "max_num_grids": -1,
84
  "model_type": "qwen2_5_vl_vision",
85
+ "num_heads": 2,
86
  "out_hidden_size": 32,
87
  "patch_size": 14,
88
  "rope_parameters": {
89
  "rope_theta": 10000.0,
90
  "rope_type": "axial"
91
  },
92
+ "spatial_merge_size": 2,
93
+ "spatial_patch_size": 14,
94
  "temporal_patch_size": 2,
95
+ "tokens_per_second": 2,
96
  "window_size": 112
97
+ },
98
+ "vision_feature_layer": -2,
99
+ "vision_input_chunk_size": null,
100
+ "vision_projector_type": "linear"
101
  }
generation_config.json CHANGED
@@ -1,10 +1,12 @@
1
  {
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
 
4
  "eos_token_id": 128001,
5
- "output_attentions": false,
6
- "output_hidden_states": false,
7
- "pad_token_id": 0,
8
- "transformers_version": "5.18.0.dev0",
9
- "use_cache": true
 
10
  }
 
1
  {
2
  "_from_model_config": true,
3
  "bos_token_id": 0,
4
+ "do_sample": true,
5
  "eos_token_id": 128001,
6
+ "num_beams": 1,
7
+ "repetition_penalty": 1.05,
8
+ "temperature": 0.5,
9
+ "top_k": 0,
10
+ "top_p": 0.6,
11
+ "transformers_version": "5.18.0.dev0"
12
  }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c1adfaf1e9e589f2bce5b1ccc27e7dd6352de4ef07b898735ad1e0545ff1a335
3
- size 33121552
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b46f5d6a27f50d8c78edd618b4d707f7bf8b224a26e46cf4ae3a24b21147e814
3
+ size 16819288
processor_config.json ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "discrete_image_end_token": "<|discrete_image_end|>",
4
+ "discrete_image_ratios": [
5
+ [
6
+ 1,
7
+ 1
8
+ ],
9
+ [
10
+ 1,
11
+ 2
12
+ ],
13
+ [
14
+ 2,
15
+ 1
16
+ ],
17
+ [
18
+ 3,
19
+ 4
20
+ ],
21
+ [
22
+ 4,
23
+ 3
24
+ ],
25
+ [
26
+ 9,
27
+ 16
28
+ ],
29
+ [
30
+ 16,
31
+ 9
32
+ ],
33
+ [
34
+ 1,
35
+ 3
36
+ ],
37
+ [
38
+ 3,
39
+ 1
40
+ ]
41
+ ],
42
+ "discrete_image_start_token": "<|discrete_image_start|>",
43
+ "discrete_image_token": "<|DISCRETE_IMAGE_PAD|>",
44
+ "discrete_token_size": 27,
45
+ "do_center_crop": false,
46
+ "do_convert_rgb": true,
47
+ "do_normalize": true,
48
+ "do_rescale": true,
49
+ "do_resize": true,
50
+ "image_end_token": "<|image_end|>",
51
+ "image_mean": [
52
+ 0.48145466,
53
+ 0.4578275,
54
+ 0.40821073
55
+ ],
56
+ "image_processor_type": "Qwen2VLImageProcessor",
57
+ "image_start_token": "<|image_start|>",
58
+ "image_std": [
59
+ 0.26862954,
60
+ 0.26130258,
61
+ 0.27577711
62
+ ],
63
+ "image_token": "<|IMAGE_PAD|>",
64
+ "merge_size": 2,
65
+ "patch_size": 14,
66
+ "resample": 3,
67
+ "rescale_factor": 0.00392156862745098,
68
+ "resize_mode": "smart_resize",
69
+ "size": {
70
+ "longest_edge": 2073600,
71
+ "shortest_edge": 3136
72
+ },
73
+ "temporal_patch_size": 2,
74
+ "use_discrete_token": false,
75
+ "vision_eof_token": "<|vision_eof|>",
76
+ "vision_eol_token": "<|vision_eol|>"
77
+ },
78
+ "processor_class": "HyperCLOVAXVisionV2Processor",
79
+ "video_processor": {
80
+ "do_convert_rgb": true,
81
+ "do_normalize": true,
82
+ "do_rescale": true,
83
+ "do_resize": true,
84
+ "do_sample_frames": false,
85
+ "image_mean": [
86
+ 0.48145466,
87
+ 0.4578275,
88
+ 0.40821073
89
+ ],
90
+ "image_std": [
91
+ 0.26862954,
92
+ 0.26130258,
93
+ 0.27577711
94
+ ],
95
+ "max_frames": 120,
96
+ "max_video_tokens": 128000,
97
+ "merge_size": 2,
98
+ "min_frames": 4,
99
+ "patch_size": 14,
100
+ "resample": 3,
101
+ "rescale_factor": 0.00392156862745098,
102
+ "return_metadata": false,
103
+ "size": {
104
+ "longest_edge": 285768,
105
+ "shortest_edge": 3136
106
+ },
107
+ "temporal_patch_size": 2,
108
+ "use_audio_in_video": false,
109
+ "use_discrete_token": false,
110
+ "video_audio_token": "<|VIDEO_AUDIO_PAD|>",
111
+ "video_end_token": "<|video_end|>",
112
+ "video_processor_type": "Qwen2VLVideoProcessor",
113
+ "video_start_token": "<|video_start|>",
114
+ "video_token": "<|VIDEO_PAD|>",
115
+ "vision_eof_token": "<|vision_eof|>",
116
+ "vision_eol_token": "<|vision_eol|>"
117
+ }
118
+ }
tokenizer_config.json CHANGED
@@ -7,7 +7,7 @@
7
  "errors": "replace",
8
  "fix_mistral_regex": true,
9
  "image_token": "<|IMAGE_PAD|>",
10
- "is_local": true,
11
  "local_files_only": false,
12
  "model_max_length": 1000000000000000019884624838656,
13
  "model_specific_special_tokens": {
@@ -15,7 +15,7 @@
15
  "video_token": "<|VIDEO_PAD|>"
16
  },
17
  "pad_token": "<|endoftext|>",
18
- "processor_class": "Exaone4_5_Processor",
19
  "sep_token": "<|endoftext|>",
20
  "tokenizer_class": "GPT2Tokenizer",
21
  "unk_token": "<|endoftext|>",
 
7
  "errors": "replace",
8
  "fix_mistral_regex": true,
9
  "image_token": "<|IMAGE_PAD|>",
10
+ "is_local": false,
11
  "local_files_only": false,
12
  "model_max_length": 1000000000000000019884624838656,
13
  "model_specific_special_tokens": {
 
15
  "video_token": "<|VIDEO_PAD|>"
16
  },
17
  "pad_token": "<|endoftext|>",
18
+ "processor_class": "HyperCLOVAXVisionV2Processor",
19
  "sep_token": "<|endoftext|>",
20
  "tokenizer_class": "GPT2Tokenizer",
21
  "unk_token": "<|endoftext|>",