davidkim205 commited on
Commit
331158f
·
verified ·
1 Parent(s): 10f4e9a

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": false
10
+ }
README.md ADDED
@@ -0,0 +1,417 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:574389
9
+ - loss:MultipleNegativesRankingLoss
10
+ - loss:CosineSimilarityLoss
11
+ base_model: klue/roberta-base
12
+ widget:
13
+ - source_sentence: 이슬람 국가, 인질 참수 비디오
14
+ sentences:
15
+ - 이슬람 국가, 영국 인질 2차 선전 비디오 게시
16
+ - 보라섹을 골로 삼아라.
17
+ - 우리가 모두 많은 불가사의로 가득 찬 그릇이라고 말하세요.
18
+ - source_sentence: 사람이 양파를 썰고 있다.
19
+ sentences:
20
+ - 햄스터가 노래하고 있다.
21
+ - 이스라엘, 새 정착민 주택 계획 공개
22
+ - 소킨은 음모 혐의로, 대배심에게 거짓말을 한 혐의로 별도로 재판을 받아야 했다.
23
+ - source_sentence: 빨간 셔츠를 입은 남자가 뒷주머니를 들여다보고 있다
24
+ sentences:
25
+ - 헤드폰을 쓴 여성은 메모지에 글을 쓰면서 커피를 즐긴다.
26
+ - 녹색 셔츠를 입은 남자가 앞주머니를 보고 있다.
27
+ - 남자가 뒷주머니를 보고 있다.
28
+ - source_sentence: 그들은 많은 사람들이다.
29
+ sentences:
30
+ - 사람들이 질식하고 있다.
31
+ - 파란 드레스를 입은 여자가 손에 고블렛을 들고 카메라 밖에서 손을 뻗는다.
32
+ - 군대를 귀국시키기 위해 항의하는 군중의 중간 사격.
33
+ - source_sentence: 한 젊은 치어리더가 경기 중에 그녀의 팀과 함께 공연을 하고 있다.
34
+ sentences:
35
+ - 문서 감축법에서 요구하는 정보의 필요성은 서문에서 찾을 수 있다.
36
+ - 치어리더들이 하고 있는 경기는 끝났다.
37
+ - 치어리더 그룹이 공연을 하고 있다.
38
+ pipeline_tag: sentence-similarity
39
+ library_name: sentence-transformers
40
+ metrics:
41
+ - pearson_cosine
42
+ - spearman_cosine
43
+ model-index:
44
+ - name: SentenceTransformer based on klue/roberta-base
45
+ results:
46
+ - task:
47
+ type: semantic-similarity
48
+ name: Semantic Similarity
49
+ dataset:
50
+ name: sts dev
51
+ type: sts-dev
52
+ metrics:
53
+ - type: pearson_cosine
54
+ value: 0.8574470760699765
55
+ name: Pearson Cosine
56
+ - type: spearman_cosine
57
+ value: 0.8573610558316641
58
+ name: Spearman Cosine
59
+ ---
60
+
61
+ # SentenceTransformer based on klue/roberta-base
62
+
63
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [klue/roberta-base](https://huggingface.co/klue/roberta-base). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
64
+
65
+ ## Model Details
66
+
67
+ ### Model Description
68
+ - **Model Type:** Sentence Transformer
69
+ - **Base model:** [klue/roberta-base](https://huggingface.co/klue/roberta-base) <!-- at revision 02f94ba5e3fcb7e2a58a390b8639b0fac974a8da -->
70
+ - **Maximum Sequence Length:** 128 tokens
71
+ - **Output Dimensionality:** 768 dimensions
72
+ - **Similarity Function:** Cosine Similarity
73
+ <!-- - **Training Dataset:** Unknown -->
74
+ <!-- - **Language:** Unknown -->
75
+ <!-- - **License:** Unknown -->
76
+
77
+ ### Model Sources
78
+
79
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
80
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
81
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
82
+
83
+ ### Full Model Architecture
84
+
85
+ ```
86
+ SentenceTransformer(
87
+ (0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'RobertaModel'})
88
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': False})
89
+ )
90
+ ```
91
+
92
+ ## Usage
93
+
94
+ ### Direct Usage (Sentence Transformers)
95
+
96
+ First install the Sentence Transformers library:
97
+
98
+ ```bash
99
+ pip install -U sentence-transformers
100
+ ```
101
+
102
+ Then you can load this model and run inference.
103
+ ```python
104
+ from sentence_transformers import SentenceTransformer
105
+
106
+ # Download from the 🤗 Hub
107
+ model = SentenceTransformer("twodigit/rt-128-02")
108
+ # Run inference
109
+ sentences = [
110
+ '한 젊은 치어리더가 경기 중에 그녀의 팀과 함께 공연을 하고 있다.',
111
+ '치어리더 그룹이 공연을 하고 있다.',
112
+ '치어리더들이 하고 있는 경기는 끝났다.',
113
+ ]
114
+ embeddings = model.encode(sentences)
115
+ print(embeddings.shape)
116
+ # [3, 768]
117
+
118
+ # Get the similarity scores for the embeddings
119
+ similarities = model.similarity(embeddings, embeddings)
120
+ print(similarities)
121
+ # tensor([[1.0000, 0.8456, 0.6418],
122
+ # [0.8456, 1.0000, 0.6590],
123
+ # [0.6418, 0.6590, 1.0000]])
124
+ ```
125
+
126
+ <!--
127
+ ### Direct Usage (Transformers)
128
+
129
+ <details><summary>Click to see the direct usage in Transformers</summary>
130
+
131
+ </details>
132
+ -->
133
+
134
+ <!--
135
+ ### Downstream Usage (Sentence Transformers)
136
+
137
+ You can finetune this model on your own dataset.
138
+
139
+ <details><summary>Click to expand</summary>
140
+
141
+ </details>
142
+ -->
143
+
144
+ <!--
145
+ ### Out-of-Scope Use
146
+
147
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
148
+ -->
149
+
150
+ ## Evaluation
151
+
152
+ ### Metrics
153
+
154
+ #### Semantic Similarity
155
+
156
+ * Dataset: `sts-dev`
157
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
158
+
159
+ | Metric | Value |
160
+ |:--------------------|:-----------|
161
+ | pearson_cosine | 0.8574 |
162
+ | **spearman_cosine** | **0.8574** |
163
+
164
+ <!--
165
+ ## Bias, Risks and Limitations
166
+
167
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
168
+ -->
169
+
170
+ <!--
171
+ ### Recommendations
172
+
173
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
174
+ -->
175
+
176
+ ## Training Details
177
+
178
+ ### Training Datasets
179
+
180
+ #### Unnamed Dataset
181
+
182
+ * Size: 568,640 training samples
183
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
184
+ * Approximate statistics based on the first 1000 samples:
185
+ | | sentence_0 | sentence_1 | sentence_2 |
186
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
187
+ | type | string | string | string |
188
+ | details | <ul><li>min: 3 tokens</li><li>mean: 18.69 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 19.26 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 14.62 tokens</li><li>max: 49 tokens</li></ul> |
189
+ * Samples:
190
+ | sentence_0 | sentence_1 | sentence_2 |
191
+ |:--------------------------------------|:-------------------------------------------------------|:------------------------------------|
192
+ | <code>산 마테오 교회는 회색과 흰색이 섞여 있다.</code> | <code>산 마테오의 로마네스크-고딕 교회는 같은 회색과 흰색의 면을 가지고 있다.</code> | <code>산마테오 교회는 노랗고 푸른 면이 같다.</code> |
193
+ | <code>한 병사가 걸으면서 큰 총을 들고 있다.</code> | <code>뭔가를 들고 있는 사람</code> | <code>아무도 걷지 않는다.</code> |
194
+ | <code>동물들은 들판에서 논다.</code> | <code>두 마리의 강아지가 들판에서 빨간 씹는 장난감을 가지고 논다.</code> | <code>강아지들은 들판에서 뼈를 가지고 논다.</code> |
195
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
196
+ ```json
197
+ {
198
+ "scale": 20.0,
199
+ "similarity_fct": "cos_sim"
200
+ }
201
+ ```
202
+
203
+ #### Unnamed Dataset
204
+
205
+ * Size: 5,749 training samples
206
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
207
+ * Approximate statistics based on the first 1000 samples:
208
+ | | sentence_0 | sentence_1 | label |
209
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
210
+ | type | string | string | float |
211
+ | details | <ul><li>min: 3 tokens</li><li>mean: 17.58 tokens</li><li>max: 66 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 17.41 tokens</li><li>max: 59 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.52</li><li>max: 1.0</li></ul> |
212
+ * Samples:
213
+ | sentence_0 | sentence_1 | label |
214
+ |:---------------------------------------|:--------------------------------------------------|:--------------------------------|
215
+ | <code>이스라엘, 팔레스타인 죄수 석방</code> | <code>Gov 'T ���원회는 26명의 팔레스타인 수감자 석방을 승인한다.</code> | <code>0.6799999999999999</code> |
216
+ | <code>중국 남부 도로 사고로 7명 사망, 3명 부상</code> | <code>필리핀 도로 사고로 20명 사망, 44명 부상</code> | <code>0.12</code> |
217
+ | <code>이란의 새로운 제재 없이 마감 기한이 지났다</code> | <code>EU는 새로운 이란 제재에 더 가까이 다가간다.</code> | <code>0.32</code> |
218
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
219
+ ```json
220
+ {
221
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
222
+ }
223
+ ```
224
+
225
+ ### Training Hyperparameters
226
+ #### Non-Default Hyperparameters
227
+
228
+ - `eval_strategy`: steps
229
+ - `batch_sampler`: no_duplicates
230
+ - `multi_dataset_batch_sampler`: round_robin
231
+
232
+ #### All Hyperparameters
233
+ <details><summary>Click to expand</summary>
234
+
235
+ - `overwrite_output_dir`: False
236
+ - `do_predict`: False
237
+ - `eval_strategy`: steps
238
+ - `prediction_loss_only`: True
239
+ - `per_device_train_batch_size`: 8
240
+ - `per_device_eval_batch_size`: 8
241
+ - `per_gpu_train_batch_size`: None
242
+ - `per_gpu_eval_batch_size`: None
243
+ - `gradient_accumulation_steps`: 1
244
+ - `eval_accumulation_steps`: None
245
+ - `torch_empty_cache_steps`: None
246
+ - `learning_rate`: 5e-05
247
+ - `weight_decay`: 0.0
248
+ - `adam_beta1`: 0.9
249
+ - `adam_beta2`: 0.999
250
+ - `adam_epsilon`: 1e-08
251
+ - `max_grad_norm`: 1
252
+ - `num_train_epochs`: 3
253
+ - `max_steps`: -1
254
+ - `lr_scheduler_type`: linear
255
+ - `lr_scheduler_kwargs`: {}
256
+ - `warmup_ratio`: 0.0
257
+ - `warmup_steps`: 0
258
+ - `log_level`: passive
259
+ - `log_level_replica`: warning
260
+ - `log_on_each_node`: True
261
+ - `logging_nan_inf_filter`: True
262
+ - `save_safetensors`: True
263
+ - `save_on_each_node`: False
264
+ - `save_only_model`: False
265
+ - `restore_callback_states_from_checkpoint`: False
266
+ - `no_cuda`: False
267
+ - `use_cpu`: False
268
+ - `use_mps_device`: False
269
+ - `seed`: 42
270
+ - `data_seed`: None
271
+ - `jit_mode_eval`: False
272
+ - `use_ipex`: False
273
+ - `bf16`: False
274
+ - `fp16`: False
275
+ - `fp16_opt_level`: O1
276
+ - `half_precision_backend`: auto
277
+ - `bf16_full_eval`: False
278
+ - `fp16_full_eval`: False
279
+ - `tf32`: None
280
+ - `local_rank`: 0
281
+ - `ddp_backend`: None
282
+ - `tpu_num_cores`: None
283
+ - `tpu_metrics_debug`: False
284
+ - `debug`: []
285
+ - `dataloader_drop_last`: False
286
+ - `dataloader_num_workers`: 0
287
+ - `dataloader_prefetch_factor`: None
288
+ - `past_index`: -1
289
+ - `disable_tqdm`: False
290
+ - `remove_unused_columns`: True
291
+ - `label_names`: None
292
+ - `load_best_model_at_end`: False
293
+ - `ignore_data_skip`: False
294
+ - `fsdp`: []
295
+ - `fsdp_min_num_params`: 0
296
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
297
+ - `fsdp_transformer_layer_cls_to_wrap`: None
298
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
299
+ - `deepspeed`: None
300
+ - `label_smoothing_factor`: 0.0
301
+ - `optim`: adamw_torch
302
+ - `optim_args`: None
303
+ - `adafactor`: False
304
+ - `group_by_length`: False
305
+ - `length_column_name`: length
306
+ - `ddp_find_unused_parameters`: None
307
+ - `ddp_bucket_cap_mb`: None
308
+ - `ddp_broadcast_buffers`: False
309
+ - `dataloader_pin_memory`: True
310
+ - `dataloader_persistent_workers`: False
311
+ - `skip_memory_metrics`: True
312
+ - `use_legacy_prediction_loop`: False
313
+ - `push_to_hub`: False
314
+ - `resume_from_checkpoint`: None
315
+ - `hub_model_id`: None
316
+ - `hub_strategy`: every_save
317
+ - `hub_private_repo`: None
318
+ - `hub_always_push`: False
319
+ - `hub_revision`: None
320
+ - `gradient_checkpointing`: False
321
+ - `gradient_checkpointing_kwargs`: None
322
+ - `include_inputs_for_metrics`: False
323
+ - `include_for_metrics`: []
324
+ - `eval_do_concat_batches`: True
325
+ - `fp16_backend`: auto
326
+ - `push_to_hub_model_id`: None
327
+ - `push_to_hub_organization`: None
328
+ - `mp_parameters`:
329
+ - `auto_find_batch_size`: False
330
+ - `full_determinism`: False
331
+ - `torchdynamo`: None
332
+ - `ray_scope`: last
333
+ - `ddp_timeout`: 1800
334
+ - `torch_compile`: False
335
+ - `torch_compile_backend`: None
336
+ - `torch_compile_mode`: None
337
+ - `include_tokens_per_second`: False
338
+ - `include_num_input_tokens_seen`: False
339
+ - `neftune_noise_alpha`: None
340
+ - `optim_target_modules`: None
341
+ - `batch_eval_metrics`: False
342
+ - `eval_on_start`: False
343
+ - `use_liger_kernel`: False
344
+ - `liger_kernel_config`: None
345
+ - `eval_use_gather_object`: False
346
+ - `average_tokens_across_devices`: False
347
+ - `prompts`: None
348
+ - `batch_sampler`: no_duplicates
349
+ - `multi_dataset_batch_sampler`: round_robin
350
+ - `router_mapping`: {}
351
+ - `learning_rate_mapping`: {}
352
+
353
+ </details>
354
+
355
+ ### Training Logs
356
+ | Epoch | Step | Training Loss | sts-dev_spearman_cosine |
357
+ |:------:|:----:|:-------------:|:-----------------------:|
358
+ | 0.3477 | 500 | 0.4175 | - |
359
+ | 0.6954 | 1000 | 0.3015 | 0.8491 |
360
+ | 1.0 | 1438 | - | 0.8574 |
361
+
362
+
363
+ ### Framework Versions
364
+ - Python: 3.11.13
365
+ - Sentence Transformers: 5.0.0
366
+ - Transformers: 4.54.1
367
+ - PyTorch: 2.7.1+cu126
368
+ - Accelerate: 1.9.0
369
+ - Datasets: 3.6.0
370
+ - Tokenizers: 0.21.4
371
+
372
+ ## Citation
373
+
374
+ ### BibTeX
375
+
376
+ #### Sentence Transformers
377
+ ```bibtex
378
+ @inproceedings{reimers-2019-sentence-bert,
379
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
380
+ author = "Reimers, Nils and Gurevych, Iryna",
381
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
382
+ month = "11",
383
+ year = "2019",
384
+ publisher = "Association for Computational Linguistics",
385
+ url = "https://arxiv.org/abs/1908.10084",
386
+ }
387
+ ```
388
+
389
+ #### MultipleNegativesRankingLoss
390
+ ```bibtex
391
+ @misc{henderson2017efficient,
392
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
393
+ author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
394
+ year={2017},
395
+ eprint={1705.00652},
396
+ archivePrefix={arXiv},
397
+ primaryClass={cs.CL}
398
+ }
399
+ ```
400
+
401
+ <!--
402
+ ## Glossary
403
+
404
+ *Clearly define terms in order to be accessible across audiences.*
405
+ -->
406
+
407
+ <!--
408
+ ## Model Card Authors
409
+
410
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
411
+ -->
412
+
413
+ <!--
414
+ ## Model Card Contact
415
+
416
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
417
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "RobertaModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "bos_token_id": 0,
7
+ "classifier_dropout": null,
8
+ "eos_token_id": 2,
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 1,
21
+ "position_embedding_type": "absolute",
22
+ "tokenizer_class": "BertTokenizer",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.54.1",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 32000
28
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.0.0",
5
+ "transformers": "4.54.1",
6
+ "pytorch": "2.7.1+cu126"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:64181ab0ab5a58cf1c10d0ade3db5c51e631cb31d614a34e4df4646a2e61c83a
3
+ size 442494816
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.models.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.models.Pooling"
13
+ }
14
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 128,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "[CLS]",
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": "[SEP]",
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,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[CLS]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[PAD]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[UNK]",
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
+ },
44
+ "bos_token": "[CLS]",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "[CLS]",
47
+ "do_basic_tokenize": true,
48
+ "do_lower_case": false,
49
+ "eos_token": "[SEP]",
50
+ "extra_special_tokens": {},
51
+ "mask_token": "[MASK]",
52
+ "max_length": 128,
53
+ "model_max_length": 128,
54
+ "never_split": null,
55
+ "pad_to_multiple_of": null,
56
+ "pad_token": "[PAD]",
57
+ "pad_token_type_id": 0,
58
+ "padding_side": "right",
59
+ "sep_token": "[SEP]",
60
+ "stride": 0,
61
+ "strip_accents": null,
62
+ "tokenize_chinese_chars": true,
63
+ "tokenizer_class": "BertTokenizer",
64
+ "truncation_side": "right",
65
+ "truncation_strategy": "longest_first",
66
+ "unk_token": "[UNK]"
67
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff