Yuki-Kokomi commited on
Commit
3a3b4e7
1 Parent(s): 4724fc2

first commit

Browse files
config.json ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "jiajunlong/TinyLLaVA-OpenELM-450M-SigLIP-0.89B",
3
+ "architectures": [
4
+ "TinyLlavaForConditionalGeneration"
5
+ ],
6
+ "auto_map": {
7
+ "AutoConfig": "configuration.TinyLlavaConfig",
8
+ "AutoModelForCausalLM": "modeling_tinyllava_elm.TinyLlavaForConditionalGeneration"
9
+ },
10
+ "cache_dir": null,
11
+ "connector_type": "mlp2x_gelu",
12
+ "hidden_size": 1536,
13
+ "ignore_index": -100,
14
+ "image_aspect_ratio": "square",
15
+ "image_token_index": -200,
16
+ "llm_model_name_or_path": "apple/OpenELM-450M-Instruct",
17
+ "model_type": "tinyllava",
18
+ "num_queries": 128,
19
+ "num_resampler_layers": 3,
20
+ "pad_token": "<unk>",
21
+ "resampler_hidden_size": 768,
22
+ "text_config": {
23
+ "_name_or_path": "apple/OpenELM-450M-Instruct",
24
+ "activation_fn_name": "swish",
25
+ "architectures": [
26
+ "OpenELMForCausalLM"
27
+ ],
28
+ "auto_map": {
29
+ "AutoConfig": "apple/OpenELM-450M-Instruct--configuration_openelm.OpenELMConfig",
30
+ "AutoModelForCausalLM": "apple/OpenELM-450M-Instruct--modeling_openelm.OpenELMForCausalLM"
31
+ },
32
+ "ffn_dim_divisor": 256,
33
+ "ffn_multipliers": [
34
+ 0.5,
35
+ 0.68,
36
+ 0.87,
37
+ 1.05,
38
+ 1.24,
39
+ 1.42,
40
+ 1.61,
41
+ 1.79,
42
+ 1.97,
43
+ 2.16,
44
+ 2.34,
45
+ 2.53,
46
+ 2.71,
47
+ 2.89,
48
+ 3.08,
49
+ 3.26,
50
+ 3.45,
51
+ 3.63,
52
+ 3.82,
53
+ 4.0
54
+ ],
55
+ "ffn_with_glu": true,
56
+ "head_dim": 64,
57
+ "max_context_length": 2048,
58
+ "model_dim": 1536,
59
+ "model_type": "openelm",
60
+ "normalization_layer_name": "rms_norm",
61
+ "normalize_qk_projections": true,
62
+ "num_gqa_groups": 4,
63
+ "num_kv_heads": [
64
+ 3,
65
+ 3,
66
+ 3,
67
+ 4,
68
+ 4,
69
+ 4,
70
+ 4,
71
+ 4,
72
+ 4,
73
+ 4,
74
+ 5,
75
+ 5,
76
+ 5,
77
+ 5,
78
+ 5,
79
+ 5,
80
+ 6,
81
+ 6,
82
+ 6,
83
+ 6
84
+ ],
85
+ "num_query_heads": [
86
+ 12,
87
+ 12,
88
+ 12,
89
+ 16,
90
+ 16,
91
+ 16,
92
+ 16,
93
+ 16,
94
+ 16,
95
+ 16,
96
+ 20,
97
+ 20,
98
+ 20,
99
+ 20,
100
+ 20,
101
+ 20,
102
+ 24,
103
+ 24,
104
+ 24,
105
+ 24
106
+ ],
107
+ "num_transformer_layers": 20,
108
+ "qkv_multipliers": [
109
+ 0.5,
110
+ 1.0
111
+ ],
112
+ "rope_freq_constant": 10000,
113
+ "rope_max_length": 4096,
114
+ "share_input_output_layers": true,
115
+ "tie_word_embeddings": true,
116
+ "torch_dtype": "float16"
117
+ },
118
+ "tokenizer_model_max_length": 2048,
119
+ "tokenizer_name_or_path": "meta-llama/Llama-2-7b-hf",
120
+ "tokenizer_padding_side": "right",
121
+ "tokenizer_use_fast": false,
122
+ "torch_dtype": "float16",
123
+ "transformers_version": "4.39.3",
124
+ "tune_type_connector": "full",
125
+ "tune_type_llm": "lora",
126
+ "tune_type_vision_tower": "lora",
127
+ "tune_vision_tower_from_layer": 0,
128
+ "use_cache": true,
129
+ "vision_config": {
130
+ "hidden_act": "gelu_pytorch_tanh",
131
+ "hidden_size": 1152,
132
+ "image_size": 384,
133
+ "intermediate_size": 4304,
134
+ "layer_norm_eps": 1e-06,
135
+ "model_name_or_path": "google/siglip-so400m-patch14-384",
136
+ "model_name_or_path2": "",
137
+ "model_type": "siglip_vision_model",
138
+ "num_attention_heads": 16,
139
+ "num_hidden_layers": 27,
140
+ "patch_size": 14
141
+ },
142
+ "vision_feature_layer": -2,
143
+ "vision_feature_select_strategy": "patch",
144
+ "vision_hidden_size": 1152,
145
+ "vision_model_name_or_path": "google/siglip-so400m-patch14-384",
146
+ "vision_model_name_or_path2": "",
147
+ "vocab_size": 32000
148
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.39.3"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6252907a252e45bea2189349308cf3c510b2a04743a4204eb76bcf17e86bd71b
3
+ size 1779161568
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
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,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": true,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<unk>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<s>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "</s>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ }
30
+ },
31
+ "bos_token": "<s>",
32
+ "clean_up_tokenization_spaces": false,
33
+ "eos_token": "</s>",
34
+ "legacy": false,
35
+ "model_max_length": 2048,
36
+ "pad_token": "<unk>",
37
+ "padding_side": "right",
38
+ "sp_model_kwargs": {},
39
+ "spaces_between_special_tokens": false,
40
+ "tokenizer_class": "LlamaTokenizer",
41
+ "unk_token": "<unk>",
42
+ "use_default_system_prompt": false
43
+ }