Upload folder using huggingface_hub
Browse files- config.json +63 -0
- generation_config.json +9 -0
- merges.txt +0 -0
- 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 +15 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- vocab.json +0 -0
config.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "vblagoje/bart_lfqa",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
+
"activation_function": "gelu",
|
6 |
+
"add_bias_logits": false,
|
7 |
+
"add_final_layer_norm": false,
|
8 |
+
"architectures": [
|
9 |
+
"BartForConditionalGeneration"
|
10 |
+
],
|
11 |
+
"attention_dropout": 0.0,
|
12 |
+
"bos_token_id": 0,
|
13 |
+
"classif_dropout": 0.0,
|
14 |
+
"classifier_dropout": 0.0,
|
15 |
+
"d_model": 1024,
|
16 |
+
"decoder_attention_heads": 16,
|
17 |
+
"decoder_ffn_dim": 4096,
|
18 |
+
"decoder_layerdrop": 0.0,
|
19 |
+
"decoder_layers": 12,
|
20 |
+
"decoder_start_token_id": 2,
|
21 |
+
"dropout": 0.1,
|
22 |
+
"encoder_attention_heads": 16,
|
23 |
+
"encoder_ffn_dim": 4096,
|
24 |
+
"encoder_layerdrop": 0.0,
|
25 |
+
"encoder_layers": 12,
|
26 |
+
"eos_token_id": 2,
|
27 |
+
"forced_eos_token_id": 2,
|
28 |
+
"id2label": {
|
29 |
+
"0": "LABEL_0",
|
30 |
+
"1": "LABEL_1",
|
31 |
+
"2": "LABEL_2"
|
32 |
+
},
|
33 |
+
"init_std": 0.02,
|
34 |
+
"is_encoder_decoder": true,
|
35 |
+
"label2id": {
|
36 |
+
"LABEL_0": 0,
|
37 |
+
"LABEL_1": 1,
|
38 |
+
"LABEL_2": 2
|
39 |
+
},
|
40 |
+
"max_position_embeddings": 1024,
|
41 |
+
"model_type": "bart",
|
42 |
+
"normalize_before": false,
|
43 |
+
"normalize_embedding": true,
|
44 |
+
"num_hidden_layers": 12,
|
45 |
+
"output_past": false,
|
46 |
+
"pad_token_id": 1,
|
47 |
+
"prefix": " ",
|
48 |
+
"scale_embedding": false,
|
49 |
+
"static_position_embeddings": false,
|
50 |
+
"task_specific_params": {
|
51 |
+
"summarization": {
|
52 |
+
"early_stopping": true,
|
53 |
+
"length_penalty": 2.0,
|
54 |
+
"max_length": 142,
|
55 |
+
"min_length": 56,
|
56 |
+
"no_repeat_ngram_size": 3,
|
57 |
+
"num_beams": 4
|
58 |
+
}
|
59 |
+
},
|
60 |
+
"transformers_version": "4.33.2",
|
61 |
+
"use_cache": true,
|
62 |
+
"vocab_size": 50265
|
63 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 0,
|
4 |
+
"decoder_start_token_id": 2,
|
5 |
+
"eos_token_id": 2,
|
6 |
+
"forced_eos_token_id": 2,
|
7 |
+
"pad_token_id": 1,
|
8 |
+
"transformers_version": "4.33.2"
|
9 |
+
}
|
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:64506de577f5270cc62d4043e90363d206b4d85055c84810e24757616559a73c
|
3 |
+
size 1017137359
|
onnx/decoder_model_merged.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a82f66eff1a639c093ef3ff900e67437a4acc4888c2c19dce4f8f2d5864cda7
|
3 |
+
size 1017651574
|
onnx/decoder_model_merged_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd51b3af2cbdff9d1f0e8de85fb84b77138a0e6097ea2ee49627330a3f321e8d
|
3 |
+
size 257536382
|
onnx/decoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d49949d756d0325411afad0cb7a07e9685f033bb56b9ad19f4baa15f0281690f
|
3 |
+
size 256735888
|
onnx/decoder_with_past_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:54856402faf7472d14e52302edf9889ec4c0b0c08902a1335da6337f9085ead9
|
3 |
+
size 916285696
|
onnx/decoder_with_past_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e6cb5532e893076c49ccfa4fca5f10e8b813fd901fbf4abd83d8b03b63ee4ff2
|
3 |
+
size 231202581
|
onnx/encoder_model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9c593e4d0abb8f3cc593c3331e3b001f5f5bde39fe8e3ac4936973b7eb0acd0e
|
3 |
+
size 814966601
|
onnx/encoder_model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2953262e5e374ac848155d56f2d1e7b84e240852ed3574027fe492864d59a0d3
|
3 |
+
size 205128906
|
quantize_config.json
ADDED
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"decoder_with_past_model": {
|
6 |
+
"op_types": [
|
7 |
+
"Div",
|
8 |
+
"MatMul",
|
9 |
+
"Transpose",
|
10 |
+
"Constant",
|
11 |
+
"Unsqueeze",
|
12 |
+
"Softmax",
|
13 |
+
"Where",
|
14 |
+
"Sqrt",
|
15 |
+
"ReduceMean",
|
16 |
+
"Expand",
|
17 |
+
"Reshape",
|
18 |
+
"Erf",
|
19 |
+
"Concat",
|
20 |
+
"Gather",
|
21 |
+
"Equal",
|
22 |
+
"Sub",
|
23 |
+
"Cast",
|
24 |
+
"Range",
|
25 |
+
"Shape",
|
26 |
+
"Mul",
|
27 |
+
"Pow",
|
28 |
+
"Add",
|
29 |
+
"ConstantOfShape"
|
30 |
+
],
|
31 |
+
"weight_type": "QInt8"
|
32 |
+
},
|
33 |
+
"decoder_model": {
|
34 |
+
"op_types": [
|
35 |
+
"Div",
|
36 |
+
"MatMul",
|
37 |
+
"Transpose",
|
38 |
+
"Constant",
|
39 |
+
"Slice",
|
40 |
+
"Unsqueeze",
|
41 |
+
"Softmax",
|
42 |
+
"Where",
|
43 |
+
"ReduceMean",
|
44 |
+
"Sqrt",
|
45 |
+
"Less",
|
46 |
+
"Expand",
|
47 |
+
"Reshape",
|
48 |
+
"Erf",
|
49 |
+
"Concat",
|
50 |
+
"Squeeze",
|
51 |
+
"Gather",
|
52 |
+
"Equal",
|
53 |
+
"Sub",
|
54 |
+
"Cast",
|
55 |
+
"Range",
|
56 |
+
"Shape",
|
57 |
+
"Mul",
|
58 |
+
"Pow",
|
59 |
+
"Add",
|
60 |
+
"ConstantOfShape"
|
61 |
+
],
|
62 |
+
"weight_type": "QInt8"
|
63 |
+
},
|
64 |
+
"encoder_model": {
|
65 |
+
"op_types": [
|
66 |
+
"Div",
|
67 |
+
"MatMul",
|
68 |
+
"Transpose",
|
69 |
+
"Constant",
|
70 |
+
"Unsqueeze",
|
71 |
+
"Softmax",
|
72 |
+
"Where",
|
73 |
+
"Sqrt",
|
74 |
+
"ReduceMean",
|
75 |
+
"Expand",
|
76 |
+
"Reshape",
|
77 |
+
"Erf",
|
78 |
+
"Concat",
|
79 |
+
"Gather",
|
80 |
+
"Equal",
|
81 |
+
"Sub",
|
82 |
+
"Cast",
|
83 |
+
"Range",
|
84 |
+
"Shape",
|
85 |
+
"Mul",
|
86 |
+
"Pow",
|
87 |
+
"Add",
|
88 |
+
"ConstantOfShape"
|
89 |
+
],
|
90 |
+
"weight_type": "QInt8"
|
91 |
+
},
|
92 |
+
"decoder_model_merged": {
|
93 |
+
"op_types": [
|
94 |
+
"Div",
|
95 |
+
"MatMul",
|
96 |
+
"Transpose",
|
97 |
+
"Constant",
|
98 |
+
"Slice",
|
99 |
+
"Unsqueeze",
|
100 |
+
"Softmax",
|
101 |
+
"Where",
|
102 |
+
"ReduceMean",
|
103 |
+
"Sqrt",
|
104 |
+
"Less",
|
105 |
+
"Expand",
|
106 |
+
"Reshape",
|
107 |
+
"Erf",
|
108 |
+
"Concat",
|
109 |
+
"Squeeze",
|
110 |
+
"Gather",
|
111 |
+
"Equal",
|
112 |
+
"Sub",
|
113 |
+
"Cast",
|
114 |
+
"If",
|
115 |
+
"Range",
|
116 |
+
"Shape",
|
117 |
+
"Mul",
|
118 |
+
"Pow",
|
119 |
+
"Add",
|
120 |
+
"ConstantOfShape"
|
121 |
+
],
|
122 |
+
"weight_type": "QInt8"
|
123 |
+
}
|
124 |
+
}
|
125 |
+
}
|
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
|
|