caiyiqing.297
commited on
Commit
•
692cc62
1
Parent(s):
d6f6e4f
upload model
Browse files- added_tokens.json +14 -0
- config.json +50 -0
- generation_config.json +8 -0
- pytorch_model-00001-of-00002.bin +3 -0
- pytorch_model-00002-of-00002.bin +3 -0
- pytorch_model.bin.index.json +0 -0
- special_tokens_map.json +20 -0
- tokenizer.model +3 -0
- tokenizer_config.json +129 -0
- training_args.bin +3 -0
added_tokens.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"</s>": 2,
|
3 |
+
"<im_end>": 32002,
|
4 |
+
"<im_patch>": 32000,
|
5 |
+
"<im_start>": 32001,
|
6 |
+
"<s>": 1,
|
7 |
+
"<so_end>": 32008,
|
8 |
+
"<so_patch>": 32006,
|
9 |
+
"<so_start>": 32007,
|
10 |
+
"<unk>": 0,
|
11 |
+
"<vi_end>": 32005,
|
12 |
+
"<vi_patch>": 32003,
|
13 |
+
"<vi_start>": 32004
|
14 |
+
}
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "GroundingGPT-7B",
|
3 |
+
"architectures": [
|
4 |
+
"LEGOLlamaForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_bias": false,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"freeze_mm_mlp_adapter": false,
|
10 |
+
"hidden_act": "silu",
|
11 |
+
"hidden_size": 4096,
|
12 |
+
"image_aspect_ratio": "pad",
|
13 |
+
"image_grid_pinpoints": null,
|
14 |
+
"image_token_len": 576,
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 11008,
|
17 |
+
"max_frame": 64,
|
18 |
+
"max_position_embeddings": 4096,
|
19 |
+
"mm_use_im_patch_token": true,
|
20 |
+
"mm_use_im_start_end": true,
|
21 |
+
"mm_vision_hidden_size": 1024,
|
22 |
+
"mm_vision_select_feature": "patch",
|
23 |
+
"mm_vision_select_layer": -2,
|
24 |
+
"mm_vision_tower": "openai/clip-vit-large-patch14-336",
|
25 |
+
"model_type": "LEGO",
|
26 |
+
"num_attention_heads": 32,
|
27 |
+
"num_hidden_layers": 32,
|
28 |
+
"num_key_value_heads": 32,
|
29 |
+
"num_query_token": 32,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"pretraining_tp": 1,
|
32 |
+
"rms_norm_eps": 1e-05,
|
33 |
+
"rope_scaling": null,
|
34 |
+
"rope_theta": 10000.0,
|
35 |
+
"sound_end_token": 32008,
|
36 |
+
"sound_patch_token": 32006,
|
37 |
+
"sound_start_token": 32007,
|
38 |
+
"sound_token_len": 8,
|
39 |
+
"tie_word_embeddings": false,
|
40 |
+
"torch_dtype": "bfloat16",
|
41 |
+
"transformers_version": "4.34.0",
|
42 |
+
"tune_mm_mlp_adapter": false,
|
43 |
+
"use_cache": true,
|
44 |
+
"use_mm_vision_proj": true,
|
45 |
+
"video_end_token": 32005,
|
46 |
+
"video_patch_token": 32003,
|
47 |
+
"video_start_token": 32004,
|
48 |
+
"video_token_len": 64,
|
49 |
+
"vocab_size": 32009
|
50 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 1,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.34.0",
|
7 |
+
"use_cache": false
|
8 |
+
}
|
pytorch_model-00001-of-00002.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ca405ca6eebc01b32ba66e29fe000bccb38752e8ba7cbda00fc671bce203664a
|
3 |
+
size 9976854515
|
pytorch_model-00002-of-00002.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:30d3c50f2245363622105d30c56a4841cb33505ab0111b6da100292e1a0ce435
|
3 |
+
size 8216712443
|
pytorch_model.bin.index.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
special_tokens_map.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"additional_special_tokens": [
|
3 |
+
"<unk>",
|
4 |
+
"<s>",
|
5 |
+
"</s>",
|
6 |
+
"<im_patch>",
|
7 |
+
"<im_start>",
|
8 |
+
"<im_end>",
|
9 |
+
"<vi_patch>",
|
10 |
+
"<vi_start>",
|
11 |
+
"<vi_end>",
|
12 |
+
"<so_patch>",
|
13 |
+
"<so_start>",
|
14 |
+
"<so_end>"
|
15 |
+
],
|
16 |
+
"bos_token": "<s>",
|
17 |
+
"eos_token": "</s>",
|
18 |
+
"pad_token": "<unk>",
|
19 |
+
"unk_token": "<unk>"
|
20 |
+
}
|
tokenizer.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
|
3 |
+
size 499723
|
tokenizer_config.json
ADDED
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"add_bos_token": true,
|
3 |
+
"add_eos_token": false,
|
4 |
+
"added_tokens_decoder": {
|
5 |
+
"0": {
|
6 |
+
"content": "<unk>",
|
7 |
+
"lstrip": false,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false,
|
11 |
+
"special": true
|
12 |
+
},
|
13 |
+
"1": {
|
14 |
+
"content": "<s>",
|
15 |
+
"lstrip": false,
|
16 |
+
"normalized": false,
|
17 |
+
"rstrip": false,
|
18 |
+
"single_word": false,
|
19 |
+
"special": true
|
20 |
+
},
|
21 |
+
"2": {
|
22 |
+
"content": "</s>",
|
23 |
+
"lstrip": false,
|
24 |
+
"normalized": false,
|
25 |
+
"rstrip": false,
|
26 |
+
"single_word": false,
|
27 |
+
"special": true
|
28 |
+
},
|
29 |
+
"32000": {
|
30 |
+
"content": "<im_patch>",
|
31 |
+
"lstrip": true,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": true,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"32001": {
|
38 |
+
"content": "<im_start>",
|
39 |
+
"lstrip": true,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": true,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"32002": {
|
46 |
+
"content": "<im_end>",
|
47 |
+
"lstrip": true,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": true,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"32003": {
|
54 |
+
"content": "<vi_patch>",
|
55 |
+
"lstrip": true,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": true,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"32004": {
|
62 |
+
"content": "<vi_start>",
|
63 |
+
"lstrip": true,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": true,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
"32005": {
|
70 |
+
"content": "<vi_end>",
|
71 |
+
"lstrip": true,
|
72 |
+
"normalized": false,
|
73 |
+
"rstrip": true,
|
74 |
+
"single_word": false,
|
75 |
+
"special": true
|
76 |
+
},
|
77 |
+
"32006": {
|
78 |
+
"content": "<so_patch>",
|
79 |
+
"lstrip": true,
|
80 |
+
"normalized": false,
|
81 |
+
"rstrip": true,
|
82 |
+
"single_word": false,
|
83 |
+
"special": true
|
84 |
+
},
|
85 |
+
"32007": {
|
86 |
+
"content": "<so_start>",
|
87 |
+
"lstrip": true,
|
88 |
+
"normalized": false,
|
89 |
+
"rstrip": true,
|
90 |
+
"single_word": false,
|
91 |
+
"special": true
|
92 |
+
},
|
93 |
+
"32008": {
|
94 |
+
"content": "<so_end>",
|
95 |
+
"lstrip": true,
|
96 |
+
"normalized": false,
|
97 |
+
"rstrip": true,
|
98 |
+
"single_word": false,
|
99 |
+
"special": true
|
100 |
+
}
|
101 |
+
},
|
102 |
+
"additional_special_tokens": [
|
103 |
+
"<unk>",
|
104 |
+
"<s>",
|
105 |
+
"</s>",
|
106 |
+
"<im_patch>",
|
107 |
+
"<im_start>",
|
108 |
+
"<im_end>",
|
109 |
+
"<vi_patch>",
|
110 |
+
"<vi_start>",
|
111 |
+
"<vi_end>",
|
112 |
+
"<so_patch>",
|
113 |
+
"<so_start>",
|
114 |
+
"<so_end>"
|
115 |
+
],
|
116 |
+
"bos_token": "<s>",
|
117 |
+
"clean_up_tokenization_spaces": false,
|
118 |
+
"eos_token": "</s>",
|
119 |
+
"legacy": false,
|
120 |
+
"model_max_length": 2048,
|
121 |
+
"pad_token": "<unk>",
|
122 |
+
"padding_side": "right",
|
123 |
+
"sp_model_kwargs": {},
|
124 |
+
"spaces_between_special_tokens": false,
|
125 |
+
"tokenizer_class": "LlamaTokenizer",
|
126 |
+
"tokenizer_file": null,
|
127 |
+
"unk_token": "<unk>",
|
128 |
+
"use_default_system_prompt": true
|
129 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5fedfe69a7014dd05bc595ff805c9b3c9ca5ad087acfc56849d9b0eee156909
|
3 |
+
size 5627
|