hongst commited on
Commit
ab1e525
·
verified ·
1 Parent(s): c5d195e
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/kure_logo.png filter=lfs diff=lfs merge=lfs -text
37
+ assets/pps_performance_2col.png filter=lfs diff=lfs merge=lfs -text
38
+ assets/size_performance_2col.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-ranking
3
+ library_name: sentence-transformers
4
+ license: apache-2.0
5
+ language:
6
+ - ko
7
+ - en
8
+ base_model:
9
+ - skt/A.X-Encoder-base
10
+ tags:
11
+ - sentence-transformers
12
+ - cross-encoder
13
+ - reranker
14
+ - korean
15
+ - english
16
+ ---
17
+
18
+ <a href="https://github.com/nlpai-lab/KURE">
19
+ <img src="./assets/kure_logo.png" width="50%" alt="KURE logo">
20
+ </a>
21
+
22
+ # KURE-Reranker-nano
23
+
24
+ **KURE-Reranker-nano** is a lightweight, approximately **150M-parameter** cross-encoder for Korean reranking. It jointly encodes a query and a candidate document and predicts a scalar relevance score.
25
+
26
+ ## Key Characteristics
27
+
28
+ - **Strong Korean reranking:** 88.10 average nDCG@10 across nine Korean benchmarks, the highest average among the evaluated models with fewer than 2B parameters.
29
+ - **Lightweight:** Approximately 150M parameters, based on [`skt/A.X-Encoder-base`](https://huggingface.co/skt/A.X-Encoder-base).
30
+ - **High throughput:** 556.27 pairs per second averaged over eight benchmarks on an NVIDIA RTX A6000 48GB, the highest average in our comparison under the measurement conditions described below.
31
+ - **Long-input support:** Up to **8,192 tokens** for the combined query–document input.
32
+ - **Simple interface:** Compatible with Sentence Transformers `CrossEncoder` and Transformers `AutoModelForSequenceClassification`; no chat template or instruction prefix is required.
33
+
34
+ ## Performance and Efficiency
35
+
36
+ ### Reranking Performance vs. Throughput
37
+
38
+ <img src="./assets/pps_performance_2col.png" width="700" alt="Reranking Performance vs. Throughput">
39
+
40
+ ### Reranking Performance vs. Model Size
41
+
42
+ <img src="./assets/size_performance_2col.png" width="700" alt="Reranking Performance vs. Model Size">
43
+
44
+ Both figures report mean nDCG@10 across nine Korean benchmarks, including MLDR. Throughput is averaged over eight benchmarks, excluding MLDR. Model-specific input limits and the best measured batch size are used for throughput; these results do not measure equal-token-length speed or end-to-end retrieval latency.
45
+
46
+ ## Model Overview
47
+
48
+ | Property | Value |
49
+ |---|---|
50
+ | Model type | Cross-encoder reranker |
51
+ | Backbone | A.X-Encoder-base (ModernBERT) |
52
+ | Parameters | Approximately 150M |
53
+ | Languages | Korean and English |
54
+ | Maximum inference input length | 8,192 tokens, including query, document, and special tokens |
55
+ | Output | One scalar relevance score per query–document pair |
56
+ | License | Apache-2.0 |
57
+
58
+ ## Usage
59
+
60
+ Install the required libraries:
61
+
62
+ ```bash
63
+ pip install "sentence-transformers>=5.1.0" "transformers>=4.55.4" torch
64
+ ```
65
+
66
+ <details>
67
+ <summary>Sentence Transformers</summary>
68
+
69
+ ```python
70
+ from sentence_transformers import CrossEncoder
71
+
72
+ model = CrossEncoder("nlpai-lab/KURE-Reranker-nano", max_length=8192)
73
+
74
+ query = "대한민국의 수도는 어디인가요?"
75
+ documents = [
76
+ "대한민국의 수도는 서울입니다.",
77
+ "The capital of South Korea is Seoul.",
78
+ "바나나는 열대 지역에서 재배되는 과일입니다.",
79
+ ]
80
+
81
+ results = model.rank(query, documents, batch_size=8, return_documents=True)
82
+ for result in results:
83
+ print(f"{result['score']:.4f}\t{result['text']}")
84
+ ```
85
+
86
+ For pair scoring without sorting:
87
+
88
+ ```python
89
+ pairs = [(query, document) for document in documents]
90
+ scores = model.predict(pairs, batch_size=8)
91
+ ```
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary>Transformers</summary>
97
+
98
+ ```python
99
+ import torch
100
+ from transformers import AutoModelForSequenceClassification, AutoTokenizer
101
+
102
+ model_id = "nlpai-lab/KURE-Reranker-nano"
103
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
104
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
105
+ model = AutoModelForSequenceClassification.from_pretrained(model_id).to(device)
106
+ model.eval()
107
+
108
+ query = "대한민국의 수도는 어디인가요?"
109
+ documents = [
110
+ "대한민국의 수도는 서울입니다.",
111
+ "The capital of South Korea is Seoul.",
112
+ "바나나는 열대 지역에서 재배되는 과일입니다.",
113
+ ]
114
+ inputs = tokenizer(
115
+ [query] * len(documents), documents,
116
+ padding=True, truncation=True, max_length=8192, return_tensors="pt",
117
+ ).to(device)
118
+
119
+ with torch.inference_mode():
120
+ scores = model(**inputs).logits.squeeze(-1).float().cpu()
121
+
122
+ for index in torch.argsort(scores, descending=True).tolist():
123
+ print(f"{scores[index]:.4f}\t{documents[index]}")
124
+ ```
125
+
126
+ </details>
127
+
128
+ ## Korean Reranking Evaluation
129
+
130
+ Scores below are **nDCG@10**. Avg. is the mean across nine benchmarks; for Jina models, it covers the eight benchmarks excluding MLDR.
131
+
132
+ | Model | Params | Avg. | AutoRAG | Belebele | Ko-StrategyQA | LawIRKo | MIRACL | MrTidy | PublicHealthQA | SQuADKorV1 | MLDR |
133
+ |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|
134
+ | [Dongjin-kr/ko-reranker](https://huggingface.co/Dongjin-kr/ko-reranker) | 560M | 79.50 | 90.14 | 97.59 | 84.68 | 73.43 | 80.17 | 77.73 | 76.75 | 97.85 | 37.21 |
135
+ | [BAAI/bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3) | 568M | 85.86 | 96.63 | 98.53 | 84.87 | 79.06 | 81.30 | 82.22 | 84.75 | 98.53 | 66.90 |
136
+ | [dragonkue/bge-reranker-v2-m3-ko](https://huggingface.co/dragonkue/bge-reranker-v2-m3-ko) | 568M | 82.63 | 96.84 | 97.69 | 82.32 | 67.21 | 75.73 | 67.76 | 87.08 | 98.46 | 70.61 |
137
+ | [nlpai-lab/LAMAR-600m](https://huggingface.co/nlpai-lab/LAMAR-600m) | 568M | 84.06 | 95.91 | 98.35 | 84.61 | 78.22 | 82.14 | 79.75 | 82.25 | 98.50 | 56.79 |
138
+ | [upskyy/ko-reranker-8k](https://huggingface.co/upskyy/ko-reranker-8k) | 568M | 80.85 | 92.30 | 92.91 | 81.43 | 77.70 | 72.49 | 69.98 | 83.88 | 97.18 | 59.75 |
139
+ | [telepix/PIXIE-Spell-Reranker-Preview-0.6B](https://huggingface.co/telepix/PIXIE-Spell-Reranker-Preview-0.6B) | 596M | 78.06 | 97.94 | 97.77 | 83.29 | 60.42 | 84.49 | 76.50 | 85.34 | 98.51 | 18.29 |
140
+ | [tomaarsen/Qwen3-Reranker-0.6B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-0.6B-seq-cls) | 596M | 85.85 | 93.08 | 97.79 | 83.36 | 78.67 | 85.07 | 73.59 | 84.89 | 98.08 | 78.13 |
141
+ | [jinaai/jina-reranker-v3](https://huggingface.co/jinaai/jina-reranker-v3) | 597M | 88.67 | 97.73 | 96.95 | 85.53 | 85.46 | 84.49 | 81.04 | 79.60 | 98.59 | - |
142
+ | [jinaai/jina-reranker-v3.5](https://huggingface.co/jinaai/jina-reranker-v3.5) | 597M | 89.24 | 98.38 | 97.33 | 85.39 | 85.45 | 85.65 | 81.94 | 80.94 | 98.87 | - |
143
+ | [cross-encoder/ettin-reranker-1b-v1](https://huggingface.co/cross-encoder/ettin-reranker-1b-v1) | 1.03B | 69.01 | 89.01 | 69.14 | 66.24 | 53.06 | 70.04 | 66.59 | 74.61 | 95.90 | 36.51 |
144
+ | [nvidia/llama-nemotron-rerank-1b-v2](https://huggingface.co/nvidia/llama-nemotron-rerank-1b-v2) | 1.24B | 85.22 | 94.80 | 98.83 | 85.36 | 75.27 | 81.82 | 80.26 | 84.91 | 98.58 | 67.19 |
145
+ | [mixedbread-ai/mxbai-rerank-large-v2](https://huggingface.co/mixedbread-ai/mxbai-rerank-large-v2) | 1.54B | 86.61 | 95.31 | 97.78 | 85.63 | 81.30 | 79.39 | 87.71 | 87.72 | 96.81 | 67.87 |
146
+ | [BAAI/bge-reranker-v2-gemma](https://huggingface.co/BAAI/bge-reranker-v2-gemma) | 2.51B | 81.86 | 94.07 | 98.57 | 86.14 | 75.72 | 83.62 | 84.30 | 86.98 | 98.58 | 28.81 |
147
+ | [tomaarsen/Qwen3-Reranker-4B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-4B-seq-cls) | 4.02B | 89.56 | 97.07 | 99.06 | 87.34 | 87.52 | 85.33 | 83.21 | 86.85 | 98.61 | 81.05 |
148
+ | [zeroentropy/zerank-2-reranker](https://huggingface.co/zeroentropy/zerank-2-reranker) | 4.02B | 86.95 | 94.36 | 98.46 | 87.12 | 86.69 | 80.03 | 80.28 | 86.46 | 97.91 | 71.20 |
149
+ | [lightonai/LightOn-rerank-PW-4B](https://huggingface.co/lightonai/LightOn-rerank-PW-4B) | 4.54B | 86.64 | 93.21 | 98.82 | 85.67 | 79.38 | 80.72 | 80.91 | 86.93 | 98.03 | 76.09 |
150
+ | [tomaarsen/Qwen3-Reranker-8B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-8B-seq-cls) | 7.57B | 90.04 | 95.46 | 99.07 | 86.79 | 90.14 | 84.90 | 84.09 | 88.93 | 98.80 | 82.20 |
151
+ | **KURE-Reranker-nano (Ours)** | **150M** | **88.10** | **97.41** | **98.36** | **85.83** | **83.76** | **84.03** | **79.99** | **84.80** | **98.89** | **79.78** |
152
+
153
+ Evaluation was conducted using the [reranker-simple-benchmark](https://github.com/instructkr/reranker-simple-benchmark) implementation as a reference.
154
+
155
+ ### Throughput Measurement
156
+
157
+ All values below are query–document pairs per second (PPS), measured on an **NVIDIA RTX A6000 48GB**. **Avg.** is the mean across the eight benchmarks excluding MLDR, consistent with the throughput figure. A dash indicates an unavailable result.
158
+
159
+ | Model | Params | Avg. | AutoRAG | Belebele | Ko-StrategyQA | LawIRKo | MIRACL | MrTidy | PublicHealthQA | SQuADKorV1 | MLDR |
160
+ |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:|
161
+ | [Dongjin-kr/ko-reranker](https://huggingface.co/Dongjin-kr/ko-reranker) | 560M | 515.75 | 257.01 | 588.33 | 529.64 | 374.35 | 581.32 | 874.49 | 580.25 | 340.64 | 275.72 |
162
+ | [BAAI/bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3) | 568M | 475.95 | 186.91 | 579.30 | 465.43 | 344.89 | 574.27 | 866.95 | 536.56 | 253.32 | 6.19 |
163
+ | [dragonkue/bge-reranker-v2-m3-ko](https://huggingface.co/dragonkue/bge-reranker-v2-m3-ko) | 568M | 478.31 | 187.36 | 585.02 | 463.31 | 346.01 | 578.90 | 867.13 | 539.52 | 259.26 | 6.22 |
164
+ | [nlpai-lab/LAMAR-600m](https://huggingface.co/nlpai-lab/LAMAR-600m) | 568M | 476.02 | 186.57 | 582.46 | 461.96 | 343.70 | 572.61 | 864.50 | 532.43 | 263.95 | 6.17 |
165
+ | [upskyy/ko-reranker-8k](https://huggingface.co/upskyy/ko-reranker-8k) | 568M | 476.84 | 186.33 | 580.86 | 459.79 | 347.13 | 574.64 | 863.76 | 535.56 | 266.62 | 6.19 |
166
+ | [telepix/PIXIE-Spell-Reranker-Preview-0.6B](https://huggingface.co/telepix/PIXIE-Spell-Reranker-Preview-0.6B) | 596M | 137.75 | 46.27 | 174.48 | 128.89 | 90.66 | 174.83 | 263.52 | 147.65 | 75.72 | — |
167
+ | [tomaarsen/Qwen3-Reranker-0.6B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-0.6B-seq-cls) | 596M | 136.86 | 45.94 | 173.73 | 128.03 | 90.13 | 173.63 | 261.11 | 146.76 | 75.51 | — |
168
+ | [cross-encoder/ettin-reranker-1b-v1](https://huggingface.co/cross-encoder/ettin-reranker-1b-v1) | 1.03B | 52.14 | 15.59 | 66.91 | 51.93 | 29.87 | 67.50 | 107.49 | 50.87 | 26.98 | 2.04 |
169
+ | [nvidia/llama-nemotron-rerank-1b-v2](https://huggingface.co/nvidia/llama-nemotron-rerank-1b-v2) | 1.24B | 146.06 | 51.00 | 175.62 | 141.54 | 93.02 | 187.95 | 278.57 | 156.71 | 84.03 | 8.44 |
170
+ | [mixedbread-ai/mxbai-rerank-large-v2](https://huggingface.co/mixedbread-ai/mxbai-rerank-large-v2) | 1.54B | 70.85 | 29.72 | 87.09 | 71.37 | 52.20 | 87.28 | 116.79 | 76.81 | 45.52 | 0.54 |
171
+ | [BAAI/bge-reranker-v2-gemma](https://huggingface.co/BAAI/bge-reranker-v2-gemma) | 2.51B | 74.02 | 24.63 | 89.72 | 73.49 | 45.96 | 95.71 | 142.98 | 77.31 | 42.36 | 2.19 |
172
+ | [tomaarsen/Qwen3-Reranker-4B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-4B-seq-cls) | 4.02B | 26.16 | 10.55 | 32.03 | 25.78 | 18.84 | 32.79 | 44.63 | 28.23 | 16.43 | — |
173
+ | [zeroentropy/zerank-2-reranker](https://huggingface.co/zeroentropy/zerank-2-reranker) | 4.02B | 31.97 | 11.34 | 39.87 | 30.26 | 21.21 | 40.80 | 59.88 | 34.10 | 18.29 | — |
174
+ | [lightonai/LightOn-rerank-PW-4B](https://huggingface.co/lightonai/LightOn-rerank-PW-4B) | 4.54B | 16.83 | 7.04 | 20.13 | 16.88 | 12.59 | 20.34 | 27.12 | 19.52 | 11.02 | — |
175
+ | [tomaarsen/Qwen3-Reranker-8B-seq-cls](https://huggingface.co/tomaarsen/Qwen3-Reranker-8B-seq-cls) | 7.57B | 16.39 | 6.77 | 20.18 | 16.04 | 11.82 | 20.54 | 27.65 | 17.71 | 10.37 | — |
176
+ | **KURE-Reranker-nano (Ours)** | **150M** | **556.27** | **220.72** | **622.40** | **549.07** | **385.23** | **675.43** | **1044.32** | **621.59** | **331.43** | **6.80** |
177
+
178
+ Throughput is measured on a single NVIDIA RTX A6000 48GB per model. For each benchmark, up to ten queries with exactly fifty candidates are sampled with seed 42; MIRACL contributes five eligible queries. The same samples are used across models. Inputs are length-sorted and dynamically padded within each batch.
179
+
180
+ Batch size starts at 8 and doubles until an out-of-memory error. Samples are repeated to fill complete batches. After warmup, three full passes are timed with CUDA events. Throughput is the total number of processed pairs divided by the accumulated GPU forward time. The highest-throughput successful batch is reported. Tokenization, data loading, and CPU preprocessing are excluded. The batch-search approach is informed by the [Ettin reranker speed benchmark](https://huggingface.co/blog/ettin-reranker#speed); our aggregation uses total pairs divided by total time rather than the median of three throughput measurements.
181
+
182
+ ## Citation
183
+
184
+ ```bibtex
185
+ @misc{kure-reranker-nano,
186
+ title = {KURE-Reranker-nano: A Lightweight Korean–English Bilingual Reranking Model},
187
+ author = {Hong, Seongtae and Jang, Youngjoon and Son, Junyoung and Lee, Taemin and Lim, Heuiseok},
188
+ year = {2026},
189
+ url = {https://huggingface.co/nlpai-lab/KURE-Reranker-nano},
190
+ }
191
+ ```
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<pad>": 49999
3
+ }
assets/kure_logo.png ADDED

Git LFS Details

  • SHA256: 6323352feee84b8d2fcc0ba74b9761315e2eb96e7a424906ecca1ec4abf508ef
  • Pointer size: 131 Bytes
  • Size of remote file: 594 kB
assets/pps_performance_2col.png ADDED

Git LFS Details

  • SHA256: 35d3824a160a45460112171cd984b3bed7d51c82bb64fe3a90ab4c77dfb7df03
  • Pointer size: 131 Bytes
  • Size of remote file: 206 kB
assets/size_performance_2col.png ADDED

Git LFS Details

  • SHA256: e680c9aaa69fb1bba066c328c1f1701d4430ec04a2d7e168c68996c9472d737c
  • Pointer size: 131 Bytes
  • Size of remote file: 211 kB
config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 0,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 0,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 1,
17
+ "global_attn_every_n_layers": 3,
18
+ "global_rope_theta": 160000,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "LABEL_0"
24
+ },
25
+ "initializer_cutoff_factor": 2.0,
26
+ "initializer_range": 0.02,
27
+ "intermediate_size": 1152,
28
+ "label2id": {
29
+ "LABEL_0": 0
30
+ },
31
+ "layer_norm_eps": 1e-05,
32
+ "local_attention": 128,
33
+ "local_rope_theta": 10000.0,
34
+ "max_position_embeddings": 16384,
35
+ "mlp_bias": false,
36
+ "mlp_dropout": 0.0,
37
+ "model_type": "modernbert",
38
+ "norm_bias": false,
39
+ "norm_eps": 1e-05,
40
+ "num_attention_heads": 12,
41
+ "num_hidden_layers": 22,
42
+ "pad_token_id": 49999,
43
+ "position_embedding_type": "absolute",
44
+ "repad_logits_with_grad": false,
45
+ "sentence_transformers": {
46
+ "activation_fn": "torch.nn.modules.linear.Identity",
47
+ "version": "5.1.0"
48
+ },
49
+ "sep_token_id": 1,
50
+ "sparse_pred_ignore_index": -100,
51
+ "sparse_prediction": false,
52
+ "torch_dtype": "float32",
53
+ "transformers_version": "4.55.4",
54
+ "vocab_size": 50000
55
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41e752090da96fcab4813a9ba82259c31c6d28453c18189322ae63d5599a30c0
3
+ size 597306212
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<cls>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "<\\s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "<sep>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,322 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<\\s>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "<unk>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<sep>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "<mask>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "5": {
44
+ "content": "<cls>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "6": {
52
+ "content": "<unused0>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "7": {
60
+ "content": "<unused1>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "8": {
68
+ "content": "<unused2>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "9": {
76
+ "content": "<unused3>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "10": {
84
+ "content": "<unused4>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "11": {
92
+ "content": "<unused5>",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "12": {
100
+ "content": "<unused6>",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ },
107
+ "13": {
108
+ "content": "<unused7>",
109
+ "lstrip": false,
110
+ "normalized": false,
111
+ "rstrip": false,
112
+ "single_word": false,
113
+ "special": true
114
+ },
115
+ "14": {
116
+ "content": "<unused8>",
117
+ "lstrip": false,
118
+ "normalized": false,
119
+ "rstrip": false,
120
+ "single_word": false,
121
+ "special": true
122
+ },
123
+ "15": {
124
+ "content": "<unused9>",
125
+ "lstrip": false,
126
+ "normalized": false,
127
+ "rstrip": false,
128
+ "single_word": false,
129
+ "special": true
130
+ },
131
+ "16": {
132
+ "content": "<unused10>",
133
+ "lstrip": false,
134
+ "normalized": false,
135
+ "rstrip": false,
136
+ "single_word": false,
137
+ "special": true
138
+ },
139
+ "17": {
140
+ "content": "<unused11>",
141
+ "lstrip": false,
142
+ "normalized": false,
143
+ "rstrip": false,
144
+ "single_word": false,
145
+ "special": true
146
+ },
147
+ "18": {
148
+ "content": "<unused12>",
149
+ "lstrip": false,
150
+ "normalized": false,
151
+ "rstrip": false,
152
+ "single_word": false,
153
+ "special": true
154
+ },
155
+ "19": {
156
+ "content": "<unused13>",
157
+ "lstrip": false,
158
+ "normalized": false,
159
+ "rstrip": false,
160
+ "single_word": false,
161
+ "special": true
162
+ },
163
+ "20": {
164
+ "content": "<unused14>",
165
+ "lstrip": false,
166
+ "normalized": false,
167
+ "rstrip": false,
168
+ "single_word": false,
169
+ "special": true
170
+ },
171
+ "21": {
172
+ "content": "<unused15>",
173
+ "lstrip": false,
174
+ "normalized": false,
175
+ "rstrip": false,
176
+ "single_word": false,
177
+ "special": true
178
+ },
179
+ "22": {
180
+ "content": "<unused16>",
181
+ "lstrip": false,
182
+ "normalized": false,
183
+ "rstrip": false,
184
+ "single_word": false,
185
+ "special": true
186
+ },
187
+ "23": {
188
+ "content": "<unused17>",
189
+ "lstrip": false,
190
+ "normalized": false,
191
+ "rstrip": false,
192
+ "single_word": false,
193
+ "special": true
194
+ },
195
+ "24": {
196
+ "content": "<unused18>",
197
+ "lstrip": false,
198
+ "normalized": false,
199
+ "rstrip": false,
200
+ "single_word": false,
201
+ "special": true
202
+ },
203
+ "25": {
204
+ "content": "<unused19>",
205
+ "lstrip": false,
206
+ "normalized": false,
207
+ "rstrip": false,
208
+ "single_word": false,
209
+ "special": true
210
+ },
211
+ "26": {
212
+ "content": "<unused20>",
213
+ "lstrip": false,
214
+ "normalized": false,
215
+ "rstrip": false,
216
+ "single_word": false,
217
+ "special": true
218
+ },
219
+ "27": {
220
+ "content": "<unused21>",
221
+ "lstrip": false,
222
+ "normalized": false,
223
+ "rstrip": false,
224
+ "single_word": false,
225
+ "special": true
226
+ },
227
+ "28": {
228
+ "content": "<unused22>",
229
+ "lstrip": false,
230
+ "normalized": false,
231
+ "rstrip": false,
232
+ "single_word": false,
233
+ "special": true
234
+ },
235
+ "29": {
236
+ "content": "<unused23>",
237
+ "lstrip": false,
238
+ "normalized": false,
239
+ "rstrip": false,
240
+ "single_word": false,
241
+ "special": true
242
+ },
243
+ "30": {
244
+ "content": "<unused24>",
245
+ "lstrip": false,
246
+ "normalized": false,
247
+ "rstrip": false,
248
+ "single_word": false,
249
+ "special": true
250
+ },
251
+ "31": {
252
+ "content": "<unused25>",
253
+ "lstrip": false,
254
+ "normalized": false,
255
+ "rstrip": false,
256
+ "single_word": false,
257
+ "special": true
258
+ },
259
+ "32": {
260
+ "content": "<unused26>",
261
+ "lstrip": false,
262
+ "normalized": false,
263
+ "rstrip": false,
264
+ "single_word": false,
265
+ "special": true
266
+ },
267
+ "33": {
268
+ "content": "<unused27>",
269
+ "lstrip": false,
270
+ "normalized": false,
271
+ "rstrip": false,
272
+ "single_word": false,
273
+ "special": true
274
+ },
275
+ "34": {
276
+ "content": "<unused28>",
277
+ "lstrip": false,
278
+ "normalized": false,
279
+ "rstrip": false,
280
+ "single_word": false,
281
+ "special": true
282
+ },
283
+ "35": {
284
+ "content": "<unused29>",
285
+ "lstrip": false,
286
+ "normalized": false,
287
+ "rstrip": false,
288
+ "single_word": false,
289
+ "special": true
290
+ },
291
+ "36": {
292
+ "content": "<unused30>",
293
+ "lstrip": false,
294
+ "normalized": false,
295
+ "rstrip": false,
296
+ "single_word": false,
297
+ "special": true
298
+ },
299
+ "49999": {
300
+ "content": "<pad>",
301
+ "lstrip": false,
302
+ "normalized": false,
303
+ "rstrip": false,
304
+ "single_word": false,
305
+ "special": true
306
+ }
307
+ },
308
+ "bos_token": "<s>",
309
+ "clean_up_tokenization_spaces": true,
310
+ "cls_token": "<cls>",
311
+ "do_lower_case": false,
312
+ "eos_token": "<\\s>",
313
+ "extra_special_tokens": {},
314
+ "mask_token": "<mask>",
315
+ "model_max_length": 8192,
316
+ "pad_token": "<pad>",
317
+ "sep_token": "<sep>",
318
+ "strip_accents": null,
319
+ "tokenize_chinese_chars": true,
320
+ "tokenizer_class": "BertTokenizer",
321
+ "unk_token": "<unk>"
322
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff