tikim commited on
Commit
11ebc24
1 Parent(s): 645fa57

model_230403

Browse files
model/config.json ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_commit_hash": null,
3
+ "architectures": [
4
+ "EncoderDecoderModel"
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(madjakarta@gmail.com)",
16
+ "bad_words_ids": null,
17
+ "begin_suppress_tokens": null,
18
+ "bos_token_id": 0,
19
+ "chunk_size_feed_forward": 0,
20
+ "created_date": "2021-04-28",
21
+ "cross_attention_hidden_size": null,
22
+ "decoder_start_token_id": null,
23
+ "diversity_penalty": 0.0,
24
+ "do_sample": false,
25
+ "early_stopping": false,
26
+ "embd_pdrop": 0.1,
27
+ "encoder_no_repeat_ngram_size": 0,
28
+ "eos_token_id": 1,
29
+ "exponential_decay_length_penalty": null,
30
+ "finetuning_task": null,
31
+ "forced_bos_token_id": null,
32
+ "forced_eos_token_id": null,
33
+ "gradient_checkpointing": false,
34
+ "id2label": {
35
+ "0": "LABEL_0"
36
+ },
37
+ "initializer_range": 0.02,
38
+ "is_decoder": true,
39
+ "is_encoder_decoder": false,
40
+ "label2id": {
41
+ "LABEL_0": 0
42
+ },
43
+ "layer_norm_epsilon": 1e-05,
44
+ "length_penalty": 1.0,
45
+ "license": "CC-BY-NC-SA 4.0",
46
+ "max_length": 20,
47
+ "min_length": 0,
48
+ "model_type": "gpt2",
49
+ "n_ctx": 1024,
50
+ "n_embd": 768,
51
+ "n_head": 12,
52
+ "n_inner": null,
53
+ "n_layer": 12,
54
+ "n_positions": 1024,
55
+ "no_repeat_ngram_size": 0,
56
+ "num_beam_groups": 1,
57
+ "num_beams": 1,
58
+ "num_return_sequences": 1,
59
+ "output_attentions": false,
60
+ "output_hidden_states": false,
61
+ "output_scores": false,
62
+ "pad_token_id": 3,
63
+ "prefix": null,
64
+ "problem_type": null,
65
+ "pruned_heads": {},
66
+ "remove_invalid_values": false,
67
+ "reorder_and_upcast_attn": false,
68
+ "repetition_penalty": 1.0,
69
+ "resid_pdrop": 0.1,
70
+ "return_dict": true,
71
+ "return_dict_in_generate": false,
72
+ "scale_attn_by_inverse_layer_idx": false,
73
+ "scale_attn_weights": true,
74
+ "sep_token_id": null,
75
+ "summary_activation": null,
76
+ "summary_first_dropout": 0.1,
77
+ "summary_proj_to_labels": true,
78
+ "summary_type": "cls_index",
79
+ "summary_use_proj": true,
80
+ "suppress_tokens": null,
81
+ "task_specific_params": {
82
+ "text-generation": {
83
+ "do_sample": true,
84
+ "max_length": 50
85
+ }
86
+ },
87
+ "temperature": 1.0,
88
+ "tf_legacy_loss": false,
89
+ "tie_encoder_decoder": false,
90
+ "tie_word_embeddings": true,
91
+ "tokenizer_class": null,
92
+ "top_k": 50,
93
+ "top_p": 1.0,
94
+ "torch_dtype": null,
95
+ "torchscript": false,
96
+ "transformers_version": "4.27.3",
97
+ "typical_p": 1.0,
98
+ "use_bfloat16": false,
99
+ "use_cache": true,
100
+ "vocab_size": 51200
101
+ },
102
+ "decoder_start_token_id": 1,
103
+ "encoder": {
104
+ "_name_or_path": "cl-tohoku/bert-base-japanese-v2",
105
+ "add_cross_attention": false,
106
+ "architectures": [
107
+ "BertForMaskedLM"
108
+ ],
109
+ "attention_probs_dropout_prob": 0.1,
110
+ "bad_words_ids": null,
111
+ "begin_suppress_tokens": null,
112
+ "bos_token_id": null,
113
+ "chunk_size_feed_forward": 0,
114
+ "classifier_dropout": null,
115
+ "cross_attention_hidden_size": null,
116
+ "decoder_start_token_id": null,
117
+ "diversity_penalty": 0.0,
118
+ "do_sample": false,
119
+ "early_stopping": false,
120
+ "encoder_no_repeat_ngram_size": 0,
121
+ "eos_token_id": null,
122
+ "exponential_decay_length_penalty": null,
123
+ "finetuning_task": null,
124
+ "forced_bos_token_id": null,
125
+ "forced_eos_token_id": null,
126
+ "hidden_act": "gelu",
127
+ "hidden_dropout_prob": 0.1,
128
+ "hidden_size": 768,
129
+ "id2label": {
130
+ "0": "LABEL_0",
131
+ "1": "LABEL_1"
132
+ },
133
+ "initializer_range": 0.02,
134
+ "intermediate_size": 3072,
135
+ "is_decoder": false,
136
+ "is_encoder_decoder": false,
137
+ "label2id": {
138
+ "LABEL_0": 0,
139
+ "LABEL_1": 1
140
+ },
141
+ "layer_norm_eps": 1e-12,
142
+ "length_penalty": 1.0,
143
+ "max_length": 20,
144
+ "max_position_embeddings": 512,
145
+ "min_length": 0,
146
+ "model_type": "bert",
147
+ "no_repeat_ngram_size": 0,
148
+ "num_attention_heads": 12,
149
+ "num_beam_groups": 1,
150
+ "num_beams": 1,
151
+ "num_hidden_layers": 12,
152
+ "num_return_sequences": 1,
153
+ "output_attentions": false,
154
+ "output_hidden_states": false,
155
+ "output_scores": false,
156
+ "pad_token_id": 0,
157
+ "position_embedding_type": "absolute",
158
+ "prefix": null,
159
+ "problem_type": null,
160
+ "pruned_heads": {},
161
+ "remove_invalid_values": false,
162
+ "repetition_penalty": 1.0,
163
+ "return_dict": true,
164
+ "return_dict_in_generate": false,
165
+ "sep_token_id": null,
166
+ "suppress_tokens": null,
167
+ "task_specific_params": null,
168
+ "temperature": 1.0,
169
+ "tf_legacy_loss": false,
170
+ "tie_encoder_decoder": false,
171
+ "tie_word_embeddings": true,
172
+ "tokenizer_class": "BertJapaneseTokenizer",
173
+ "top_k": 50,
174
+ "top_p": 1.0,
175
+ "torch_dtype": null,
176
+ "torchscript": false,
177
+ "transformers_version": "4.27.3",
178
+ "type_vocab_size": 2,
179
+ "typical_p": 1.0,
180
+ "use_bfloat16": false,
181
+ "use_cache": true,
182
+ "vocab_size": 32768
183
+ },
184
+ "is_encoder_decoder": true,
185
+ "model_type": "encoder-decoder",
186
+ "pad_token_id": 1,
187
+ "torch_dtype": "float32",
188
+ "transformers_version": null
189
+ }
model/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.27.3"
7
+ }
model/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e1ad63b2a7c5f48f4f5155ed6c281aa7ca38ebdf9fc4e1b46826d1046601828
3
+ size 1084290109