pszemraj commited on
Commit
45c6e1d
1 Parent(s): 462ade0

Upload model

Browse files
Files changed (3) hide show
  1. config.json +196 -0
  2. generation_config.json +7 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "EncoderDecoderModel"
4
+ ],
5
+ "decoder": {
6
+ "_name_or_path": "gpt2-medium",
7
+ "activation_function": "gelu_new",
8
+ "add_cross_attention": true,
9
+ "architectures": [
10
+ "GPT2LMHeadModel"
11
+ ],
12
+ "attn_pdrop": 0.1,
13
+ "bad_words_ids": null,
14
+ "begin_suppress_tokens": null,
15
+ "bos_token_id": 50256,
16
+ "chunk_size_feed_forward": 0,
17
+ "cross_attention_hidden_size": null,
18
+ "decoder_start_token_id": null,
19
+ "diversity_penalty": 0.0,
20
+ "do_sample": false,
21
+ "early_stopping": false,
22
+ "embd_pdrop": 0.1,
23
+ "encoder_no_repeat_ngram_size": 0,
24
+ "eos_token_id": 50256,
25
+ "exponential_decay_length_penalty": null,
26
+ "finetuning_task": null,
27
+ "forced_bos_token_id": null,
28
+ "forced_eos_token_id": null,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1"
32
+ },
33
+ "initializer_range": 0.02,
34
+ "is_decoder": true,
35
+ "is_encoder_decoder": false,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1
39
+ },
40
+ "layer_norm_epsilon": 1e-05,
41
+ "length_penalty": 1.0,
42
+ "max_length": 20,
43
+ "min_length": 0,
44
+ "model_type": "gpt2",
45
+ "n_ctx": 1024,
46
+ "n_embd": 1024,
47
+ "n_head": 16,
48
+ "n_inner": null,
49
+ "n_layer": 24,
50
+ "n_positions": 1024,
51
+ "n_special": 0,
52
+ "no_repeat_ngram_size": 0,
53
+ "num_beam_groups": 1,
54
+ "num_beams": 1,
55
+ "num_return_sequences": 1,
56
+ "output_attentions": false,
57
+ "output_hidden_states": false,
58
+ "output_scores": false,
59
+ "pad_token_id": null,
60
+ "predict_special_tokens": true,
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
+ "suppress_tokens": null,
79
+ "task_specific_params": {
80
+ "text-generation": {
81
+ "do_sample": true,
82
+ "max_length": 50
83
+ }
84
+ },
85
+ "temperature": 1.0,
86
+ "tf_legacy_loss": false,
87
+ "tie_encoder_decoder": false,
88
+ "tie_word_embeddings": true,
89
+ "tokenizer_class": null,
90
+ "top_k": 50,
91
+ "top_p": 1.0,
92
+ "torch_dtype": null,
93
+ "torchscript": false,
94
+ "typical_p": 1.0,
95
+ "use_bfloat16": false,
96
+ "use_cache": true,
97
+ "vocab_size": 50257
98
+ },
99
+ "encoder": {
100
+ "_name_or_path": "jinaai/jina-embeddings-v2-base-en",
101
+ "add_cross_attention": false,
102
+ "architectures": [
103
+ "JinaBertForMaskedLM"
104
+ ],
105
+ "attention_probs_dropout_prob": 0.0,
106
+ "auto_map": {
107
+ "AutoConfig": "jinaai/jina-bert-implementation--configuration_bert.JinaBertConfig",
108
+ "AutoModel": "jinaai/jina-bert-implementation--modeling_bert.JinaBertModel",
109
+ "AutoModelForMaskedLM": "jinaai/jina-bert-implementation--modeling_bert.JinaBertForMaskedLM",
110
+ "AutoModelForSequenceClassification": "jinaai/jina-bert-implementation--modeling_bert.JinaBertForSequenceClassification"
111
+ },
112
+ "bad_words_ids": null,
113
+ "begin_suppress_tokens": null,
114
+ "bos_token_id": null,
115
+ "chunk_size_feed_forward": 0,
116
+ "classifier_dropout": null,
117
+ "cross_attention_hidden_size": null,
118
+ "decoder_start_token_id": null,
119
+ "diversity_penalty": 0.0,
120
+ "do_sample": false,
121
+ "early_stopping": false,
122
+ "emb_pooler": "mean",
123
+ "encoder_no_repeat_ngram_size": 0,
124
+ "eos_token_id": null,
125
+ "exponential_decay_length_penalty": null,
126
+ "feed_forward_type": "geglu",
127
+ "finetuning_task": null,
128
+ "forced_bos_token_id": null,
129
+ "forced_eos_token_id": null,
130
+ "gradient_checkpointing": false,
131
+ "hidden_act": "gelu",
132
+ "hidden_dropout_prob": 0.1,
133
+ "hidden_size": 768,
134
+ "id2label": {
135
+ "0": "LABEL_0",
136
+ "1": "LABEL_1"
137
+ },
138
+ "initializer_range": 0.02,
139
+ "intermediate_size": 3072,
140
+ "is_decoder": false,
141
+ "is_encoder_decoder": false,
142
+ "label2id": {
143
+ "LABEL_0": 0,
144
+ "LABEL_1": 1
145
+ },
146
+ "layer_norm_eps": 1e-12,
147
+ "length_penalty": 1.0,
148
+ "max_length": 20,
149
+ "max_position_embeddings": 8192,
150
+ "min_length": 0,
151
+ "model_max_length": 8192,
152
+ "model_type": "bert",
153
+ "no_repeat_ngram_size": 0,
154
+ "num_attention_heads": 12,
155
+ "num_beam_groups": 1,
156
+ "num_beams": 1,
157
+ "num_hidden_layers": 12,
158
+ "num_return_sequences": 1,
159
+ "output_attentions": false,
160
+ "output_hidden_states": false,
161
+ "output_scores": false,
162
+ "pad_token_id": 0,
163
+ "position_embedding_type": "alibi",
164
+ "prefix": null,
165
+ "problem_type": null,
166
+ "pruned_heads": {},
167
+ "remove_invalid_values": false,
168
+ "repetition_penalty": 1.0,
169
+ "return_dict": true,
170
+ "return_dict_in_generate": false,
171
+ "sep_token_id": null,
172
+ "suppress_tokens": null,
173
+ "task_specific_params": null,
174
+ "temperature": 1.0,
175
+ "tf_legacy_loss": false,
176
+ "tie_encoder_decoder": false,
177
+ "tie_word_embeddings": true,
178
+ "tokenizer_class": null,
179
+ "top_k": 50,
180
+ "top_p": 1.0,
181
+ "torch_dtype": "float32",
182
+ "torchscript": false,
183
+ "type_vocab_size": 2,
184
+ "typical_p": 1.0,
185
+ "use_bfloat16": false,
186
+ "use_cache": true,
187
+ "vocab_size": 30528
188
+ },
189
+ "eos_token_id": 50256,
190
+ "is_encoder_decoder": true,
191
+ "model_type": "encoder-decoder",
192
+ "pad_token_id": 50256,
193
+ "torch_dtype": "float32",
194
+ "transformers_version": "4.35.2",
195
+ "trust_remote_code": true
196
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "pad_token_id": 50256,
6
+ "transformers_version": "4.35.2"
7
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff1a2398930536edc46b3c1ec4a923ef02e66c3c819c41a9dca2b0dd2cba61e3
3
+ size 2287306720