liux-cyber commited on
Commit
7488352
1 Parent(s): d1427c6

Upload 9 files

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "<image>": 151646,
3
+ "<|endoftext|>": 151643,
4
+ "<|im_end|>": 151645,
5
+ "<|im_start|>": 151644
6
+ }
config.json ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/data/liux/llava-ov-qwen-0.5b/stage2-zero2-fullpara-2024-11-06",
3
+ "add_faster_video": false,
4
+ "add_time_instruction": false,
5
+ "architectures": [
6
+ "LlavaQwenGMoeForCausalLM"
7
+ ],
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 151643,
10
+ "eos_token_id": 151645,
11
+ "faster_token_stride": 10,
12
+ "force_sample": false,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 896,
15
+ "ignore_index": -100,
16
+ "image_aspect_ratio": "square",
17
+ "image_crop_resolution": null,
18
+ "image_grid_pinpoints": null,
19
+ "image_seq_length": 576,
20
+ "image_split_resolution": null,
21
+ "image_token_index": 151646,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 4864,
24
+ "max_position_embeddings": 32768,
25
+ "max_window_layers": 24,
26
+ "mm_hidden_size": 1152,
27
+ "mm_newline_position": "grid",
28
+ "mm_patch_merge_type": "spatial_unpad",
29
+ "mm_projector_lr": null,
30
+ "mm_projector_type": "mlp2x_gelu",
31
+ "mm_resampler_type": null,
32
+ "mm_spatial_pool_mode": "bilinear",
33
+ "mm_spatial_pool_stride": null,
34
+ "mm_tunable_parts": "mm_vision_tower,mm_mlp_adapter,mm_vision_resampler,mm_language_model",
35
+ "mm_use_im_patch_token": false,
36
+ "mm_use_im_start_end": false,
37
+ "mm_vision_select_feature": "patch",
38
+ "mm_vision_select_layer": -2,
39
+ "mm_vision_tower": "/data/liux/siglip-so400m-patch14-384",
40
+ "mm_vision_tower_lr": null,
41
+ "model_type": "llava_qwen_gmoe",
42
+ "num_attention_heads": 14,
43
+ "num_hidden_layers": 24,
44
+ "num_key_value_heads": 2,
45
+ "pos_skipping_range": 4096,
46
+ "projector_hidden_act": "gelu",
47
+ "rms_norm_eps": 1e-06,
48
+ "rope_scaling": null,
49
+ "rope_theta": 1000000.0,
50
+ "sliding_window": null,
51
+ "tie_word_embeddings": false,
52
+ "tokenizer_model_max_length": 8192,
53
+ "tokenizer_padding_side": "right",
54
+ "torch_dtype": "float16",
55
+ "transformers_version": "4.46.0",
56
+ "use_cache": true,
57
+ "use_mm_proj": true,
58
+ "use_pos_skipping": false,
59
+ "use_sliding_window": false,
60
+ "vision_config": {
61
+ "_attn_implementation_autoset": false,
62
+ "_name_or_path": "",
63
+ "add_cross_attention": false,
64
+ "architectures": null,
65
+ "attention_dropout": 0.0,
66
+ "bad_words_ids": null,
67
+ "begin_suppress_tokens": null,
68
+ "bos_token_id": null,
69
+ "chunk_size_feed_forward": 0,
70
+ "cross_attention_hidden_size": null,
71
+ "decoder_start_token_id": null,
72
+ "diversity_penalty": 0.0,
73
+ "do_sample": false,
74
+ "early_stopping": false,
75
+ "encoder_no_repeat_ngram_size": 0,
76
+ "eos_token_id": null,
77
+ "exponential_decay_length_penalty": null,
78
+ "finetuning_task": null,
79
+ "forced_bos_token_id": null,
80
+ "forced_eos_token_id": null,
81
+ "hidden_act": "quick_gelu",
82
+ "hidden_size": 1024,
83
+ "id2label": {
84
+ "0": "LABEL_0",
85
+ "1": "LABEL_1"
86
+ },
87
+ "image_size": 336,
88
+ "initializer_factor": 1.0,
89
+ "initializer_range": 0.02,
90
+ "intermediate_size": 4096,
91
+ "is_decoder": false,
92
+ "is_encoder_decoder": false,
93
+ "label2id": {
94
+ "LABEL_0": 0,
95
+ "LABEL_1": 1
96
+ },
97
+ "layer_norm_eps": 1e-05,
98
+ "length_penalty": 1.0,
99
+ "max_length": 20,
100
+ "min_length": 0,
101
+ "model_type": "clip_vision_model",
102
+ "no_repeat_ngram_size": 0,
103
+ "num_attention_heads": 16,
104
+ "num_beam_groups": 1,
105
+ "num_beams": 1,
106
+ "num_channels": 3,
107
+ "num_hidden_layers": 24,
108
+ "num_return_sequences": 1,
109
+ "output_attentions": false,
110
+ "output_hidden_states": false,
111
+ "output_scores": false,
112
+ "pad_token_id": null,
113
+ "patch_size": 14,
114
+ "prefix": null,
115
+ "problem_type": null,
116
+ "projection_dim": 768,
117
+ "pruned_heads": {},
118
+ "remove_invalid_values": false,
119
+ "repetition_penalty": 1.0,
120
+ "return_dict": true,
121
+ "return_dict_in_generate": false,
122
+ "sep_token_id": null,
123
+ "suppress_tokens": null,
124
+ "task_specific_params": null,
125
+ "temperature": 1.0,
126
+ "tf_legacy_loss": false,
127
+ "tie_encoder_decoder": false,
128
+ "tie_word_embeddings": true,
129
+ "tokenizer_class": null,
130
+ "top_k": 50,
131
+ "top_p": 1.0,
132
+ "torch_dtype": null,
133
+ "torchscript": false,
134
+ "typical_p": 1.0,
135
+ "use_bfloat16": false,
136
+ "vocab_size": 32000
137
+ },
138
+ "vision_feature_layer": -2,
139
+ "vision_feature_select_strategy": "default",
140
+ "vision_tower_pretrained": null,
141
+ "vocab_size": 151936
142
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.1,
10
+ "temperature": 0.7,
11
+ "top_k": 20,
12
+ "top_p": 0.8,
13
+ "transformers_version": "4.46.0"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfa95b4d4f23e4f56cda3c4bf93dad20460b0a84f1e93055eb1fcc783bdc3913
3
+ size 3314766456
special_tokens_map.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>"
5
+ ],
6
+ "eos_token": {
7
+ "content": "<|im_end|>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "pad_token": {
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ }
20
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32e8f623d8dce60b5a93496ec810434ef744287ac041cf2c6032743a3578baa5
3
+ size 11418450
tokenizer_config.json ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<image>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ }
36
+ },
37
+ "additional_special_tokens": [
38
+ "<|im_start|>",
39
+ "<|im_end|>"
40
+ ],
41
+ "bos_token": null,
42
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
43
+ "clean_up_tokenization_spaces": false,
44
+ "eos_token": "<|im_end|>",
45
+ "errors": "replace",
46
+ "model_max_length": 8192,
47
+ "pad_token": "<|endoftext|>",
48
+ "padding_side": "right",
49
+ "processor_class": "LlavaProcessor",
50
+ "split_special_tokens": false,
51
+ "tokenizer_class": "Qwen2Tokenizer",
52
+ "unk_token": null
53
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff