youfengy commited on
Commit
a311edb
·
verified ·
1 Parent(s): 0d6cc2c

Upload 15 files

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "raw_model/t5-small-tagging-text",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "classifier_dropout": 0.0,
7
+ "d_ff": 2048,
8
+ "d_kv": 64,
9
+ "d_model": 512,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "relu",
12
+ "dropout_rate": 0.1,
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "relu",
15
+ "initializer_factor": 1.0,
16
+ "is_encoder_decoder": true,
17
+ "is_gated_act": false,
18
+ "layer_norm_epsilon": 1e-06,
19
+ "model_type": "t5",
20
+ "n_positions": 512,
21
+ "num_decoder_layers": 6,
22
+ "num_heads": 8,
23
+ "num_layers": 6,
24
+ "output_past": true,
25
+ "pad_token_id": 0,
26
+ "relative_attention_max_distance": 128,
27
+ "relative_attention_num_buckets": 32,
28
+ "task_specific_params": {
29
+ "summarization": {
30
+ "early_stopping": true,
31
+ "length_penalty": 2.0,
32
+ "max_length": 200,
33
+ "min_length": 30,
34
+ "no_repeat_ngram_size": 3,
35
+ "num_beams": 4,
36
+ "prefix": "summarize: "
37
+ },
38
+ "translation_en_to_de": {
39
+ "early_stopping": true,
40
+ "max_length": 300,
41
+ "num_beams": 4,
42
+ "prefix": "translate English to German: "
43
+ },
44
+ "translation_en_to_fr": {
45
+ "early_stopping": true,
46
+ "max_length": 300,
47
+ "num_beams": 4,
48
+ "prefix": "translate English to French: "
49
+ },
50
+ "translation_en_to_ro": {
51
+ "early_stopping": true,
52
+ "max_length": 300,
53
+ "num_beams": 4,
54
+ "prefix": "translate English to Romanian: "
55
+ }
56
+ },
57
+ "transformers_version": "4.33.2",
58
+ "use_cache": true,
59
+ "vocab_size": 32128
60
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.33.2"
7
+ }
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daeb50516b0dd0dcca27d51a2dbd3994b2fa34329770dab3ea6a9967e40c46a8
3
+ size 166670441
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0147c9c333da11491a4eb5af509d6dda051710f36cf934615dcc91bbbd836f4
3
+ size 166832634
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d44fb76857404743fdb86f5825dcd1d0da19093fb71fa460a9a86fd81cb966e
3
+ size 42431444
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:902bd602428b62abab61aba907912c5f9a53d90bcaebf86a724c5dfaf09e78a9
3
+ size 42154677
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1535960d7ad2bb4b81dc06ee19ee2c20fdeac9a7493748fdacf415ae540c2f27
3
+ size 154076576
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81ce46b4ba1010c6b4077b3021642b55d9c2e0db40a722fc9c02c7d6b11598cb
3
+ size 38952139
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20671e4daf0477902d941a948c61f0876a3d12fcbae001c3da68eb623742ff60
3
+ size 141404308
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b211050b72280f51a07193add131235a4ab33906e14717e14e2b76d202b14e12
3
+ size 35640025
quantize_config.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "decoder_model": {
6
+ "op_types": [
7
+ "Neg",
8
+ "Where",
9
+ "Relu",
10
+ "Range",
11
+ "LessOrEqual",
12
+ "Cast",
13
+ "Div",
14
+ "Reshape",
15
+ "Sub",
16
+ "Log",
17
+ "Transpose",
18
+ "Concat",
19
+ "Mul",
20
+ "Sqrt",
21
+ "Pow",
22
+ "Softmax",
23
+ "Shape",
24
+ "Min",
25
+ "Less",
26
+ "Unsqueeze",
27
+ "ConstantOfShape",
28
+ "MatMul",
29
+ "Tile",
30
+ "ReduceMean",
31
+ "Expand",
32
+ "Constant",
33
+ "Add",
34
+ "Gather"
35
+ ],
36
+ "weight_type": "QInt8"
37
+ },
38
+ "decoder_model_merged": {
39
+ "op_types": [
40
+ "Neg",
41
+ "Where",
42
+ "Relu",
43
+ "Range",
44
+ "LessOrEqual",
45
+ "Cast",
46
+ "Div",
47
+ "Reshape",
48
+ "Sub",
49
+ "Log",
50
+ "If",
51
+ "Slice",
52
+ "Transpose",
53
+ "Concat",
54
+ "Mul",
55
+ "Sqrt",
56
+ "Pow",
57
+ "Softmax",
58
+ "Shape",
59
+ "Min",
60
+ "Less",
61
+ "Unsqueeze",
62
+ "ConstantOfShape",
63
+ "MatMul",
64
+ "Tile",
65
+ "ReduceMean",
66
+ "Expand",
67
+ "Constant",
68
+ "Add",
69
+ "Gather"
70
+ ],
71
+ "weight_type": "QInt8"
72
+ },
73
+ "decoder_with_past_model": {
74
+ "op_types": [
75
+ "Neg",
76
+ "Where",
77
+ "Relu",
78
+ "Range",
79
+ "LessOrEqual",
80
+ "Cast",
81
+ "Div",
82
+ "Reshape",
83
+ "Sub",
84
+ "Log",
85
+ "Slice",
86
+ "Transpose",
87
+ "Concat",
88
+ "Mul",
89
+ "Sqrt",
90
+ "Pow",
91
+ "Softmax",
92
+ "Shape",
93
+ "Min",
94
+ "Less",
95
+ "Unsqueeze",
96
+ "ConstantOfShape",
97
+ "MatMul",
98
+ "Tile",
99
+ "ReduceMean",
100
+ "Expand",
101
+ "Constant",
102
+ "Add",
103
+ "Gather"
104
+ ],
105
+ "weight_type": "QInt8"
106
+ },
107
+ "encoder_model": {
108
+ "op_types": [
109
+ "Where",
110
+ "Relu",
111
+ "Range",
112
+ "Cast",
113
+ "Div",
114
+ "Reshape",
115
+ "Sub",
116
+ "Log",
117
+ "Transpose",
118
+ "Concat",
119
+ "Mul",
120
+ "Sqrt",
121
+ "Pow",
122
+ "Softmax",
123
+ "Shape",
124
+ "Min",
125
+ "Less",
126
+ "Unsqueeze",
127
+ "ConstantOfShape",
128
+ "MatMul",
129
+ "ReduceMean",
130
+ "Constant",
131
+ "Greater",
132
+ "Abs",
133
+ "Add",
134
+ "Gather"
135
+ ],
136
+ "weight_type": "QInt8"
137
+ }
138
+ }
139
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<extra_id_0>",
4
+ "<extra_id_1>",
5
+ "<extra_id_2>",
6
+ "<extra_id_3>",
7
+ "<extra_id_4>",
8
+ "<extra_id_5>",
9
+ "<extra_id_6>",
10
+ "<extra_id_7>",
11
+ "<extra_id_8>",
12
+ "<extra_id_9>",
13
+ "<extra_id_10>",
14
+ "<extra_id_11>",
15
+ "<extra_id_12>",
16
+ "<extra_id_13>",
17
+ "<extra_id_14>",
18
+ "<extra_id_15>",
19
+ "<extra_id_16>",
20
+ "<extra_id_17>",
21
+ "<extra_id_18>",
22
+ "<extra_id_19>",
23
+ "<extra_id_20>",
24
+ "<extra_id_21>",
25
+ "<extra_id_22>",
26
+ "<extra_id_23>",
27
+ "<extra_id_24>",
28
+ "<extra_id_25>",
29
+ "<extra_id_26>",
30
+ "<extra_id_27>",
31
+ "<extra_id_28>",
32
+ "<extra_id_29>",
33
+ "<extra_id_30>",
34
+ "<extra_id_31>",
35
+ "<extra_id_32>",
36
+ "<extra_id_33>",
37
+ "<extra_id_34>",
38
+ "<extra_id_35>",
39
+ "<extra_id_36>",
40
+ "<extra_id_37>",
41
+ "<extra_id_38>",
42
+ "<extra_id_39>",
43
+ "<extra_id_40>",
44
+ "<extra_id_41>",
45
+ "<extra_id_42>",
46
+ "<extra_id_43>",
47
+ "<extra_id_44>",
48
+ "<extra_id_45>",
49
+ "<extra_id_46>",
50
+ "<extra_id_47>",
51
+ "<extra_id_48>",
52
+ "<extra_id_49>",
53
+ "<extra_id_50>",
54
+ "<extra_id_51>",
55
+ "<extra_id_52>",
56
+ "<extra_id_53>",
57
+ "<extra_id_54>",
58
+ "<extra_id_55>",
59
+ "<extra_id_56>",
60
+ "<extra_id_57>",
61
+ "<extra_id_58>",
62
+ "<extra_id_59>",
63
+ "<extra_id_60>",
64
+ "<extra_id_61>",
65
+ "<extra_id_62>",
66
+ "<extra_id_63>",
67
+ "<extra_id_64>",
68
+ "<extra_id_65>",
69
+ "<extra_id_66>",
70
+ "<extra_id_67>",
71
+ "<extra_id_68>",
72
+ "<extra_id_69>",
73
+ "<extra_id_70>",
74
+ "<extra_id_71>",
75
+ "<extra_id_72>",
76
+ "<extra_id_73>",
77
+ "<extra_id_74>",
78
+ "<extra_id_75>",
79
+ "<extra_id_76>",
80
+ "<extra_id_77>",
81
+ "<extra_id_78>",
82
+ "<extra_id_79>",
83
+ "<extra_id_80>",
84
+ "<extra_id_81>",
85
+ "<extra_id_82>",
86
+ "<extra_id_83>",
87
+ "<extra_id_84>",
88
+ "<extra_id_85>",
89
+ "<extra_id_86>",
90
+ "<extra_id_87>",
91
+ "<extra_id_88>",
92
+ "<extra_id_89>",
93
+ "<extra_id_90>",
94
+ "<extra_id_91>",
95
+ "<extra_id_92>",
96
+ "<extra_id_93>",
97
+ "<extra_id_94>",
98
+ "<extra_id_95>",
99
+ "<extra_id_96>",
100
+ "<extra_id_97>",
101
+ "<extra_id_98>",
102
+ "<extra_id_99>"
103
+ ],
104
+ "eos_token": {
105
+ "content": "</s>",
106
+ "lstrip": false,
107
+ "normalized": false,
108
+ "rstrip": false,
109
+ "single_word": false
110
+ },
111
+ "pad_token": {
112
+ "content": "<pad>",
113
+ "lstrip": false,
114
+ "normalized": false,
115
+ "rstrip": false,
116
+ "single_word": false
117
+ },
118
+ "unk_token": {
119
+ "content": "<unk>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false
124
+ }
125
+ }
spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
3
+ size 791656
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,140 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<pad>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "</s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "additional_special_tokens": [
30
+ "<extra_id_0>",
31
+ "<extra_id_1>",
32
+ "<extra_id_2>",
33
+ "<extra_id_3>",
34
+ "<extra_id_4>",
35
+ "<extra_id_5>",
36
+ "<extra_id_6>",
37
+ "<extra_id_7>",
38
+ "<extra_id_8>",
39
+ "<extra_id_9>",
40
+ "<extra_id_10>",
41
+ "<extra_id_11>",
42
+ "<extra_id_12>",
43
+ "<extra_id_13>",
44
+ "<extra_id_14>",
45
+ "<extra_id_15>",
46
+ "<extra_id_16>",
47
+ "<extra_id_17>",
48
+ "<extra_id_18>",
49
+ "<extra_id_19>",
50
+ "<extra_id_20>",
51
+ "<extra_id_21>",
52
+ "<extra_id_22>",
53
+ "<extra_id_23>",
54
+ "<extra_id_24>",
55
+ "<extra_id_25>",
56
+ "<extra_id_26>",
57
+ "<extra_id_27>",
58
+ "<extra_id_28>",
59
+ "<extra_id_29>",
60
+ "<extra_id_30>",
61
+ "<extra_id_31>",
62
+ "<extra_id_32>",
63
+ "<extra_id_33>",
64
+ "<extra_id_34>",
65
+ "<extra_id_35>",
66
+ "<extra_id_36>",
67
+ "<extra_id_37>",
68
+ "<extra_id_38>",
69
+ "<extra_id_39>",
70
+ "<extra_id_40>",
71
+ "<extra_id_41>",
72
+ "<extra_id_42>",
73
+ "<extra_id_43>",
74
+ "<extra_id_44>",
75
+ "<extra_id_45>",
76
+ "<extra_id_46>",
77
+ "<extra_id_47>",
78
+ "<extra_id_48>",
79
+ "<extra_id_49>",
80
+ "<extra_id_50>",
81
+ "<extra_id_51>",
82
+ "<extra_id_52>",
83
+ "<extra_id_53>",
84
+ "<extra_id_54>",
85
+ "<extra_id_55>",
86
+ "<extra_id_56>",
87
+ "<extra_id_57>",
88
+ "<extra_id_58>",
89
+ "<extra_id_59>",
90
+ "<extra_id_60>",
91
+ "<extra_id_61>",
92
+ "<extra_id_62>",
93
+ "<extra_id_63>",
94
+ "<extra_id_64>",
95
+ "<extra_id_65>",
96
+ "<extra_id_66>",
97
+ "<extra_id_67>",
98
+ "<extra_id_68>",
99
+ "<extra_id_69>",
100
+ "<extra_id_70>",
101
+ "<extra_id_71>",
102
+ "<extra_id_72>",
103
+ "<extra_id_73>",
104
+ "<extra_id_74>",
105
+ "<extra_id_75>",
106
+ "<extra_id_76>",
107
+ "<extra_id_77>",
108
+ "<extra_id_78>",
109
+ "<extra_id_79>",
110
+ "<extra_id_80>",
111
+ "<extra_id_81>",
112
+ "<extra_id_82>",
113
+ "<extra_id_83>",
114
+ "<extra_id_84>",
115
+ "<extra_id_85>",
116
+ "<extra_id_86>",
117
+ "<extra_id_87>",
118
+ "<extra_id_88>",
119
+ "<extra_id_89>",
120
+ "<extra_id_90>",
121
+ "<extra_id_91>",
122
+ "<extra_id_92>",
123
+ "<extra_id_93>",
124
+ "<extra_id_94>",
125
+ "<extra_id_95>",
126
+ "<extra_id_96>",
127
+ "<extra_id_97>",
128
+ "<extra_id_98>",
129
+ "<extra_id_99>"
130
+ ],
131
+ "clean_up_tokenization_spaces": true,
132
+ "eos_token": "</s>",
133
+ "extra_ids": 100,
134
+ "legacy": true,
135
+ "model_max_length": 512,
136
+ "pad_token": "<pad>",
137
+ "sp_model_kwargs": {},
138
+ "tokenizer_class": "T5Tokenizer",
139
+ "unk_token": "<unk>"
140
+ }