cnmoro commited on
Commit
a478d01
·
verified ·
1 Parent(s): e3ea995

Upload 8 files

Browse files
config.json ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "VisionEncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "_attn_implementation_autoset": true,
7
+ "_name_or_path": "cnmoro/tiny-image-captioning",
8
+ "add_cross_attention": true,
9
+ "architectures": null,
10
+ "attention_probs_dropout_prob": 0.1,
11
+ "bad_words_ids": null,
12
+ "begin_suppress_tokens": null,
13
+ "bos_token_id": null,
14
+ "chunk_size_feed_forward": 0,
15
+ "classifier_dropout": null,
16
+ "cross_attention_hidden_size": null,
17
+ "decoder_start_token_id": null,
18
+ "diversity_penalty": 0.0,
19
+ "do_sample": false,
20
+ "early_stopping": false,
21
+ "encoder_no_repeat_ngram_size": 0,
22
+ "eos_token_id": null,
23
+ "exponential_decay_length_penalty": null,
24
+ "finetuning_task": null,
25
+ "forced_bos_token_id": null,
26
+ "forced_eos_token_id": null,
27
+ "hidden_act": "gelu",
28
+ "hidden_dropout_prob": 0.1,
29
+ "hidden_size": 128,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 512,
32
+ "is_decoder": true,
33
+ "is_encoder_decoder": false,
34
+ "layer_norm_eps": 1e-12,
35
+ "length_penalty": 1.0,
36
+ "max_length": 20,
37
+ "max_position_embeddings": 512,
38
+ "min_length": 0,
39
+ "model_type": "bert",
40
+ "no_repeat_ngram_size": 0,
41
+ "num_attention_heads": 2,
42
+ "num_beam_groups": 1,
43
+ "num_beams": 1,
44
+ "num_hidden_layers": 2,
45
+ "num_return_sequences": 1,
46
+ "output_attentions": false,
47
+ "output_hidden_states": false,
48
+ "output_scores": false,
49
+ "pad_token_id": 0,
50
+ "position_embedding_type": "absolute",
51
+ "prefix": null,
52
+ "problem_type": null,
53
+ "pruned_heads": {},
54
+ "remove_invalid_values": false,
55
+ "repetition_penalty": 1.0,
56
+ "return_dict": true,
57
+ "return_dict_in_generate": false,
58
+ "sep_token_id": null,
59
+ "suppress_tokens": null,
60
+ "task_specific_params": null,
61
+ "temperature": 1.0,
62
+ "tf_legacy_loss": false,
63
+ "tie_encoder_decoder": false,
64
+ "tie_word_embeddings": true,
65
+ "tokenizer_class": null,
66
+ "top_k": 50,
67
+ "top_p": 1.0,
68
+ "torch_dtype": null,
69
+ "torchscript": false,
70
+ "type_vocab_size": 2,
71
+ "typical_p": 1.0,
72
+ "use_bfloat16": false,
73
+ "use_cache": true,
74
+ "vocab_size": 30522
75
+ },
76
+ "decoder_start_token_id": 101,
77
+ "encoder": {
78
+ "_attn_implementation_autoset": true,
79
+ "_name_or_path": "cnmoro/tiny-image-captioning",
80
+ "add_cross_attention": false,
81
+ "architectures": [
82
+ "ViTForImageClassification"
83
+ ],
84
+ "attention_probs_dropout_prob": 0.0,
85
+ "bad_words_ids": null,
86
+ "begin_suppress_tokens": null,
87
+ "bos_token_id": null,
88
+ "chunk_size_feed_forward": 0,
89
+ "cross_attention_hidden_size": null,
90
+ "decoder_start_token_id": null,
91
+ "diversity_penalty": 0.0,
92
+ "do_sample": false,
93
+ "early_stopping": false,
94
+ "encoder_no_repeat_ngram_size": 0,
95
+ "encoder_stride": 16,
96
+ "eos_token_id": null,
97
+ "exponential_decay_length_penalty": null,
98
+ "finetuning_task": null,
99
+ "forced_bos_token_id": null,
100
+ "forced_eos_token_id": null,
101
+ "hidden_act": "gelu",
102
+ "hidden_dropout_prob": 0.0,
103
+ "hidden_size": 384,
104
+ "image_size": 224,
105
+ "initializer_range": 0.02,
106
+ "intermediate_size": 1536,
107
+ "is_decoder": false,
108
+ "is_encoder_decoder": false,
109
+ "layer_norm_eps": 1e-12,
110
+ "length_penalty": 1.0,
111
+ "max_length": 20,
112
+ "min_length": 0,
113
+ "model_type": "vit",
114
+ "no_repeat_ngram_size": 0,
115
+ "num_attention_heads": 6,
116
+ "num_beam_groups": 1,
117
+ "num_beams": 1,
118
+ "num_channels": 3,
119
+ "num_hidden_layers": 12,
120
+ "num_return_sequences": 1,
121
+ "output_attentions": false,
122
+ "output_hidden_states": false,
123
+ "output_scores": false,
124
+ "pad_token_id": null,
125
+ "patch_size": 16,
126
+ "prefix": null,
127
+ "problem_type": null,
128
+ "pruned_heads": {},
129
+ "qkv_bias": true,
130
+ "remove_invalid_values": false,
131
+ "repetition_penalty": 1.0,
132
+ "return_dict": true,
133
+ "return_dict_in_generate": false,
134
+ "sep_token_id": null,
135
+ "suppress_tokens": null,
136
+ "task_specific_params": null,
137
+ "temperature": 1.0,
138
+ "tf_legacy_loss": false,
139
+ "tie_encoder_decoder": false,
140
+ "tie_word_embeddings": true,
141
+ "tokenizer_class": null,
142
+ "top_k": 50,
143
+ "top_p": 1.0,
144
+ "torch_dtype": "float32",
145
+ "torchscript": false,
146
+ "typical_p": 1.0,
147
+ "use_bfloat16": false
148
+ },
149
+ "is_encoder_decoder": true,
150
+ "model_type": "vision-encoder-decoder",
151
+ "pad_token_id": 0,
152
+ "tie_word_embeddings": false,
153
+ "torch_dtype": "float32",
154
+ "transformers_version": "4.46.3"
155
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "decoder_start_token_id": 101,
3
+ "max_new_tokens": 25,
4
+ "pad_token_id": 0,
5
+ "transformers_version": "4.46.3"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb2ef6ae2991a81f88e295a59ead95715780045e1f465e68ffe1c5b9ba91ae6a
3
+ size 105680032
preprocessor_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_normalize": true,
3
+ "do_rescale": true,
4
+ "do_resize": true,
5
+ "image_mean": [
6
+ 0.5,
7
+ 0.5,
8
+ 0.5
9
+ ],
10
+ "image_processor_type": "ViTImageProcessor",
11
+ "image_std": [
12
+ 0.5,
13
+ 0.5,
14
+ 0.5
15
+ ],
16
+ "resample": 2,
17
+ "rescale_factor": 0.00392156862745098,
18
+ "size": {
19
+ "height": 224,
20
+ "width": 224
21
+ }
22
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 1000000000000000019884624838656,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff