vit-gpt2
Browse files- config.json +179 -0
- preprocessor_config.json +17 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
config.json
ADDED
@@ -0,0 +1,179 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "./finetuned/checkpoint-4500",
|
3 |
+
"architectures": [
|
4 |
+
"VisionEncoderDecoderModel"
|
5 |
+
],
|
6 |
+
"decoder": {
|
7 |
+
"_name_or_path": "skt/kogpt2-base-v2",
|
8 |
+
"_num_labels": 1,
|
9 |
+
"activation_function": "gelu_new",
|
10 |
+
"add_cross_attention": true,
|
11 |
+
"architectures": [
|
12 |
+
"GPT2LMHeadModel"
|
13 |
+
],
|
14 |
+
"attn_pdrop": 0.1,
|
15 |
+
"author": "Heewon Jeon([email protected])",
|
16 |
+
"bad_words_ids": null,
|
17 |
+
"bos_token_id": 0,
|
18 |
+
"chunk_size_feed_forward": 0,
|
19 |
+
"created_date": "2021-04-28",
|
20 |
+
"cross_attention_hidden_size": null,
|
21 |
+
"decoder_start_token_id": null,
|
22 |
+
"diversity_penalty": 0.0,
|
23 |
+
"do_sample": false,
|
24 |
+
"early_stopping": false,
|
25 |
+
"embd_pdrop": 0.1,
|
26 |
+
"encoder_no_repeat_ngram_size": 0,
|
27 |
+
"eos_token_id": 1,
|
28 |
+
"finetuning_task": null,
|
29 |
+
"forced_bos_token_id": null,
|
30 |
+
"forced_eos_token_id": null,
|
31 |
+
"gradient_checkpointing": false,
|
32 |
+
"id2label": {
|
33 |
+
"0": "LABEL_0"
|
34 |
+
},
|
35 |
+
"initializer_range": 0.02,
|
36 |
+
"is_decoder": true,
|
37 |
+
"is_encoder_decoder": false,
|
38 |
+
"label2id": {
|
39 |
+
"LABEL_0": 0
|
40 |
+
},
|
41 |
+
"layer_norm_epsilon": 1e-05,
|
42 |
+
"length_penalty": 1.0,
|
43 |
+
"license": "CC-BY-NC-SA 4.0",
|
44 |
+
"max_length": 20,
|
45 |
+
"min_length": 0,
|
46 |
+
"model_type": "gpt2",
|
47 |
+
"n_ctx": 1024,
|
48 |
+
"n_embd": 768,
|
49 |
+
"n_head": 12,
|
50 |
+
"n_inner": null,
|
51 |
+
"n_layer": 12,
|
52 |
+
"n_positions": 1024,
|
53 |
+
"no_repeat_ngram_size": 0,
|
54 |
+
"num_beam_groups": 1,
|
55 |
+
"num_beams": 1,
|
56 |
+
"num_return_sequences": 1,
|
57 |
+
"output_attentions": false,
|
58 |
+
"output_hidden_states": false,
|
59 |
+
"output_scores": false,
|
60 |
+
"pad_token_id": 3,
|
61 |
+
"prefix": null,
|
62 |
+
"problem_type": null,
|
63 |
+
"pruned_heads": {},
|
64 |
+
"remove_invalid_values": false,
|
65 |
+
"reorder_and_upcast_attn": false,
|
66 |
+
"repetition_penalty": 1.0,
|
67 |
+
"resid_pdrop": 0.1,
|
68 |
+
"return_dict": true,
|
69 |
+
"return_dict_in_generate": false,
|
70 |
+
"scale_attn_by_inverse_layer_idx": false,
|
71 |
+
"scale_attn_weights": true,
|
72 |
+
"sep_token_id": null,
|
73 |
+
"summary_activation": null,
|
74 |
+
"summary_first_dropout": 0.1,
|
75 |
+
"summary_proj_to_labels": true,
|
76 |
+
"summary_type": "cls_index",
|
77 |
+
"summary_use_proj": true,
|
78 |
+
"task_specific_params": {
|
79 |
+
"text-generation": {
|
80 |
+
"do_sample": true,
|
81 |
+
"max_length": 50
|
82 |
+
}
|
83 |
+
},
|
84 |
+
"temperature": 1.0,
|
85 |
+
"tie_encoder_decoder": false,
|
86 |
+
"tie_word_embeddings": true,
|
87 |
+
"tokenizer_class": null,
|
88 |
+
"top_k": 50,
|
89 |
+
"top_p": 1.0,
|
90 |
+
"torch_dtype": null,
|
91 |
+
"torchscript": false,
|
92 |
+
"transformers_version": "4.12.5",
|
93 |
+
"use_bfloat16": false,
|
94 |
+
"use_cache": true,
|
95 |
+
"vocab_size": 51200
|
96 |
+
},
|
97 |
+
"decoder_start_token_id": 0,
|
98 |
+
"encoder": {
|
99 |
+
"_name_or_path": "google/vit-base-patch16-224-in21k",
|
100 |
+
"add_cross_attention": false,
|
101 |
+
"architectures": [
|
102 |
+
"ViTModel"
|
103 |
+
],
|
104 |
+
"attention_probs_dropout_prob": 0.0,
|
105 |
+
"bad_words_ids": null,
|
106 |
+
"bos_token_id": null,
|
107 |
+
"chunk_size_feed_forward": 0,
|
108 |
+
"cross_attention_hidden_size": null,
|
109 |
+
"decoder_start_token_id": null,
|
110 |
+
"diversity_penalty": 0.0,
|
111 |
+
"do_sample": false,
|
112 |
+
"early_stopping": false,
|
113 |
+
"encoder_no_repeat_ngram_size": 0,
|
114 |
+
"eos_token_id": null,
|
115 |
+
"finetuning_task": null,
|
116 |
+
"forced_bos_token_id": null,
|
117 |
+
"forced_eos_token_id": null,
|
118 |
+
"hidden_act": "gelu",
|
119 |
+
"hidden_dropout_prob": 0.0,
|
120 |
+
"hidden_size": 768,
|
121 |
+
"id2label": {
|
122 |
+
"0": "LABEL_0",
|
123 |
+
"1": "LABEL_1"
|
124 |
+
},
|
125 |
+
"image_size": 224,
|
126 |
+
"initializer_range": 0.02,
|
127 |
+
"intermediate_size": 3072,
|
128 |
+
"is_decoder": false,
|
129 |
+
"is_encoder_decoder": false,
|
130 |
+
"label2id": {
|
131 |
+
"LABEL_0": 0,
|
132 |
+
"LABEL_1": 1
|
133 |
+
},
|
134 |
+
"layer_norm_eps": 1e-12,
|
135 |
+
"length_penalty": 1.0,
|
136 |
+
"max_length": 20,
|
137 |
+
"min_length": 0,
|
138 |
+
"model_type": "vit",
|
139 |
+
"no_repeat_ngram_size": 0,
|
140 |
+
"num_attention_heads": 12,
|
141 |
+
"num_beam_groups": 1,
|
142 |
+
"num_beams": 1,
|
143 |
+
"num_channels": 3,
|
144 |
+
"num_hidden_layers": 12,
|
145 |
+
"num_return_sequences": 1,
|
146 |
+
"output_attentions": false,
|
147 |
+
"output_hidden_states": false,
|
148 |
+
"output_scores": false,
|
149 |
+
"pad_token_id": null,
|
150 |
+
"patch_size": 16,
|
151 |
+
"prefix": null,
|
152 |
+
"problem_type": null,
|
153 |
+
"pruned_heads": {},
|
154 |
+
"qkv_bias": true,
|
155 |
+
"remove_invalid_values": false,
|
156 |
+
"repetition_penalty": 1.0,
|
157 |
+
"return_dict": true,
|
158 |
+
"return_dict_in_generate": false,
|
159 |
+
"sep_token_id": null,
|
160 |
+
"task_specific_params": null,
|
161 |
+
"temperature": 1.0,
|
162 |
+
"tie_encoder_decoder": false,
|
163 |
+
"tie_word_embeddings": true,
|
164 |
+
"tokenizer_class": null,
|
165 |
+
"top_k": 50,
|
166 |
+
"top_p": 1.0,
|
167 |
+
"torch_dtype": null,
|
168 |
+
"torchscript": false,
|
169 |
+
"transformers_version": "4.12.5",
|
170 |
+
"use_bfloat16": false
|
171 |
+
},
|
172 |
+
"is_encoder_decoder": true,
|
173 |
+
"model_type": "vision-encoder-decoder",
|
174 |
+
"pad_token_id": 3,
|
175 |
+
"tie_word_embeddings": false,
|
176 |
+
"torch_dtype": "float32",
|
177 |
+
"transformers_version": null,
|
178 |
+
"vocab_size": 51200
|
179 |
+
}
|
preprocessor_config.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_resize": true,
|
4 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
5 |
+
"image_mean": [
|
6 |
+
0.5,
|
7 |
+
0.5,
|
8 |
+
0.5
|
9 |
+
],
|
10 |
+
"image_std": [
|
11 |
+
0.5,
|
12 |
+
0.5,
|
13 |
+
0.5
|
14 |
+
],
|
15 |
+
"resample": 2,
|
16 |
+
"size": 224
|
17 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ee7845678af3b43eeefe146209e1b7cbd01155b13ddb6cf30d13d07dbc04335b
|
3 |
+
size 985032041
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "pad_token": "<pad>", "mask_token": "<mask>", "special_tokens_map_file": null, "name_or_path": "skt/kogpt2-base-v2", "tokenizer_class": "PreTrainedTokenizerFast"}
|