YenUK commited on
Commit
f105b20
1 Parent(s): 068d3f0

Upload LlavaForConditionalGeneration

Browse files
README.md CHANGED
@@ -1,6 +1,9 @@
1
  ---
2
  base_model: llava-hf/llava-1.5-7b-hf
3
  library_name: peft
 
 
 
4
  ---
5
 
6
  # Model Card for Model ID
 
1
  ---
2
  base_model: llava-hf/llava-1.5-7b-hf
3
  library_name: peft
4
+ tags:
5
+ - trl
6
+ - sft
7
  ---
8
 
9
  # Model Card for Model ID
config.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "llava-hf/llava-1.5-7b-hf",
3
+ "architectures": [
4
+ "LlavaForConditionalGeneration"
5
+ ],
6
+ "ignore_index": -100,
7
+ "image_seq_length": 576,
8
+ "image_token_index": 32000,
9
+ "model_type": "llava",
10
+ "pad_token_id": 32001,
11
+ "projector_hidden_act": "gelu",
12
+ "quantization_config": {
13
+ "_load_in_4bit": true,
14
+ "_load_in_8bit": false,
15
+ "bnb_4bit_compute_dtype": "float32",
16
+ "bnb_4bit_quant_storage": "uint8",
17
+ "bnb_4bit_quant_type": "fp4",
18
+ "bnb_4bit_use_double_quant": false,
19
+ "llm_int8_enable_fp32_cpu_offload": false,
20
+ "llm_int8_has_fp16_weight": false,
21
+ "llm_int8_skip_modules": null,
22
+ "llm_int8_threshold": 6.0,
23
+ "load_in_4bit": true,
24
+ "load_in_8bit": false,
25
+ "quant_method": "bitsandbytes"
26
+ },
27
+ "text_config": {
28
+ "_name_or_path": "lmsys/vicuna-7b-v1.5",
29
+ "add_cross_attention": false,
30
+ "architectures": [
31
+ "LlamaForCausalLM"
32
+ ],
33
+ "attention_bias": false,
34
+ "attention_dropout": 0.0,
35
+ "bad_words_ids": null,
36
+ "begin_suppress_tokens": null,
37
+ "bos_token_id": 1,
38
+ "chunk_size_feed_forward": 0,
39
+ "cross_attention_hidden_size": null,
40
+ "decoder_start_token_id": null,
41
+ "diversity_penalty": 0.0,
42
+ "do_sample": false,
43
+ "early_stopping": false,
44
+ "encoder_no_repeat_ngram_size": 0,
45
+ "eos_token_id": 2,
46
+ "exponential_decay_length_penalty": null,
47
+ "finetuning_task": null,
48
+ "forced_bos_token_id": null,
49
+ "forced_eos_token_id": null,
50
+ "head_dim": 128,
51
+ "hidden_act": "silu",
52
+ "hidden_size": 4096,
53
+ "id2label": {
54
+ "0": "LABEL_0",
55
+ "1": "LABEL_1"
56
+ },
57
+ "initializer_range": 0.02,
58
+ "intermediate_size": 11008,
59
+ "is_decoder": false,
60
+ "is_encoder_decoder": false,
61
+ "label2id": {
62
+ "LABEL_0": 0,
63
+ "LABEL_1": 1
64
+ },
65
+ "length_penalty": 1.0,
66
+ "max_length": 20,
67
+ "max_position_embeddings": 4096,
68
+ "min_length": 0,
69
+ "mlp_bias": false,
70
+ "model_type": "llama",
71
+ "no_repeat_ngram_size": 0,
72
+ "num_attention_heads": 32,
73
+ "num_beam_groups": 1,
74
+ "num_beams": 1,
75
+ "num_hidden_layers": 32,
76
+ "num_key_value_heads": 32,
77
+ "num_return_sequences": 1,
78
+ "output_attentions": false,
79
+ "output_hidden_states": false,
80
+ "output_scores": false,
81
+ "pad_token_id": null,
82
+ "prefix": null,
83
+ "pretraining_tp": 1,
84
+ "problem_type": null,
85
+ "pruned_heads": {},
86
+ "remove_invalid_values": false,
87
+ "repetition_penalty": 1.0,
88
+ "return_dict": true,
89
+ "return_dict_in_generate": false,
90
+ "rms_norm_eps": 1e-05,
91
+ "rope_scaling": null,
92
+ "rope_theta": 10000.0,
93
+ "sep_token_id": null,
94
+ "suppress_tokens": null,
95
+ "task_specific_params": null,
96
+ "temperature": 1.0,
97
+ "tf_legacy_loss": false,
98
+ "tie_encoder_decoder": false,
99
+ "tie_word_embeddings": false,
100
+ "tokenizer_class": null,
101
+ "top_k": 50,
102
+ "top_p": 1.0,
103
+ "torch_dtype": "float16",
104
+ "torchscript": false,
105
+ "typical_p": 1.0,
106
+ "use_bfloat16": false,
107
+ "use_cache": true,
108
+ "vocab_size": 32064
109
+ },
110
+ "tie_word_embeddings": false,
111
+ "torch_dtype": "float32",
112
+ "transformers_version": "4.45.2",
113
+ "vision_config": {
114
+ "_name_or_path": "",
115
+ "add_cross_attention": false,
116
+ "architectures": null,
117
+ "attention_dropout": 0.0,
118
+ "bad_words_ids": null,
119
+ "begin_suppress_tokens": null,
120
+ "bos_token_id": null,
121
+ "chunk_size_feed_forward": 0,
122
+ "cross_attention_hidden_size": null,
123
+ "decoder_start_token_id": null,
124
+ "diversity_penalty": 0.0,
125
+ "do_sample": false,
126
+ "early_stopping": false,
127
+ "encoder_no_repeat_ngram_size": 0,
128
+ "eos_token_id": null,
129
+ "exponential_decay_length_penalty": null,
130
+ "finetuning_task": null,
131
+ "forced_bos_token_id": null,
132
+ "forced_eos_token_id": null,
133
+ "hidden_act": "quick_gelu",
134
+ "hidden_size": 1024,
135
+ "id2label": {
136
+ "0": "LABEL_0",
137
+ "1": "LABEL_1"
138
+ },
139
+ "image_size": 336,
140
+ "initializer_factor": 1.0,
141
+ "initializer_range": 0.02,
142
+ "intermediate_size": 4096,
143
+ "is_decoder": false,
144
+ "is_encoder_decoder": false,
145
+ "label2id": {
146
+ "LABEL_0": 0,
147
+ "LABEL_1": 1
148
+ },
149
+ "layer_norm_eps": 1e-05,
150
+ "length_penalty": 1.0,
151
+ "max_length": 20,
152
+ "min_length": 0,
153
+ "model_type": "clip_vision_model",
154
+ "no_repeat_ngram_size": 0,
155
+ "num_attention_heads": 16,
156
+ "num_beam_groups": 1,
157
+ "num_beams": 1,
158
+ "num_channels": 3,
159
+ "num_hidden_layers": 24,
160
+ "num_return_sequences": 1,
161
+ "output_attentions": false,
162
+ "output_hidden_states": false,
163
+ "output_scores": false,
164
+ "pad_token_id": null,
165
+ "patch_size": 14,
166
+ "prefix": null,
167
+ "problem_type": null,
168
+ "projection_dim": 768,
169
+ "pruned_heads": {},
170
+ "remove_invalid_values": false,
171
+ "repetition_penalty": 1.0,
172
+ "return_dict": true,
173
+ "return_dict_in_generate": false,
174
+ "sep_token_id": null,
175
+ "suppress_tokens": null,
176
+ "task_specific_params": null,
177
+ "temperature": 1.0,
178
+ "tf_legacy_loss": false,
179
+ "tie_encoder_decoder": false,
180
+ "tie_word_embeddings": true,
181
+ "tokenizer_class": null,
182
+ "top_k": 50,
183
+ "top_p": 1.0,
184
+ "torch_dtype": null,
185
+ "torchscript": false,
186
+ "typical_p": 1.0,
187
+ "use_bfloat16": false,
188
+ "vocab_size": 32000
189
+ },
190
+ "vision_feature_layer": -2,
191
+ "vision_feature_select_strategy": "default",
192
+ "vocab_size": 32064
193
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 32001,
6
+ "transformers_version": "4.45.2"
7
+ }
model-00001-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:035bf7fac71489d84bba32f62090d456a57d0ef06844892d3bd65275fbfcae11
3
+ size 4999634089
model-00002-of-00002.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e81c265a518f805d87d9c6981d535fdb01263a31fcb536ab6e0dae25ce737af9
3
+ size 648550945
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff