trbeers commited on
Commit
ab2c179
·
verified ·
1 Parent(s): 61b8ef0

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": true
10
+ }
README.md ADDED
@@ -0,0 +1,514 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: []
3
+ library_name: sentence-transformers
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - generated_from_trainer
9
+ - dataset_size:8137
10
+ - loss:CosineSimilarityLoss
11
+ base_model: distilbert/distilbert-base-uncased
12
+ datasets: []
13
+ metrics:
14
+ - pearson_cosine
15
+ - spearman_cosine
16
+ - pearson_manhattan
17
+ - spearman_manhattan
18
+ - pearson_euclidean
19
+ - spearman_euclidean
20
+ - pearson_dot
21
+ - spearman_dot
22
+ - pearson_max
23
+ - spearman_max
24
+ widget:
25
+ - source_sentence: Proficient in chemical or plasma cleaning methods.
26
+ sentences:
27
+ - Skilled in circuit board assembly
28
+ - Created custom reports in Workday for HR metrics
29
+ - Developed a website using HTML and CSS
30
+ - source_sentence: Expertise in data modeling, SQL query design, and execution, preferably
31
+ in the financial services sector.
32
+ sentences:
33
+ - over 2 years of working in a retail customer support role
34
+ - Operated a forklift for material handling
35
+ - Proficient in crafting SQL queries for large datasets
36
+ - source_sentence: The ability to collaborate across teams and adapt to a fast-paced
37
+ environment is highly valued.
38
+ sentences:
39
+ - Demonstrated flexibility in meeting tight deadlines while working with cross-functional
40
+ teams
41
+ - Processed confidential client documents with high attention to detail
42
+ - Assisted with quality control checks on finished products
43
+ - source_sentence: Experience advocating for clients while effectively managing tough
44
+ conversations.
45
+ sentences:
46
+ - Designed responsive web layouts with HTML and CSS
47
+ - managed BIM coordination projects using Navisworks
48
+ - Focused solely on administrative tasks without client involvement
49
+ - source_sentence: Knowledge of medical equipment and veterinary terminology is necessary.
50
+ sentences:
51
+ - Conducted electrical system design reviews
52
+ - Skilled in component sorting for various projects
53
+ - Worked as a pet trainer for obedience classes
54
+ pipeline_tag: sentence-similarity
55
+ model-index:
56
+ - name: SentenceTransformer based on distilbert/distilbert-base-uncased
57
+ results:
58
+ - task:
59
+ type: semantic-similarity
60
+ name: Semantic Similarity
61
+ dataset:
62
+ name: sts dev
63
+ type: sts-dev
64
+ metrics:
65
+ - type: pearson_cosine
66
+ value: 0.924349195128016
67
+ name: Pearson Cosine
68
+ - type: spearman_cosine
69
+ value: 0.8484422411286455
70
+ name: Spearman Cosine
71
+ - type: pearson_manhattan
72
+ value: 0.905333549482094
73
+ name: Pearson Manhattan
74
+ - type: spearman_manhattan
75
+ value: 0.8466001874220329
76
+ name: Spearman Manhattan
77
+ - type: pearson_euclidean
78
+ value: 0.9058195955220477
79
+ name: Pearson Euclidean
80
+ - type: spearman_euclidean
81
+ value: 0.8467373800357263
82
+ name: Spearman Euclidean
83
+ - type: pearson_dot
84
+ value: 0.9171267699712237
85
+ name: Pearson Dot
86
+ - type: spearman_dot
87
+ value: 0.8472543590835093
88
+ name: Spearman Dot
89
+ - type: pearson_max
90
+ value: 0.924349195128016
91
+ name: Pearson Max
92
+ - type: spearman_max
93
+ value: 0.8484422411286455
94
+ name: Spearman Max
95
+ - task:
96
+ type: semantic-similarity
97
+ name: Semantic Similarity
98
+ dataset:
99
+ name: sts test
100
+ type: sts-test
101
+ metrics:
102
+ - type: pearson_cosine
103
+ value: 0.9188359916169351
104
+ name: Pearson Cosine
105
+ - type: spearman_cosine
106
+ value: 0.8446914904867927
107
+ name: Spearman Cosine
108
+ - type: pearson_manhattan
109
+ value: 0.8975506707051996
110
+ name: Pearson Manhattan
111
+ - type: spearman_manhattan
112
+ value: 0.8409328944635871
113
+ name: Spearman Manhattan
114
+ - type: pearson_euclidean
115
+ value: 0.8980683704843317
116
+ name: Pearson Euclidean
117
+ - type: spearman_euclidean
118
+ value: 0.8413207901292724
119
+ name: Spearman Euclidean
120
+ - type: pearson_dot
121
+ value: 0.9108792364321198
122
+ name: Pearson Dot
123
+ - type: spearman_dot
124
+ value: 0.8438956330799119
125
+ name: Spearman Dot
126
+ - type: pearson_max
127
+ value: 0.9188359916169351
128
+ name: Pearson Max
129
+ - type: spearman_max
130
+ value: 0.8446914904867927
131
+ name: Spearman Max
132
+ ---
133
+
134
+ # SentenceTransformer based on distilbert/distilbert-base-uncased
135
+
136
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased). 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.
137
+
138
+ ## Model Details
139
+
140
+ ### Model Description
141
+ - **Model Type:** Sentence Transformer
142
+ - **Base model:** [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) <!-- at revision 12040accade4e8a0f71eabdb258fecc2e7e948be -->
143
+ - **Maximum Sequence Length:** 512 tokens
144
+ - **Output Dimensionality:** 768 tokens
145
+ - **Similarity Function:** Cosine Similarity
146
+ <!-- - **Training Dataset:** Unknown -->
147
+ <!-- - **Language:** Unknown -->
148
+ <!-- - **License:** Unknown -->
149
+
150
+ ### Model Sources
151
+
152
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
153
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
154
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
155
+
156
+ ### Full Model Architecture
157
+
158
+ ```
159
+ SentenceTransformer(
160
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: DistilBertModel
161
+ (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': True})
162
+ )
163
+ ```
164
+
165
+ ## Usage
166
+
167
+ ### Direct Usage (Sentence Transformers)
168
+
169
+ First install the Sentence Transformers library:
170
+
171
+ ```bash
172
+ pip install -U sentence-transformers
173
+ ```
174
+
175
+ Then you can load this model and run inference.
176
+ ```python
177
+ from sentence_transformers import SentenceTransformer
178
+
179
+ # Download from the 🤗 Hub
180
+ model = SentenceTransformer("trbeers/distilbert-base-uncased-sts")
181
+ # Run inference
182
+ sentences = [
183
+ 'Knowledge of medical equipment and veterinary terminology is necessary.',
184
+ 'Worked as a pet trainer for obedience classes',
185
+ 'Skilled in component sorting for various projects',
186
+ ]
187
+ embeddings = model.encode(sentences)
188
+ print(embeddings.shape)
189
+ # [3, 768]
190
+
191
+ # Get the similarity scores for the embeddings
192
+ similarities = model.similarity(embeddings, embeddings)
193
+ print(similarities.shape)
194
+ # [3, 3]
195
+ ```
196
+
197
+ <!--
198
+ ### Direct Usage (Transformers)
199
+
200
+ <details><summary>Click to see the direct usage in Transformers</summary>
201
+
202
+ </details>
203
+ -->
204
+
205
+ <!--
206
+ ### Downstream Usage (Sentence Transformers)
207
+
208
+ You can finetune this model on your own dataset.
209
+
210
+ <details><summary>Click to expand</summary>
211
+
212
+ </details>
213
+ -->
214
+
215
+ <!--
216
+ ### Out-of-Scope Use
217
+
218
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
219
+ -->
220
+
221
+ ## Evaluation
222
+
223
+ ### Metrics
224
+
225
+ #### Semantic Similarity
226
+ * Dataset: `sts-dev`
227
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
228
+
229
+ | Metric | Value |
230
+ |:--------------------|:-----------|
231
+ | pearson_cosine | 0.9243 |
232
+ | **spearman_cosine** | **0.8484** |
233
+ | pearson_manhattan | 0.9053 |
234
+ | spearman_manhattan | 0.8466 |
235
+ | pearson_euclidean | 0.9058 |
236
+ | spearman_euclidean | 0.8467 |
237
+ | pearson_dot | 0.9171 |
238
+ | spearman_dot | 0.8473 |
239
+ | pearson_max | 0.9243 |
240
+ | spearman_max | 0.8484 |
241
+
242
+ #### Semantic Similarity
243
+ * Dataset: `sts-test`
244
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
245
+
246
+ | Metric | Value |
247
+ |:--------------------|:-----------|
248
+ | pearson_cosine | 0.9188 |
249
+ | **spearman_cosine** | **0.8447** |
250
+ | pearson_manhattan | 0.8976 |
251
+ | spearman_manhattan | 0.8409 |
252
+ | pearson_euclidean | 0.8981 |
253
+ | spearman_euclidean | 0.8413 |
254
+ | pearson_dot | 0.9109 |
255
+ | spearman_dot | 0.8439 |
256
+ | pearson_max | 0.9188 |
257
+ | spearman_max | 0.8447 |
258
+
259
+ <!--
260
+ ## Bias, Risks and Limitations
261
+
262
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
263
+ -->
264
+
265
+ <!--
266
+ ### Recommendations
267
+
268
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
269
+ -->
270
+
271
+ ## Training Details
272
+
273
+ ### Training Dataset
274
+
275
+ #### Unnamed Dataset
276
+
277
+
278
+ * Size: 8,137 training samples
279
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
280
+ * Approximate statistics based on the first 1000 samples:
281
+ | | sentence1 | sentence2 | score |
282
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:------------------------------------------------|
283
+ | type | string | string | int |
284
+ | details | <ul><li>min: 6 tokens</li><li>mean: 16.34 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 9.58 tokens</li><li>max: 24 tokens</li></ul> | <ul><li>0: ~49.50%</li><li>1: ~50.50%</li></ul> |
285
+ * Samples:
286
+ | sentence1 | sentence2 | score |
287
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------|
288
+ | <code>Ability to use tools such as power drills as required for the job.</code> | <code>Proficient in operating power tools for installation tasks</code> | <code>1</code> |
289
+ | <code>Experience with networking, specifically the TCP/IP stack, routing, ports, and services is essential.</code> | <code>Designed user interfaces for web applications</code> | <code>0</code> |
290
+ | <code>Ability to establish and maintain positive relationships with coaches, student-athletes, and vendors regarding equipment selection.</code> | <code>Developed strong partnerships with vendors forEquipment procurement</code> | <code>1</code> |
291
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
292
+ ```json
293
+ {
294
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
295
+ }
296
+ ```
297
+
298
+ ### Evaluation Dataset
299
+
300
+ #### Unnamed Dataset
301
+
302
+
303
+ * Size: 2,035 evaluation samples
304
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
305
+ * Approximate statistics based on the first 1000 samples:
306
+ | | sentence1 | sentence2 | score |
307
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:------------------------------------------------|
308
+ | type | string | string | int |
309
+ | details | <ul><li>min: 6 tokens</li><li>mean: 15.77 tokens</li><li>max: 34 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 9.65 tokens</li><li>max: 21 tokens</li></ul> | <ul><li>0: ~48.10%</li><li>1: ~51.90%</li></ul> |
310
+ * Samples:
311
+ | sentence1 | sentence2 | score |
312
+ |:----------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|:---------------|
313
+ | <code>Experience with vulnerability management tools like Nessus and Nexpose.</code> | <code>managed network configurations</code> | <code>0</code> |
314
+ | <code>Willingness to obtain a Texas fire extinguishers license as necessary.</code> | <code>Currently pursuing a Texas fire extinguishers license</code> | <code>1</code> |
315
+ | <code>Experience in defining and maintaining enterprise architecture that supports business scalability.</code> | <code>Led the development of enterprise architecture frameworks for a multinational corporation</code> | <code>1</code> |
316
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
317
+ ```json
318
+ {
319
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
320
+ }
321
+ ```
322
+
323
+ ### Training Hyperparameters
324
+ #### Non-Default Hyperparameters
325
+
326
+ - `eval_strategy`: steps
327
+ - `per_device_train_batch_size`: 16
328
+ - `per_device_eval_batch_size`: 16
329
+ - `num_train_epochs`: 4
330
+ - `warmup_ratio`: 0.1
331
+
332
+ #### All Hyperparameters
333
+ <details><summary>Click to expand</summary>
334
+
335
+ - `overwrite_output_dir`: False
336
+ - `do_predict`: False
337
+ - `eval_strategy`: steps
338
+ - `prediction_loss_only`: True
339
+ - `per_device_train_batch_size`: 16
340
+ - `per_device_eval_batch_size`: 16
341
+ - `per_gpu_train_batch_size`: None
342
+ - `per_gpu_eval_batch_size`: None
343
+ - `gradient_accumulation_steps`: 1
344
+ - `eval_accumulation_steps`: None
345
+ - `learning_rate`: 5e-05
346
+ - `weight_decay`: 0.0
347
+ - `adam_beta1`: 0.9
348
+ - `adam_beta2`: 0.999
349
+ - `adam_epsilon`: 1e-08
350
+ - `max_grad_norm`: 1.0
351
+ - `num_train_epochs`: 4
352
+ - `max_steps`: -1
353
+ - `lr_scheduler_type`: linear
354
+ - `lr_scheduler_kwargs`: {}
355
+ - `warmup_ratio`: 0.1
356
+ - `warmup_steps`: 0
357
+ - `log_level`: passive
358
+ - `log_level_replica`: warning
359
+ - `log_on_each_node`: True
360
+ - `logging_nan_inf_filter`: True
361
+ - `save_safetensors`: True
362
+ - `save_on_each_node`: False
363
+ - `save_only_model`: False
364
+ - `restore_callback_states_from_checkpoint`: False
365
+ - `no_cuda`: False
366
+ - `use_cpu`: False
367
+ - `use_mps_device`: False
368
+ - `seed`: 42
369
+ - `data_seed`: None
370
+ - `jit_mode_eval`: False
371
+ - `use_ipex`: False
372
+ - `bf16`: False
373
+ - `fp16`: False
374
+ - `fp16_opt_level`: O1
375
+ - `half_precision_backend`: auto
376
+ - `bf16_full_eval`: False
377
+ - `fp16_full_eval`: False
378
+ - `tf32`: None
379
+ - `local_rank`: 0
380
+ - `ddp_backend`: None
381
+ - `tpu_num_cores`: None
382
+ - `tpu_metrics_debug`: False
383
+ - `debug`: []
384
+ - `dataloader_drop_last`: False
385
+ - `dataloader_num_workers`: 0
386
+ - `dataloader_prefetch_factor`: None
387
+ - `past_index`: -1
388
+ - `disable_tqdm`: False
389
+ - `remove_unused_columns`: True
390
+ - `label_names`: None
391
+ - `load_best_model_at_end`: False
392
+ - `ignore_data_skip`: False
393
+ - `fsdp`: []
394
+ - `fsdp_min_num_params`: 0
395
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
396
+ - `fsdp_transformer_layer_cls_to_wrap`: None
397
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
398
+ - `deepspeed`: None
399
+ - `label_smoothing_factor`: 0.0
400
+ - `optim`: adamw_torch
401
+ - `optim_args`: None
402
+ - `adafactor`: False
403
+ - `group_by_length`: False
404
+ - `length_column_name`: length
405
+ - `ddp_find_unused_parameters`: None
406
+ - `ddp_bucket_cap_mb`: None
407
+ - `ddp_broadcast_buffers`: False
408
+ - `dataloader_pin_memory`: True
409
+ - `dataloader_persistent_workers`: False
410
+ - `skip_memory_metrics`: True
411
+ - `use_legacy_prediction_loop`: False
412
+ - `push_to_hub`: False
413
+ - `resume_from_checkpoint`: None
414
+ - `hub_model_id`: None
415
+ - `hub_strategy`: every_save
416
+ - `hub_private_repo`: False
417
+ - `hub_always_push`: False
418
+ - `gradient_checkpointing`: False
419
+ - `gradient_checkpointing_kwargs`: None
420
+ - `include_inputs_for_metrics`: False
421
+ - `eval_do_concat_batches`: True
422
+ - `fp16_backend`: auto
423
+ - `push_to_hub_model_id`: None
424
+ - `push_to_hub_organization`: None
425
+ - `mp_parameters`:
426
+ - `auto_find_batch_size`: False
427
+ - `full_determinism`: False
428
+ - `torchdynamo`: None
429
+ - `ray_scope`: last
430
+ - `ddp_timeout`: 1800
431
+ - `torch_compile`: False
432
+ - `torch_compile_backend`: None
433
+ - `torch_compile_mode`: None
434
+ - `dispatch_batches`: None
435
+ - `split_batches`: None
436
+ - `include_tokens_per_second`: False
437
+ - `include_num_input_tokens_seen`: False
438
+ - `neftune_noise_alpha`: None
439
+ - `optim_target_modules`: None
440
+ - `batch_eval_metrics`: False
441
+ - `batch_sampler`: batch_sampler
442
+ - `multi_dataset_batch_sampler`: proportional
443
+
444
+ </details>
445
+
446
+ ### Training Logs
447
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
448
+ |:------:|:----:|:-------------:|:------:|:-----------------------:|:------------------------:|
449
+ | 0.1965 | 100 | 0.1588 | 0.0884 | 0.8247 | - |
450
+ | 0.3929 | 200 | 0.0784 | 0.0686 | 0.8397 | - |
451
+ | 0.5894 | 300 | 0.067 | 0.0538 | 0.8455 | - |
452
+ | 0.7859 | 400 | 0.0626 | 0.0482 | 0.8450 | - |
453
+ | 0.9823 | 500 | 0.0533 | 0.0452 | 0.8454 | - |
454
+ | 1.1788 | 600 | 0.0346 | 0.0437 | 0.8434 | - |
455
+ | 1.3752 | 700 | 0.0328 | 0.0435 | 0.8465 | - |
456
+ | 1.5717 | 800 | 0.0306 | 0.0445 | 0.8465 | - |
457
+ | 1.7682 | 900 | 0.0317 | 0.0399 | 0.8481 | - |
458
+ | 1.9646 | 1000 | 0.0315 | 0.0448 | 0.8517 | - |
459
+ | 2.1611 | 1100 | 0.017 | 0.0388 | 0.8489 | - |
460
+ | 2.3576 | 1200 | 0.016 | 0.0396 | 0.8501 | - |
461
+ | 2.5540 | 1300 | 0.0129 | 0.0393 | 0.8465 | - |
462
+ | 2.7505 | 1400 | 0.0128 | 0.0396 | 0.8471 | - |
463
+ | 2.9470 | 1500 | 0.0147 | 0.0388 | 0.8483 | - |
464
+ | 3.1434 | 1600 | 0.009 | 0.0396 | 0.8460 | - |
465
+ | 3.3399 | 1700 | 0.0078 | 0.0390 | 0.8460 | - |
466
+ | 3.5363 | 1800 | 0.0063 | 0.0380 | 0.8475 | - |
467
+ | 3.7328 | 1900 | 0.0079 | 0.0377 | 0.8484 | - |
468
+ | 3.9293 | 2000 | 0.0062 | 0.0376 | 0.8484 | - |
469
+ | 4.0 | 2036 | - | - | - | 0.8447 |
470
+
471
+
472
+ ### Framework Versions
473
+ - Python: 3.10.11
474
+ - Sentence Transformers: 3.0.1
475
+ - Transformers: 4.41.2
476
+ - PyTorch: 2.3.1
477
+ - Accelerate: 0.31.0
478
+ - Datasets: 2.19.1
479
+ - Tokenizers: 0.19.1
480
+
481
+ ## Citation
482
+
483
+ ### BibTeX
484
+
485
+ #### Sentence Transformers
486
+ ```bibtex
487
+ @inproceedings{reimers-2019-sentence-bert,
488
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
489
+ author = "Reimers, Nils and Gurevych, Iryna",
490
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
491
+ month = "11",
492
+ year = "2019",
493
+ publisher = "Association for Computational Linguistics",
494
+ url = "https://arxiv.org/abs/1908.10084",
495
+ }
496
+ ```
497
+
498
+ <!--
499
+ ## Glossary
500
+
501
+ *Clearly define terms in order to be accessible across audiences.*
502
+ -->
503
+
504
+ <!--
505
+ ## Model Card Authors
506
+
507
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
508
+ -->
509
+
510
+ <!--
511
+ ## Model Card Contact
512
+
513
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
514
+ -->
config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "distilbert-base-uncased",
3
+ "activation": "gelu",
4
+ "architectures": [
5
+ "DistilBertModel"
6
+ ],
7
+ "attention_dropout": 0.1,
8
+ "dim": 768,
9
+ "dropout": 0.1,
10
+ "hidden_dim": 3072,
11
+ "initializer_range": 0.02,
12
+ "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
+ "pad_token_id": 0,
17
+ "qa_dropout": 0.1,
18
+ "seq_classif_dropout": 0.2,
19
+ "sinusoidal_pos_embds": false,
20
+ "tie_weights_": true,
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "vocab_size": 30522
24
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.3.1"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8fdde64d2629597233a461a41f97cab81db654fc4a034f14220c0f94975665ae
3
+ size 265462608
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": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_lower_case": true,
47
+ "mask_token": "[MASK]",
48
+ "model_max_length": 512,
49
+ "pad_token": "[PAD]",
50
+ "sep_token": "[SEP]",
51
+ "strip_accents": null,
52
+ "tokenize_chinese_chars": true,
53
+ "tokenizer_class": "DistilBertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff