ldenoue commited on
Commit
1b50f20
·
1 Parent(s): f630422

Upload 16 files

Browse files
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sana-ngu/t5-small-finetuned-summarize-scientific-articles",
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
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
onnx/decoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c8d74e91bd9dbcc80435c607c298cc729c6f7940b0b7d71f553734218153ec79
3
+ size 166670419
onnx/decoder_model_merged.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0466b0590ef90b8a35110944fc4b85ef65ae007be704a494fd68f28296039078
3
+ size 166832597
onnx/decoder_model_merged_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc9b973964b5628ab2e74f72f99372af3d1fa44dbde1588af6e31fe4ff0477d4
3
+ size 42431407
onnx/decoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e03d0f80915ddfa8bcb2c26722dcb283f25d84aa70e1a71298f0e41bad2268f
3
+ size 42154655
onnx/decoder_with_past_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b575adb682333d1915c478c3f60b1b3c2d4d30bbe006d0493f2cb03642f2525a
3
+ size 154076559
onnx/decoder_with_past_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:932f54c2fb84f71ca048120dfdedea2b4f42f6dc13aedf127cd228b0cc868b2d
3
+ size 38952122
onnx/encoder_model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec73af18e347bbb53ae58e20afff6cfc1d710f550d3ed134c32e921e74a5102b
3
+ size 141404302
onnx/encoder_model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6ac87a380d93f717208962ac259e564a3dd7a503d6435c42c0345ee76da99fd
3
+ size 35640019
quantize_config.json ADDED
@@ -0,0 +1,139 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "per_channel": true,
3
+ "reduce_range": true,
4
+ "per_model_config": {
5
+ "decoder_with_past_model": {
6
+ "op_types": [
7
+ "Cast",
8
+ "Min",
9
+ "Gather",
10
+ "Where",
11
+ "Shape",
12
+ "Reshape",
13
+ "Range",
14
+ "Sqrt",
15
+ "LessOrEqual",
16
+ "Log",
17
+ "Expand",
18
+ "Div",
19
+ "Add",
20
+ "Slice",
21
+ "Unsqueeze",
22
+ "MatMul",
23
+ "ReduceMean",
24
+ "Relu",
25
+ "Softmax",
26
+ "Pow",
27
+ "Neg",
28
+ "Less",
29
+ "Constant",
30
+ "Tile",
31
+ "Mul",
32
+ "Transpose",
33
+ "Sub",
34
+ "ConstantOfShape",
35
+ "Concat"
36
+ ],
37
+ "weight_type": "QInt8"
38
+ },
39
+ "decoder_model": {
40
+ "op_types": [
41
+ "Cast",
42
+ "Min",
43
+ "Gather",
44
+ "Where",
45
+ "Shape",
46
+ "Reshape",
47
+ "Range",
48
+ "Sqrt",
49
+ "LessOrEqual",
50
+ "Log",
51
+ "Expand",
52
+ "Div",
53
+ "Add",
54
+ "Unsqueeze",
55
+ "MatMul",
56
+ "ReduceMean",
57
+ "Relu",
58
+ "Softmax",
59
+ "Pow",
60
+ "Neg",
61
+ "Less",
62
+ "Constant",
63
+ "Tile",
64
+ "Mul",
65
+ "Transpose",
66
+ "Sub",
67
+ "ConstantOfShape",
68
+ "Concat"
69
+ ],
70
+ "weight_type": "QInt8"
71
+ },
72
+ "encoder_model": {
73
+ "op_types": [
74
+ "Cast",
75
+ "Min",
76
+ "Gather",
77
+ "Where",
78
+ "Shape",
79
+ "Reshape",
80
+ "Range",
81
+ "Sqrt",
82
+ "Log",
83
+ "Greater",
84
+ "Div",
85
+ "Add",
86
+ "Unsqueeze",
87
+ "MatMul",
88
+ "Abs",
89
+ "ReduceMean",
90
+ "Relu",
91
+ "Softmax",
92
+ "Pow",
93
+ "Less",
94
+ "Constant",
95
+ "Mul",
96
+ "Transpose",
97
+ "Sub",
98
+ "ConstantOfShape",
99
+ "Concat"
100
+ ],
101
+ "weight_type": "QInt8"
102
+ },
103
+ "decoder_model_merged": {
104
+ "op_types": [
105
+ "Cast",
106
+ "Min",
107
+ "Gather",
108
+ "Where",
109
+ "Shape",
110
+ "Reshape",
111
+ "Range",
112
+ "Sqrt",
113
+ "LessOrEqual",
114
+ "Log",
115
+ "Expand",
116
+ "Div",
117
+ "Add",
118
+ "Slice",
119
+ "Unsqueeze",
120
+ "MatMul",
121
+ "ReduceMean",
122
+ "Relu",
123
+ "Softmax",
124
+ "Pow",
125
+ "Neg",
126
+ "Less",
127
+ "Constant",
128
+ "Tile",
129
+ "Mul",
130
+ "Transpose",
131
+ "Sub",
132
+ "If",
133
+ "ConstantOfShape",
134
+ "Concat"
135
+ ],
136
+ "weight_type": "QInt8"
137
+ }
138
+ }
139
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "clean_up_tokenization_spaces": true,
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "mask_token": "<mask>",
9
+ "model_max_length": 1024,
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "tokenizer_class": "BartTokenizer",
13
+ "trim_offsets": true,
14
+ "unk_token": "<unk>"
15
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff