tarekziade
commited on
Commit
•
4d0f6bc
1
Parent(s):
0df069f
Upload 16 files
Browse files- config.json +184 -184
- generation_config.json +5 -5
- onnx/decoder_model.onnx +3 -0
- onnx/decoder_model_merged.onnx +3 -0
- onnx/decoder_model_merged_quantized.onnx +3 -0
- onnx/decoder_model_quantized.onnx +3 -0
- onnx/decoder_with_past_model.onnx +3 -0
- onnx/decoder_with_past_model_quantized.onnx +3 -0
- onnx/encoder_model.onnx +3 -0
- onnx/encoder_model_quantized.onnx +3 -0
- quantize_config.json +125 -0
- special_tokens_map.json +30 -6
- tokenizer_config.json +20 -20
config.json
CHANGED
@@ -1,184 +1,184 @@
|
|
1 |
-
{
|
2 |
-
"_name_or_path": "
|
3 |
-
"architectures": [
|
4 |
-
"VisionEncoderDecoderModel"
|
5 |
-
],
|
6 |
-
"decoder": {
|
7 |
-
"_name_or_path": "distilbert/distilgpt2",
|
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 |
-
"bad_words_ids": null,
|
16 |
-
"begin_suppress_tokens": null,
|
17 |
-
"bos_token_id": 50256,
|
18 |
-
"chunk_size_feed_forward": 0,
|
19 |
-
"cross_attention_hidden_size": null,
|
20 |
-
"decoder_start_token_id": null,
|
21 |
-
"diversity_penalty": 0.0,
|
22 |
-
"do_sample": false,
|
23 |
-
"early_stopping": false,
|
24 |
-
"embd_pdrop": 0.1,
|
25 |
-
"encoder_no_repeat_ngram_size": 0,
|
26 |
-
"eos_token_id": 50256,
|
27 |
-
"exponential_decay_length_penalty": null,
|
28 |
-
"finetuning_task": null,
|
29 |
-
"forced_bos_token_id": null,
|
30 |
-
"forced_eos_token_id": null,
|
31 |
-
"id2label": {
|
32 |
-
"0": "LABEL_0"
|
33 |
-
},
|
34 |
-
"initializer_range": 0.02,
|
35 |
-
"is_decoder": true,
|
36 |
-
"is_encoder_decoder": false,
|
37 |
-
"label2id": {
|
38 |
-
"LABEL_0": 0
|
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": 768,
|
47 |
-
"n_head": 12,
|
48 |
-
"n_inner": null,
|
49 |
-
"n_layer": 6,
|
50 |
-
"n_positions": 1024,
|
51 |
-
"no_repeat_ngram_size": 0,
|
52 |
-
"num_beam_groups": 1,
|
53 |
-
"num_beams": 1,
|
54 |
-
"num_return_sequences": 1,
|
55 |
-
"output_attentions": false,
|
56 |
-
"output_hidden_states": false,
|
57 |
-
"output_scores": false,
|
58 |
-
"pad_token_id": null,
|
59 |
-
"prefix": null,
|
60 |
-
"problem_type": null,
|
61 |
-
"pruned_heads": {},
|
62 |
-
"remove_invalid_values": false,
|
63 |
-
"reorder_and_upcast_attn": false,
|
64 |
-
"repetition_penalty": 1.0,
|
65 |
-
"resid_pdrop": 0.1,
|
66 |
-
"return_dict": true,
|
67 |
-
"return_dict_in_generate": false,
|
68 |
-
"scale_attn_by_inverse_layer_idx": false,
|
69 |
-
"scale_attn_weights": true,
|
70 |
-
"sep_token_id": null,
|
71 |
-
"summary_activation": null,
|
72 |
-
"summary_first_dropout": 0.1,
|
73 |
-
"summary_proj_to_labels": true,
|
74 |
-
"summary_type": "cls_index",
|
75 |
-
"summary_use_proj": true,
|
76 |
-
"suppress_tokens": null,
|
77 |
-
"task_specific_params": {
|
78 |
-
"text-generation": {
|
79 |
-
"do_sample": true,
|
80 |
-
"max_length": 50
|
81 |
-
}
|
82 |
-
},
|
83 |
-
"temperature": 1.0,
|
84 |
-
"tf_legacy_loss": false,
|
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 |
-
"typical_p": 1.0,
|
93 |
-
"use_bfloat16": false,
|
94 |
-
"use_cache": true,
|
95 |
-
"vocab_size": 50257
|
96 |
-
},
|
97 |
-
"decoder_start_token_id": 50256,
|
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 |
-
"begin_suppress_tokens": null,
|
107 |
-
"bos_token_id": null,
|
108 |
-
"chunk_size_feed_forward": 0,
|
109 |
-
"cross_attention_hidden_size": null,
|
110 |
-
"decoder_start_token_id": null,
|
111 |
-
"diversity_penalty": 0.0,
|
112 |
-
"do_sample": false,
|
113 |
-
"early_stopping": false,
|
114 |
-
"encoder_no_repeat_ngram_size": 0,
|
115 |
-
"encoder_stride": 16,
|
116 |
-
"eos_token_id": null,
|
117 |
-
"exponential_decay_length_penalty": null,
|
118 |
-
"finetuning_task": null,
|
119 |
-
"forced_bos_token_id": null,
|
120 |
-
"forced_eos_token_id": null,
|
121 |
-
"hidden_act": "gelu",
|
122 |
-
"hidden_dropout_prob": 0.0,
|
123 |
-
"hidden_size": 768,
|
124 |
-
"id2label": {
|
125 |
-
"0": "LABEL_0",
|
126 |
-
"1": "LABEL_1"
|
127 |
-
},
|
128 |
-
"image_size": 224,
|
129 |
-
"initializer_range": 0.02,
|
130 |
-
"intermediate_size": 3072,
|
131 |
-
"is_decoder": false,
|
132 |
-
"is_encoder_decoder": false,
|
133 |
-
"label2id": {
|
134 |
-
"LABEL_0": 0,
|
135 |
-
"LABEL_1": 1
|
136 |
-
},
|
137 |
-
"layer_norm_eps": 1e-12,
|
138 |
-
"length_penalty": 1.0,
|
139 |
-
"max_length": 20,
|
140 |
-
"min_length": 0,
|
141 |
-
"model_type": "vit",
|
142 |
-
"no_repeat_ngram_size": 0,
|
143 |
-
"num_attention_heads": 12,
|
144 |
-
"num_beam_groups": 1,
|
145 |
-
"num_beams": 1,
|
146 |
-
"num_channels": 3,
|
147 |
-
"num_hidden_layers": 12,
|
148 |
-
"num_return_sequences": 1,
|
149 |
-
"output_attentions": false,
|
150 |
-
"output_hidden_states": false,
|
151 |
-
"output_scores": false,
|
152 |
-
"pad_token_id": null,
|
153 |
-
"patch_size": 16,
|
154 |
-
"prefix": null,
|
155 |
-
"problem_type": null,
|
156 |
-
"pruned_heads": {},
|
157 |
-
"qkv_bias": true,
|
158 |
-
"remove_invalid_values": false,
|
159 |
-
"repetition_penalty": 1.0,
|
160 |
-
"return_dict": true,
|
161 |
-
"return_dict_in_generate": false,
|
162 |
-
"sep_token_id": null,
|
163 |
-
"suppress_tokens": null,
|
164 |
-
"task_specific_params": null,
|
165 |
-
"temperature": 1.0,
|
166 |
-
"tf_legacy_loss": false,
|
167 |
-
"tie_encoder_decoder": false,
|
168 |
-
"tie_word_embeddings": true,
|
169 |
-
"tokenizer_class": null,
|
170 |
-
"top_k": 50,
|
171 |
-
"top_p": 1.0,
|
172 |
-
"torch_dtype": null,
|
173 |
-
"torchscript": false,
|
174 |
-
"typical_p": 1.0,
|
175 |
-
"use_bfloat16": false
|
176 |
-
},
|
177 |
-
"eos_token_id": 50256,
|
178 |
-
"is_encoder_decoder": true,
|
179 |
-
"model_type": "vision-encoder-decoder",
|
180 |
-
"pad_token_id": 50256,
|
181 |
-
"tie_word_embeddings": false,
|
182 |
-
"
|
183 |
-
"
|
184 |
-
}
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "tarekziade/vit-base-patch16-224-in21k-distilgpt2",
|
3 |
+
"architectures": [
|
4 |
+
"VisionEncoderDecoderModel"
|
5 |
+
],
|
6 |
+
"decoder": {
|
7 |
+
"_name_or_path": "distilbert/distilgpt2",
|
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 |
+
"bad_words_ids": null,
|
16 |
+
"begin_suppress_tokens": null,
|
17 |
+
"bos_token_id": 50256,
|
18 |
+
"chunk_size_feed_forward": 0,
|
19 |
+
"cross_attention_hidden_size": null,
|
20 |
+
"decoder_start_token_id": null,
|
21 |
+
"diversity_penalty": 0.0,
|
22 |
+
"do_sample": false,
|
23 |
+
"early_stopping": false,
|
24 |
+
"embd_pdrop": 0.1,
|
25 |
+
"encoder_no_repeat_ngram_size": 0,
|
26 |
+
"eos_token_id": 50256,
|
27 |
+
"exponential_decay_length_penalty": null,
|
28 |
+
"finetuning_task": null,
|
29 |
+
"forced_bos_token_id": null,
|
30 |
+
"forced_eos_token_id": null,
|
31 |
+
"id2label": {
|
32 |
+
"0": "LABEL_0"
|
33 |
+
},
|
34 |
+
"initializer_range": 0.02,
|
35 |
+
"is_decoder": true,
|
36 |
+
"is_encoder_decoder": false,
|
37 |
+
"label2id": {
|
38 |
+
"LABEL_0": 0
|
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": 768,
|
47 |
+
"n_head": 12,
|
48 |
+
"n_inner": null,
|
49 |
+
"n_layer": 6,
|
50 |
+
"n_positions": 1024,
|
51 |
+
"no_repeat_ngram_size": 0,
|
52 |
+
"num_beam_groups": 1,
|
53 |
+
"num_beams": 1,
|
54 |
+
"num_return_sequences": 1,
|
55 |
+
"output_attentions": false,
|
56 |
+
"output_hidden_states": false,
|
57 |
+
"output_scores": false,
|
58 |
+
"pad_token_id": null,
|
59 |
+
"prefix": null,
|
60 |
+
"problem_type": null,
|
61 |
+
"pruned_heads": {},
|
62 |
+
"remove_invalid_values": false,
|
63 |
+
"reorder_and_upcast_attn": false,
|
64 |
+
"repetition_penalty": 1.0,
|
65 |
+
"resid_pdrop": 0.1,
|
66 |
+
"return_dict": true,
|
67 |
+
"return_dict_in_generate": false,
|
68 |
+
"scale_attn_by_inverse_layer_idx": false,
|
69 |
+
"scale_attn_weights": true,
|
70 |
+
"sep_token_id": null,
|
71 |
+
"summary_activation": null,
|
72 |
+
"summary_first_dropout": 0.1,
|
73 |
+
"summary_proj_to_labels": true,
|
74 |
+
"summary_type": "cls_index",
|
75 |
+
"summary_use_proj": true,
|
76 |
+
"suppress_tokens": null,
|
77 |
+
"task_specific_params": {
|
78 |
+
"text-generation": {
|
79 |
+
"do_sample": true,
|
80 |
+
"max_length": 50
|
81 |
+
}
|
82 |
+
},
|
83 |
+
"temperature": 1.0,
|
84 |
+
"tf_legacy_loss": false,
|
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 |
+
"typical_p": 1.0,
|
93 |
+
"use_bfloat16": false,
|
94 |
+
"use_cache": true,
|
95 |
+
"vocab_size": 50257
|
96 |
+
},
|
97 |
+
"decoder_start_token_id": 50256,
|
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 |
+
"begin_suppress_tokens": null,
|
107 |
+
"bos_token_id": null,
|
108 |
+
"chunk_size_feed_forward": 0,
|
109 |
+
"cross_attention_hidden_size": null,
|
110 |
+
"decoder_start_token_id": null,
|
111 |
+
"diversity_penalty": 0.0,
|
112 |
+
"do_sample": false,
|
113 |
+
"early_stopping": false,
|
114 |
+
"encoder_no_repeat_ngram_size": 0,
|
115 |
+
"encoder_stride": 16,
|
116 |
+
"eos_token_id": null,
|
117 |
+
"exponential_decay_length_penalty": null,
|
118 |
+
"finetuning_task": null,
|
119 |
+
"forced_bos_token_id": null,
|
120 |
+
"forced_eos_token_id": null,
|
121 |
+
"hidden_act": "gelu",
|
122 |
+
"hidden_dropout_prob": 0.0,
|
123 |
+
"hidden_size": 768,
|
124 |
+
"id2label": {
|
125 |
+
"0": "LABEL_0",
|
126 |
+
"1": "LABEL_1"
|
127 |
+
},
|
128 |
+
"image_size": 224,
|
129 |
+
"initializer_range": 0.02,
|
130 |
+
"intermediate_size": 3072,
|
131 |
+
"is_decoder": false,
|
132 |
+
"is_encoder_decoder": false,
|
133 |
+
"label2id": {
|
134 |
+
"LABEL_0": 0,
|
135 |
+
"LABEL_1": 1
|
136 |
+
},
|
137 |
+
"layer_norm_eps": 1e-12,
|
138 |
+
"length_penalty": 1.0,
|
139 |
+
"max_length": 20,
|
140 |
+
"min_length": 0,
|
141 |
+
"model_type": "vit",
|
142 |
+
"no_repeat_ngram_size": 0,
|
143 |
+
"num_attention_heads": 12,
|
144 |
+
"num_beam_groups": 1,
|
145 |
+
"num_beams": 1,
|
146 |
+
"num_channels": 3,
|
147 |
+
"num_hidden_layers": 12,
|
148 |
+
"num_return_sequences": 1,
|
149 |
+
"output_attentions": false,
|
150 |
+
"output_hidden_states": false,
|
151 |
+
"output_scores": false,
|
152 |
+
"pad_token_id": null,
|
153 |
+
"patch_size": 16,
|
154 |
+
"prefix": null,
|
155 |
+
"problem_type": null,
|
156 |
+
"pruned_heads": {},
|
157 |
+
"qkv_bias": true,
|
158 |
+
"remove_invalid_values": false,
|
159 |
+
"repetition_penalty": 1.0,
|
160 |
+
"return_dict": true,
|
161 |
+
"return_dict_in_generate": false,
|
162 |
+
"sep_token_id": null,
|
163 |
+
"suppress_tokens": null,
|
164 |
+
"task_specific_params": null,
|
165 |
+
"temperature": 1.0,
|
166 |
+
"tf_legacy_loss": false,
|
167 |
+
"tie_encoder_decoder": false,
|
168 |
+
"tie_word_embeddings": true,
|
169 |
+
"tokenizer_class": null,
|
170 |
+
"top_k": 50,
|
171 |
+
"top_p": 1.0,
|
172 |
+
"torch_dtype": null,
|
173 |
+
"torchscript": false,
|
174 |
+
"typical_p": 1.0,
|
175 |
+
"use_bfloat16": false
|
176 |
+
},
|
177 |
+
"eos_token_id": 50256,
|
178 |
+
"is_encoder_decoder": true,
|
179 |
+
"model_type": "vision-encoder-decoder",
|
180 |
+
"pad_token_id": 50256,
|
181 |
+
"tie_word_embeddings": false,
|
182 |
+
"transformers_version": "4.40.2",
|
183 |
+
"use_cache": true
|
184 |
+
}
|
generation_config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
{
|
2 |
-
"bos_token_id": 50256,
|
3 |
-
"eos_token_id": 50256,
|
4 |
-
"transformers_version": "4.40.2"
|
5 |
-
}
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 50256,
|
3 |
+
"eos_token_id": 50256,
|
4 |
+
"transformers_version": "4.40.2"
|
5 |
+
}
|
onnx/decoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a4d053ed1152fb8b4e3ac40e8edf80bc24645ed32e8fc1a7531cb2c92b0d1630
|
3 |
+
size 385864191
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dc96e82c222400e7271a94e88c53e87e005a5b607c65595a84dad16700b5843f
|
3 |
+
size 387341374
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:534ffa60a4a26b59f017e1f770e5a8e9e23196ddf5bd764a2bf325cfbbd56b7b
|
3 |
+
size 99765277
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:96d69b1df1679cdd10e6c7c820552abc141f4626371d9d8156a56ad9fcc640ce
|
3 |
+
size 98068691
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0365309a279acb426e47f38c2cd1df4a76fd0cc82f151a3ff3329e193c2eb6d
|
3 |
+
size 385863771
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:613a7a0d281df4932f9257896a9361d19d4ded28d39a7dc04ab9abbe6403431c
|
3 |
+
size 98066098
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:50b99dc721aed553c9d05984c787386745eb874707463d935b11ff5d298b49ed
|
3 |
+
size 343440610
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0a6a0bbf9f22df59f2dfe55509a972365c99e274a295048d5cdd605c1022d398
|
3 |
+
size 87038401
|
quantize_config.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": false,
|
3 |
+
"reduce_range": false,
|
4 |
+
"per_model_config": {
|
5 |
+
"decoder_with_past_model": {
|
6 |
+
"op_types": [
|
7 |
+
"Reshape",
|
8 |
+
"ConstantOfShape",
|
9 |
+
"Sub",
|
10 |
+
"Add",
|
11 |
+
"Range",
|
12 |
+
"Mul",
|
13 |
+
"Softmax",
|
14 |
+
"Gemm",
|
15 |
+
"Sqrt",
|
16 |
+
"Tanh",
|
17 |
+
"Transpose",
|
18 |
+
"Concat",
|
19 |
+
"MatMul",
|
20 |
+
"Constant",
|
21 |
+
"Slice",
|
22 |
+
"Squeeze",
|
23 |
+
"Gather",
|
24 |
+
"Where",
|
25 |
+
"Split",
|
26 |
+
"ReduceMean",
|
27 |
+
"Cast",
|
28 |
+
"Unsqueeze",
|
29 |
+
"Shape",
|
30 |
+
"Pow",
|
31 |
+
"Div"
|
32 |
+
],
|
33 |
+
"weight_type": "QInt8"
|
34 |
+
},
|
35 |
+
"decoder_model": {
|
36 |
+
"op_types": [
|
37 |
+
"Reshape",
|
38 |
+
"ConstantOfShape",
|
39 |
+
"Sub",
|
40 |
+
"Add",
|
41 |
+
"Range",
|
42 |
+
"Mul",
|
43 |
+
"Softmax",
|
44 |
+
"Gemm",
|
45 |
+
"Sqrt",
|
46 |
+
"Tanh",
|
47 |
+
"Transpose",
|
48 |
+
"Concat",
|
49 |
+
"MatMul",
|
50 |
+
"Constant",
|
51 |
+
"Slice",
|
52 |
+
"Squeeze",
|
53 |
+
"Gather",
|
54 |
+
"Where",
|
55 |
+
"Split",
|
56 |
+
"ReduceMean",
|
57 |
+
"Cast",
|
58 |
+
"Unsqueeze",
|
59 |
+
"Shape",
|
60 |
+
"Pow",
|
61 |
+
"Div"
|
62 |
+
],
|
63 |
+
"weight_type": "QInt8"
|
64 |
+
},
|
65 |
+
"encoder_model": {
|
66 |
+
"op_types": [
|
67 |
+
"Reshape",
|
68 |
+
"ConstantOfShape",
|
69 |
+
"Sub",
|
70 |
+
"Add",
|
71 |
+
"Mul",
|
72 |
+
"Softmax",
|
73 |
+
"Sqrt",
|
74 |
+
"Transpose",
|
75 |
+
"Concat",
|
76 |
+
"MatMul",
|
77 |
+
"Constant",
|
78 |
+
"Equal",
|
79 |
+
"Slice",
|
80 |
+
"Gather",
|
81 |
+
"Where",
|
82 |
+
"Erf",
|
83 |
+
"ReduceMean",
|
84 |
+
"Unsqueeze",
|
85 |
+
"Shape",
|
86 |
+
"Pow",
|
87 |
+
"Expand",
|
88 |
+
"Conv",
|
89 |
+
"Div"
|
90 |
+
],
|
91 |
+
"weight_type": "QUInt8"
|
92 |
+
},
|
93 |
+
"decoder_model_merged": {
|
94 |
+
"op_types": [
|
95 |
+
"Reshape",
|
96 |
+
"ConstantOfShape",
|
97 |
+
"Sub",
|
98 |
+
"Add",
|
99 |
+
"Range",
|
100 |
+
"Mul",
|
101 |
+
"Softmax",
|
102 |
+
"Gemm",
|
103 |
+
"Sqrt",
|
104 |
+
"Tanh",
|
105 |
+
"Transpose",
|
106 |
+
"If",
|
107 |
+
"Concat",
|
108 |
+
"MatMul",
|
109 |
+
"Constant",
|
110 |
+
"Slice",
|
111 |
+
"Squeeze",
|
112 |
+
"Gather",
|
113 |
+
"Where",
|
114 |
+
"Split",
|
115 |
+
"ReduceMean",
|
116 |
+
"Cast",
|
117 |
+
"Unsqueeze",
|
118 |
+
"Shape",
|
119 |
+
"Pow",
|
120 |
+
"Div"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
special_tokens_map.json
CHANGED
@@ -1,6 +1,30 @@
|
|
1 |
-
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<|endoftext|>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"eos_token": {
|
10 |
+
"content": "<|endoftext|>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"pad_token": {
|
17 |
+
"content": "<|endoftext|>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"unk_token": {
|
24 |
+
"content": "<|endoftext|>",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": true,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
}
|
30 |
+
}
|
tokenizer_config.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1 |
-
{
|
2 |
-
"add_prefix_space": false,
|
3 |
-
"added_tokens_decoder": {
|
4 |
-
"50256": {
|
5 |
-
"content": "<|endoftext|>",
|
6 |
-
"lstrip": false,
|
7 |
-
"normalized": true,
|
8 |
-
"rstrip": false,
|
9 |
-
"single_word": false,
|
10 |
-
"special": true
|
11 |
-
}
|
12 |
-
},
|
13 |
-
"bos_token": "<|endoftext|>",
|
14 |
-
"clean_up_tokenization_spaces": true,
|
15 |
-
"eos_token": "<|endoftext|>",
|
16 |
-
"model_max_length": 1024,
|
17 |
-
"pad_token": "<|endoftext|>",
|
18 |
-
"tokenizer_class": "GPT2Tokenizer",
|
19 |
-
"unk_token": "<|endoftext|>"
|
20 |
-
}
|
|
|
1 |
+
{
|
2 |
+
"add_prefix_space": false,
|
3 |
+
"added_tokens_decoder": {
|
4 |
+
"50256": {
|
5 |
+
"content": "<|endoftext|>",
|
6 |
+
"lstrip": false,
|
7 |
+
"normalized": true,
|
8 |
+
"rstrip": false,
|
9 |
+
"single_word": false,
|
10 |
+
"special": true
|
11 |
+
}
|
12 |
+
},
|
13 |
+
"bos_token": "<|endoftext|>",
|
14 |
+
"clean_up_tokenization_spaces": true,
|
15 |
+
"eos_token": "<|endoftext|>",
|
16 |
+
"model_max_length": 1024,
|
17 |
+
"pad_token": "<|endoftext|>",
|
18 |
+
"tokenizer_class": "GPT2Tokenizer",
|
19 |
+
"unk_token": "<|endoftext|>"
|
20 |
+
}
|