hf-transformers-bot commited on
Commit
6d0ea3e
·
verified ·
1 Parent(s): ba0bec6

Update tiny models for VipLlavaForConditionalGeneration

Browse files
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VipLlavaForConditionalGeneration"
4
+ ],
5
+ "dtype": "float32",
6
+ "ignore_index": -100,
7
+ "image_seq_length": 16,
8
+ "image_token_index": 0,
9
+ "model_type": "vipllava",
10
+ "projector_hidden_act": "gelu",
11
+ "projector_layernorm_eps": 1e-05,
12
+ "text_config": {
13
+ "attention_bias": false,
14
+ "attention_dropout": 0.0,
15
+ "attention_probs_dropout_prob": 0.1,
16
+ "bos_token_id": 1,
17
+ "eos_token_id": 2,
18
+ "head_dim": 8,
19
+ "hidden_act": "gelu",
20
+ "hidden_dropout_prob": 0.1,
21
+ "hidden_size": 32,
22
+ "id2label": {
23
+ "0": "LABEL_0",
24
+ "1": "LABEL_1",
25
+ "2": "LABEL_2"
26
+ },
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 37,
29
+ "is_training": true,
30
+ "label2id": {
31
+ "LABEL_0": 0,
32
+ "LABEL_1": 1,
33
+ "LABEL_2": 2
34
+ },
35
+ "max_position_embeddings": 512,
36
+ "mlp_bias": false,
37
+ "model_type": "llama",
38
+ "num_attention_heads": 4,
39
+ "num_choices": 4,
40
+ "num_hidden_layers": 2,
41
+ "num_key_value_heads": 4,
42
+ "pad_token_id": 32001,
43
+ "pretraining_tp": 1,
44
+ "rms_norm_eps": 1e-06,
45
+ "rope_parameters": {
46
+ "rope_theta": 10000.0,
47
+ "rope_type": "default"
48
+ },
49
+ "seq_length": 7,
50
+ "tie_word_embeddings": false,
51
+ "type_sequence_label_size": 2,
52
+ "type_vocab_size": 16,
53
+ "use_cache": true,
54
+ "use_input_mask": true,
55
+ "use_labels": true,
56
+ "use_token_type_ids": false,
57
+ "vocab_size": 32002
58
+ },
59
+ "tie_word_embeddings": false,
60
+ "transformers_version": "5.16.0.dev0",
61
+ "vision_config": {
62
+ "attention_dropout": 0.1,
63
+ "batch_size": 12,
64
+ "dropout": 0.1,
65
+ "hidden_act": "quick_gelu",
66
+ "hidden_size": 32,
67
+ "image_size": 8,
68
+ "initializer_factor": 1.0,
69
+ "initializer_range": 0.02,
70
+ "intermediate_size": 37,
71
+ "is_training": true,
72
+ "layer_norm_eps": 1e-05,
73
+ "model_type": "clip_vision_model",
74
+ "num_attention_heads": 4,
75
+ "num_channels": 3,
76
+ "num_hidden_layers": 2,
77
+ "patch_size": 2,
78
+ "projection_dim": 32
79
+ },
80
+ "vision_feature_layers": [
81
+ 0,
82
+ 0,
83
+ 1,
84
+ 1,
85
+ 0
86
+ ]
87
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 32001,
8
+ "transformers_version": "5.16.0.dev0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0385252da3e0df99cc70a00a177c4c0a7f6fd24e582b31c37ad37044bfdbf85f
3
+ size 8346656
preprocessor_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "longest_edge": 8,
4
+ "shortest_edge": 8
5
+ },
6
+ "do_center_crop": true,
7
+ "do_convert_rgb": true,
8
+ "do_normalize": true,
9
+ "do_rescale": true,
10
+ "do_resize": true,
11
+ "image_mean": [
12
+ 0.48145466,
13
+ 0.4578275,
14
+ 0.40821073
15
+ ],
16
+ "image_processor_type": "CLIPImageProcessor",
17
+ "image_std": [
18
+ 0.26862954,
19
+ 0.26130258,
20
+ 0.27577711
21
+ ],
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "longest_edge": 8,
26
+ "shortest_edge": 8
27
+ }
28
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": null,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "</s>",
7
+ "image_token": "<image>",
8
+ "is_local": true,
9
+ "legacy": false,
10
+ "local_files_only": false,
11
+ "model_max_length": 4096,
12
+ "model_specific_special_tokens": {
13
+ "image_token": "<image>"
14
+ },
15
+ "pad_token": "<pad>",
16
+ "padding_side": "left",
17
+ "processor_class": "LlavaProcessor",
18
+ "sp_model_kwargs": {},
19
+ "spaces_between_special_tokens": false,
20
+ "tokenizer_class": "TokenizersBackend",
21
+ "unk_token": "<unk>",
22
+ "use_default_system_prompt": false
23
+ }