omkar334 commited on
Commit
bbc4e48
·
verified ·
1 Parent(s): 804ae52

Add new CrossEncoder model

Browse files
README.md ADDED
@@ -0,0 +1,422 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - sentence-transformers
6
+ - cross-encoder
7
+ - reranker
8
+ - generated_from_trainer
9
+ - dataset_size:5749
10
+ - loss:BinaryCrossEntropyLoss
11
+ base_model: distilbert/distilroberta-base
12
+ datasets:
13
+ - sentence-transformers/stsb
14
+ pipeline_tag: text-ranking
15
+ library_name: sentence-transformers
16
+ metrics:
17
+ - pearson
18
+ - spearman
19
+ model-index:
20
+ - name: CrossEncoder based on distilbert/distilroberta-base
21
+ results:
22
+ - task:
23
+ type: cross-encoder-correlation
24
+ name: Cross Encoder Correlation
25
+ dataset:
26
+ name: stsb validation
27
+ type: stsb-validation
28
+ metrics:
29
+ - type: pearson
30
+ value: 0.8864227817727027
31
+ name: Pearson
32
+ - type: spearman
33
+ value: 0.8837678149208236
34
+ name: Spearman
35
+ - task:
36
+ type: cross-encoder-correlation
37
+ name: Cross Encoder Correlation
38
+ dataset:
39
+ name: stsb test
40
+ type: stsb-test
41
+ metrics:
42
+ - type: pearson
43
+ value: 0.8503521391700528
44
+ name: Pearson
45
+ - type: spearman
46
+ value: 0.8403655772346184
47
+ name: Spearman
48
+ ---
49
+
50
+ # CrossEncoder based on distilbert/distilroberta-base
51
+
52
+ This is a [Cross Encoder](https://www.sbert.net/docs/cross_encoder/usage/usage.html) model finetuned from [distilbert/distilroberta-base](https://huggingface.co/distilbert/distilroberta-base) on the [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) dataset using the [sentence-transformers](https://www.SBERT.net) library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
53
+
54
+ ## Model Details
55
+
56
+ ### Model Description
57
+ - **Model Type:** Cross Encoder
58
+ - **Base model:** [distilbert/distilroberta-base](https://huggingface.co/distilbert/distilroberta-base) <!-- at revision fb53ab8802853c8e4fbdbcd0529f21fc6f459b2b -->
59
+ - **Maximum Sequence Length:** 512 tokens
60
+ - **Number of Output Labels:** 1 label
61
+ - **Supported Modality:** Text
62
+ - **Training Dataset:**
63
+ - [stsb](https://huggingface.co/datasets/sentence-transformers/stsb)
64
+ - **Language:** en
65
+ <!-- - **License:** Unknown -->
66
+
67
+ ### Model Sources
68
+
69
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
70
+ - **Documentation:** [Cross Encoder Documentation](https://www.sbert.net/docs/cross_encoder/usage/usage.html)
71
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
72
+ - **Hugging Face:** [Cross Encoders on Hugging Face](https://huggingface.co/models?library=sentence-transformers&other=cross-encoder)
73
+
74
+ ### Full Model Architecture
75
+
76
+ ```
77
+ CrossEncoder(
78
+ (0): Transformer({'transformer_task': 'sequence-classification', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}}, 'module_output_name': 'scores', 'architecture': 'RobertaForSequenceClassification'})
79
+ )
80
+ ```
81
+
82
+ ## Usage
83
+
84
+ ### Direct Usage (Sentence Transformers)
85
+
86
+ First install the Sentence Transformers library:
87
+
88
+ ```bash
89
+ pip install -U sentence-transformers
90
+ ```
91
+
92
+ Then you can load this model and run inference.
93
+ ```python
94
+ from sentence_transformers import CrossEncoder
95
+
96
+ # Download from the 🤗 Hub
97
+ model = CrossEncoder("omkar334/reranker-distilroberta-base-stsb")
98
+ # Get scores for pairs of inputs
99
+ pairs = [
100
+ ['A man with a hard hat is dancing.', 'A man wearing a hard hat is dancing.'],
101
+ ['A young child is riding a horse.', 'A child is riding a horse.'],
102
+ ['A man is feeding a mouse to a snake.', 'The man is feeding a mouse to the snake.'],
103
+ ['A woman is playing the guitar.', 'A man is playing guitar.'],
104
+ ['A woman is playing the flute.', 'A man is playing a flute.'],
105
+ ]
106
+ scores = model.predict(pairs)
107
+ print(scores)
108
+ # [0.9598 0.9533 0.9566 0.3766 0.4535]
109
+
110
+ # Or rank different texts based on similarity to a single text
111
+ ranks = model.rank(
112
+ 'A man with a hard hat is dancing.',
113
+ [
114
+ 'A man wearing a hard hat is dancing.',
115
+ 'A child is riding a horse.',
116
+ 'The man is feeding a mouse to the snake.',
117
+ 'A man is playing guitar.',
118
+ 'A man is playing a flute.',
119
+ ]
120
+ )
121
+ # [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
122
+ ```
123
+
124
+ <!--
125
+ ### Direct Usage (Transformers)
126
+
127
+ <details><summary>Click to see the direct usage in Transformers</summary>
128
+
129
+ </details>
130
+ -->
131
+
132
+ <!--
133
+ ### Downstream Usage (Sentence Transformers)
134
+
135
+ You can finetune this model on your own dataset.
136
+
137
+ <details><summary>Click to expand</summary>
138
+
139
+ </details>
140
+ -->
141
+
142
+ <!--
143
+ ### Out-of-Scope Use
144
+
145
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
146
+ -->
147
+
148
+ ## Evaluation
149
+
150
+ ### Metrics
151
+
152
+ #### Cross Encoder Correlation
153
+
154
+ * Datasets: `stsb-validation` and `stsb-test`
155
+ * Evaluated with [<code>CrossEncoderCorrelationEvaluator</code>](https://sbert.net/docs/package_reference/cross_encoder/evaluation.html#sentence_transformers.cross_encoder.evaluation.CrossEncoderCorrelationEvaluator)
156
+
157
+ | Metric | stsb-validation | stsb-test |
158
+ |:-------------|:----------------|:-----------|
159
+ | pearson | 0.8864 | 0.8504 |
160
+ | **spearman** | **0.8838** | **0.8404** |
161
+
162
+ <!--
163
+ ## Bias, Risks and Limitations
164
+
165
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
166
+ -->
167
+
168
+ <!--
169
+ ### Recommendations
170
+
171
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
172
+ -->
173
+
174
+ ## Training Details
175
+
176
+ ### Training Dataset
177
+
178
+ #### stsb
179
+
180
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
181
+ * Size: 5,749 training samples
182
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
183
+ * Approximate statistics based on the first 100 samples:
184
+ | | sentence1 | sentence2 | score |
185
+ |:---------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
186
+ | type | string | string | float |
187
+ | modality | text | text | |
188
+ | details | <ul><li>min: 7 tokens</li><li>mean: 9.49 tokens</li><li>max: 14 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 9.61 tokens</li><li>max: 17 tokens</li></ul> | <ul><li>min: 0.1</li><li>mean: 0.66</li><li>max: 1.0</li></ul> |
189
+ * Samples:
190
+ | sentence1 | sentence2 | score |
191
+ |:-----------------------------------------------------------|:----------------------------------------------------------------------|:------------------|
192
+ | <code>A plane is taking off.</code> | <code>An air plane is taking off.</code> | <code>1.0</code> |
193
+ | <code>A man is playing a large flute.</code> | <code>A man is playing a flute.</code> | <code>0.76</code> |
194
+ | <code>A man is spreading shreded cheese on a pizza.</code> | <code>A man is spreading shredded cheese on an uncooked pizza.</code> | <code>0.76</code> |
195
+ * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
196
+ ```json
197
+ {
198
+ "activation_fn": "torch.nn.modules.linear.Identity",
199
+ "pos_weight": null
200
+ }
201
+ ```
202
+
203
+ ### Evaluation Dataset
204
+
205
+ #### stsb
206
+
207
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
208
+ * Size: 1,500 evaluation samples
209
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
210
+ * Approximate statistics based on the first 100 samples:
211
+ | | sentence1 | sentence2 | score |
212
+ |:---------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
213
+ | type | string | string | float |
214
+ | modality | text | text | |
215
+ | details | <ul><li>min: 7 tokens</li><li>mean: 10.04 tokens</li><li>max: 19 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 9.98 tokens</li><li>max: 18 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.53</li><li>max: 1.0</li></ul> |
216
+ * Samples:
217
+ | sentence1 | sentence2 | score |
218
+ |:--------------------------------------------------|:------------------------------------------------------|:------------------|
219
+ | <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
220
+ | <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
221
+ | <code>A man is feeding a mouse to a snake.</code> | <code>The man is feeding a mouse to the snake.</code> | <code>1.0</code> |
222
+ * Loss: [<code>BinaryCrossEntropyLoss</code>](https://sbert.net/docs/package_reference/cross_encoder/losses.html#binarycrossentropyloss) with these parameters:
223
+ ```json
224
+ {
225
+ "activation_fn": "torch.nn.modules.linear.Identity",
226
+ "pos_weight": null
227
+ }
228
+ ```
229
+
230
+ ### Training Hyperparameters
231
+ #### Non-Default Hyperparameters
232
+
233
+ - `per_device_train_batch_size`: 64
234
+ - `num_train_epochs`: 4
235
+ - `warmup_steps`: 0.1
236
+ - `bf16`: True
237
+ - `per_device_eval_batch_size`: 64
238
+
239
+ #### All Hyperparameters
240
+ <details><summary>Click to expand</summary>
241
+
242
+ - `per_device_train_batch_size`: 64
243
+ - `num_train_epochs`: 4
244
+ - `max_steps`: -1
245
+ - `learning_rate`: 5e-05
246
+ - `lr_scheduler_type`: linear
247
+ - `lr_scheduler_kwargs`: None
248
+ - `warmup_steps`: 0.1
249
+ - `optim`: adamw_torch_fused
250
+ - `optim_args`: None
251
+ - `weight_decay`: 0.0
252
+ - `adam_beta1`: 0.9
253
+ - `adam_beta2`: 0.999
254
+ - `adam_epsilon`: 1e-08
255
+ - `optim_target_modules`: None
256
+ - `gradient_accumulation_steps`: 1
257
+ - `average_tokens_across_devices`: True
258
+ - `max_grad_norm`: 1.0
259
+ - `label_smoothing_factor`: 0.0
260
+ - `bf16`: True
261
+ - `fp16`: False
262
+ - `bf16_full_eval`: False
263
+ - `fp16_full_eval`: False
264
+ - `tf32`: None
265
+ - `gradient_checkpointing`: False
266
+ - `gradient_checkpointing_kwargs`: None
267
+ - `torch_compile`: False
268
+ - `torch_compile_backend`: None
269
+ - `torch_compile_mode`: None
270
+ - `use_liger_kernel`: False
271
+ - `liger_kernel_config`: None
272
+ - `use_cache`: False
273
+ - `neftune_noise_alpha`: None
274
+ - `torch_empty_cache_steps`: None
275
+ - `auto_find_batch_size`: False
276
+ - `log_on_each_node`: True
277
+ - `logging_nan_inf_filter`: True
278
+ - `include_num_input_tokens_seen`: no
279
+ - `log_level`: passive
280
+ - `log_level_replica`: warning
281
+ - `disable_tqdm`: False
282
+ - `project`: huggingface
283
+ - `trackio_space_id`: None
284
+ - `trackio_bucket_id`: None
285
+ - `trackio_static_space_id`: None
286
+ - `per_device_eval_batch_size`: 64
287
+ - `prediction_loss_only`: True
288
+ - `eval_on_start`: False
289
+ - `eval_do_concat_batches`: True
290
+ - `eval_use_gather_object`: False
291
+ - `eval_accumulation_steps`: None
292
+ - `include_for_metrics`: []
293
+ - `batch_eval_metrics`: False
294
+ - `save_only_model`: False
295
+ - `save_on_each_node`: False
296
+ - `enable_jit_checkpoint`: False
297
+ - `push_to_hub`: False
298
+ - `hub_private_repo`: None
299
+ - `hub_model_id`: None
300
+ - `hub_strategy`: every_save
301
+ - `hub_always_push`: False
302
+ - `hub_revision`: None
303
+ - `load_best_model_at_end`: False
304
+ - `ignore_data_skip`: False
305
+ - `restore_callback_states_from_checkpoint`: False
306
+ - `full_determinism`: False
307
+ - `seed`: 42
308
+ - `data_seed`: None
309
+ - `use_cpu`: False
310
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
311
+ - `parallelism_config`: None
312
+ - `dataloader_drop_last`: False
313
+ - `dataloader_num_workers`: 0
314
+ - `dataloader_pin_memory`: True
315
+ - `dataloader_persistent_workers`: False
316
+ - `dataloader_prefetch_factor`: None
317
+ - `remove_unused_columns`: True
318
+ - `label_names`: None
319
+ - `train_sampling_strategy`: random
320
+ - `length_column_name`: length
321
+ - `ddp_find_unused_parameters`: None
322
+ - `ddp_bucket_cap_mb`: None
323
+ - `ddp_broadcast_buffers`: False
324
+ - `ddp_static_graph`: None
325
+ - `ddp_backend`: None
326
+ - `ddp_timeout`: 1800
327
+ - `fsdp`: []
328
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
329
+ - `deepspeed`: None
330
+ - `debug`: []
331
+ - `skip_memory_metrics`: True
332
+ - `do_predict`: False
333
+ - `resume_from_checkpoint`: None
334
+ - `warmup_ratio`: None
335
+ - `local_rank`: -1
336
+ - `prompts`: None
337
+ - `batch_sampler`: batch_sampler
338
+ - `multi_dataset_batch_sampler`: proportional
339
+ - `router_mapping`: {}
340
+ - `learning_rate_mapping`: {}
341
+
342
+ </details>
343
+
344
+ ### Training Logs
345
+ | Epoch | Step | Training Loss | Validation Loss | stsb-validation_spearman | stsb-test_spearman |
346
+ |:------:|:----:|:-------------:|:---------------:|:------------------------:|:------------------:|
347
+ | -1 | -1 | - | - | -0.0362 | - |
348
+ | 0.2222 | 20 | 0.6909 | - | - | - |
349
+ | 0.4444 | 40 | 0.6506 | - | - | - |
350
+ | 0.6667 | 60 | 0.5969 | - | - | - |
351
+ | 0.8889 | 80 | 0.5680 | 0.5461 | 0.8552 | - |
352
+ | 1.1111 | 100 | 0.5551 | - | - | - |
353
+ | 1.3333 | 120 | 0.5379 | - | - | - |
354
+ | 1.5556 | 140 | 0.5449 | - | - | - |
355
+ | 1.7778 | 160 | 0.5443 | 0.5342 | 0.8777 | - |
356
+ | 2.0 | 180 | 0.5373 | - | - | - |
357
+ | 2.2222 | 200 | 0.5287 | - | - | - |
358
+ | 2.4444 | 220 | 0.5248 | - | - | - |
359
+ | 2.6667 | 240 | 0.5283 | 0.5383 | 0.8785 | - |
360
+ | 2.8889 | 260 | 0.5251 | - | - | - |
361
+ | 3.1111 | 280 | 0.5156 | - | - | - |
362
+ | 3.3333 | 300 | 0.5093 | - | - | - |
363
+ | 3.5556 | 320 | 0.5164 | 0.5369 | 0.8824 | - |
364
+ | 3.7778 | 340 | 0.5152 | - | - | - |
365
+ | 4.0 | 360 | 0.5208 | 0.5331 | 0.8838 | - |
366
+ | -1 | -1 | - | - | - | 0.8404 |
367
+
368
+
369
+ ### Training Time
370
+ - **Training**: 3.2 minutes
371
+ - **Evaluation**: 15.8 seconds
372
+ - **Total**: 3.5 minutes
373
+
374
+ ### Framework Versions
375
+ - Python: 3.11.14
376
+ - Sentence Transformers: 5.6.0.dev0
377
+ - Transformers: 5.9.0
378
+ - PyTorch: 2.12.0
379
+ - Accelerate: 1.13.0
380
+ - Datasets: 4.8.5
381
+ - Tokenizers: 0.22.2
382
+
383
+ ## Additional Resources
384
+
385
+ - [Training and Finetuning Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-reranker): the end-to-end guide for training or finetuning Cross Encoder (reranker) models.
386
+ - [Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/multimodal-sentence-transformers): use text, image, audio, and video reranker models through the same API.
387
+ - [Training and Finetuning Multimodal Embedding & Reranker Models with Sentence Transformers](https://huggingface.co/blog/train-multimodal-sentence-transformers): training multimodal Cross Encoders.
388
+
389
+ ## Citation
390
+
391
+ ### BibTeX
392
+
393
+ #### Sentence Transformers
394
+ ```bibtex
395
+ @inproceedings{reimers-2019-sentence-bert,
396
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
397
+ author = "Reimers, Nils and Gurevych, Iryna",
398
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
399
+ month = "11",
400
+ year = "2019",
401
+ publisher = "Association for Computational Linguistics",
402
+ url = "https://arxiv.org/abs/1908.10084",
403
+ }
404
+ ```
405
+
406
+ <!--
407
+ ## Glossary
408
+
409
+ *Clearly define terms in order to be accessible across audiences.*
410
+ -->
411
+
412
+ <!--
413
+ ## Model Card Authors
414
+
415
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
416
+ -->
417
+
418
+ <!--
419
+ ## Model Card Contact
420
+
421
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
422
+ -->
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "LABEL_0"
16
+ },
17
+ "initializer_range": 0.02,
18
+ "intermediate_size": 3072,
19
+ "is_decoder": false,
20
+ "label2id": {
21
+ "LABEL_0": 0
22
+ },
23
+ "layer_norm_eps": 1e-05,
24
+ "max_position_embeddings": 514,
25
+ "model_type": "roberta",
26
+ "num_attention_heads": 12,
27
+ "num_hidden_layers": 6,
28
+ "pad_token_id": 1,
29
+ "tie_word_embeddings": true,
30
+ "transformers_version": "5.9.0",
31
+ "type_vocab_size": 1,
32
+ "use_cache": false,
33
+ "vocab_size": 50265
34
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.12.0",
4
+ "sentence_transformers": "5.6.0.dev0",
5
+ "transformers": "5.9.0"
6
+ },
7
+ "activation_fn": "torch.nn.modules.activation.Sigmoid",
8
+ "default_prompt_name": null,
9
+ "model_type": "CrossEncoder",
10
+ "prompts": {}
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:152992935bcc15111eecfd28af9a8b2af0831869026d056cb7dc4ba4cb33db4b
3
+ size 328489204
modules.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ }
8
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "sequence-classification",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "logits"
7
+ }
8
+ },
9
+ "module_output_name": "scores"
10
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "cls_token": "<s>",
6
+ "eos_token": "</s>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "mask_token": "<mask>",
11
+ "model_max_length": 512,
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "tokenizer_class": "RobertaTokenizer",
15
+ "trim_offsets": true,
16
+ "unk_token": "<unk>"
17
+ }