zszhong commited on
Commit
3a5eb2d
1 Parent(s): b29406a

Upload Lyra_Mini_3B model frist version

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,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|box_end|>": 151649,
3
+ "<|box_start|>": 151648,
4
+ "<|endoftext|>": 151643,
5
+ "<|im_end|>": 151645,
6
+ "<|im_start|>": 151644,
7
+ "<|image_pad|>": 151655,
8
+ "<|object_ref_end|>": 151647,
9
+ "<|object_ref_start|>": 151646,
10
+ "<|quad_end|>": 151651,
11
+ "<|quad_start|>": 151650,
12
+ "<|video_pad|>": 151656,
13
+ "<|vision_end|>": 151653,
14
+ "<|vision_pad|>": 151654,
15
+ "<|vision_start|>": 151652
16
+ }
config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "Lyra_Mini_3B",
3
+ "align_norm": false,
4
+ "align_temperature": 0.06,
5
+ "align_type": "dtw",
6
+ "architectures": [
7
+ "Lyra2SQwen2VLForCausalLM"
8
+ ],
9
+ "asr_align": false,
10
+ "attention_dropout": 0.0,
11
+ "bos_token_id": 151643,
12
+ "check_data_modality": false,
13
+ "compress": false,
14
+ "compress_gap": 33,
15
+ "ctc_decoder_config": "(2,4096,32,11008)",
16
+ "ctc_loss_weight": 1.0,
17
+ "ctc_upsample_factor": 25,
18
+ "down_factor_1": 1,
19
+ "down_factor_2": 1,
20
+ "eos_token_id": 151645,
21
+ "freeze_mm_mlp_adapter": true,
22
+ "freeze_mm_speech_mlp_adapter": true,
23
+ "hidden_act": "silu",
24
+ "hidden_size": 1536,
25
+ "image_aspect_ratio": "qwen2vl",
26
+ "image_global": false,
27
+ "image_grid": 1,
28
+ "image_grid_pinpoints": null,
29
+ "image_token_id": 151655,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 8960,
32
+ "keep_global": false,
33
+ "keep_rate": 1.0,
34
+ "max_position_embeddings": 32768,
35
+ "max_window_layers": 28,
36
+ "mm_hidden_size": 1536,
37
+ "mm_projector_lr": null,
38
+ "mm_projector_type": "identity",
39
+ "mm_speech_hidden_size": 1280,
40
+ "mm_speech_projector_type": "simple_mlp",
41
+ "mm_speech_tower": "model_zoo/audio/whisper-large-v3-turbo",
42
+ "mm_use_im_patch_token": false,
43
+ "mm_use_im_start_end": false,
44
+ "mm_use_mrope": false,
45
+ "mm_vision_select_feature": "patch",
46
+ "mm_vision_select_layer": -1,
47
+ "mm_vision_tower": "model_zoo/vision/Qwen2VL_2B_ViT",
48
+ "model_type": "Lyra_Qwen2VL_SpeechGenerator",
49
+ "num_attention_heads": 12,
50
+ "num_hidden_layers": 28,
51
+ "num_key_value_heads": 2,
52
+ "overlap_ratio": 0.0,
53
+ "rms_norm_eps": 1e-06,
54
+ "rope_scaling": {
55
+ "mrope_section": [
56
+ 16,
57
+ 24,
58
+ 24
59
+ ],
60
+ "rope_type": "default",
61
+ "type": "default"
62
+ },
63
+ "rope_theta": 1000000.0,
64
+ "sliding_window": 32768,
65
+ "speech_encoder_ds_rate": 5,
66
+ "speech_encoder_hidden_size": 1280,
67
+ "speech_generator_type": "ctc",
68
+ "speech_learn": false,
69
+ "speech_norm": false,
70
+ "tie_word_embeddings": true,
71
+ "tokenizer_model_max_length": 16384,
72
+ "tokenizer_padding_side": "right",
73
+ "torch_dtype": "bfloat16",
74
+ "train_modality": "text_speech",
75
+ "transformers_version": "4.45.0",
76
+ "tune_mm_mlp_adapter": false,
77
+ "tune_mm_speech_mlp_adapter": false,
78
+ "tune_speech_generator_only": true,
79
+ "unit_vocab_size": 1000,
80
+ "use_cache": true,
81
+ "use_mm_proj": true,
82
+ "use_sliding_window": false,
83
+ "video_token_id": 151656,
84
+ "vision_config": {
85
+ "hidden_size": 1536,
86
+ "in_chans": 3,
87
+ "model_type": "qwen2_vl",
88
+ "spatial_patch_size": 14
89
+ },
90
+ "vision_end_token_id": 151653,
91
+ "vision_start_token_id": 151652,
92
+ "vision_token_id": 151654,
93
+ "vocab_size": 151936,
94
+ "weight_lambda": 0.0
95
+ }
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attn_implementation": null,
3
+ "bos_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "pad_token_id": 151643,
10
+ "temperature": 0.01,
11
+ "top_k": 1,
12
+ "top_p": 0.001,
13
+ "transformers_version": "4.45.0"
14
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b3bb10981e8a2f49630f5630c22dc23cbfdaf567c30a60182c651f44a8b2e550
3
+ size 4996802256
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15d8ca047f2dcb7d4965e44259b3d854c1766c5703a03bb284440f1716e71fdb
3
+ size 727775872
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
speech_generator.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2261cc9dc4a50db98b114400b7ebf8008d41bab8fa36e2bb4da9ceb3bba318e
3
+ size 830379306
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:091aa7594dc2fcfbfa06b9e3c22a5f0562ac14f30375c13af7309407a0e67b8a
3
+ size 11420371
tokenizer_config.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ }
116
+ },
117
+ "additional_special_tokens": [
118
+ "<|im_start|>",
119
+ "<|im_end|>",
120
+ "<|object_ref_start|>",
121
+ "<|object_ref_end|>",
122
+ "<|box_start|>",
123
+ "<|box_end|>",
124
+ "<|quad_start|>",
125
+ "<|quad_end|>",
126
+ "<|vision_start|>",
127
+ "<|vision_end|>",
128
+ "<|vision_pad|>",
129
+ "<|image_pad|>",
130
+ "<|video_pad|>"
131
+ ],
132
+ "bos_token": null,
133
+ "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
134
+ "clean_up_tokenization_spaces": false,
135
+ "eos_token": "<|im_end|>",
136
+ "errors": "replace",
137
+ "model_max_length": 6000,
138
+ "pad_token": "<|endoftext|>",
139
+ "padding_side": "right",
140
+ "split_special_tokens": false,
141
+ "tokenizer_class": "Qwen2Tokenizer",
142
+ "unk_token": null
143
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b9e3afc2791f1842947d7a785889b5c7d927103ac241ef6d2b02e095c1ff8c17
3
+ size 7416
vocab.json ADDED
The diff for this file is too large to render. See raw diff