bingcheng9 commited on
Commit
0a64102
1 Parent(s): 9beeda6

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,516 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - generated_from_trainer
9
+ - dataset_size:5749
10
+ - loss:CosineSimilarityLoss
11
+ base_model: google-bert/bert-base-uncased
12
+ widget:
13
+ - source_sentence: The man talked to a girl over the internet camera.
14
+ sentences:
15
+ - A group of elderly people pose around a dining table.
16
+ - A teenager talks to a girl over a webcam.
17
+ - There is no 'still' that is not relative to some other object.
18
+ - source_sentence: A woman is writing something.
19
+ sentences:
20
+ - Two eagles are perched on a branch.
21
+ - It refers to the maximum f-stop (which is defined as the ratio of focal length
22
+ to effective aperture diameter).
23
+ - A woman is chopping green onions.
24
+ - source_sentence: The player shoots the winning points.
25
+ sentences:
26
+ - Minimum wage laws hurt the least skilled, least productive the most.
27
+ - The basketball player is about to score points for his team.
28
+ - Sheep are grazing in the field in front of a line of trees.
29
+ - source_sentence: Stars form in star-formation regions, which itself develop from
30
+ molecular clouds.
31
+ sentences:
32
+ - Although I believe Searle is mistaken, I don't think you have found the problem.
33
+ - It may be possible for a solar system like ours to exist outside of a galaxy.
34
+ - A blond-haired child performing on the trumpet in front of a house while his younger
35
+ brother watches.
36
+ - source_sentence: While Queen may refer to both Queen regent (sovereign) or Queen
37
+ consort, the King has always been the sovereign.
38
+ sentences:
39
+ - At first, I thought this is a bit of a tricky question.
40
+ - A man sitting on the floor in a room is strumming a guitar.
41
+ - There is a very good reason not to refer to the Queen's spouse as "King" - because
42
+ they aren't the King.
43
+ datasets:
44
+ - sentence-transformers/stsb
45
+ pipeline_tag: sentence-similarity
46
+ library_name: sentence-transformers
47
+ metrics:
48
+ - pearson_cosine
49
+ - spearman_cosine
50
+ - pearson_manhattan
51
+ - spearman_manhattan
52
+ - pearson_euclidean
53
+ - spearman_euclidean
54
+ - pearson_dot
55
+ - spearman_dot
56
+ - pearson_max
57
+ - spearman_max
58
+ model-index:
59
+ - name: SentenceTransformer based on google-bert/bert-base-uncased
60
+ results:
61
+ - task:
62
+ type: semantic-similarity
63
+ name: Semantic Similarity
64
+ dataset:
65
+ name: sts dev
66
+ type: sts-dev
67
+ metrics:
68
+ - type: pearson_cosine
69
+ value: 0.8750639784456109
70
+ name: Pearson Cosine
71
+ - type: spearman_cosine
72
+ value: 0.8763732796351635
73
+ name: Spearman Cosine
74
+ - type: pearson_manhattan
75
+ value: 0.8500806390555404
76
+ name: Pearson Manhattan
77
+ - type: spearman_manhattan
78
+ value: 0.8544026288312274
79
+ name: Spearman Manhattan
80
+ - type: pearson_euclidean
81
+ value: 0.8509873124432761
82
+ name: Pearson Euclidean
83
+ - type: spearman_euclidean
84
+ value: 0.8552711165079961
85
+ name: Spearman Euclidean
86
+ - type: pearson_dot
87
+ value: 0.820163390731617
88
+ name: Pearson Dot
89
+ - type: spearman_dot
90
+ value: 0.8230126279079186
91
+ name: Spearman Dot
92
+ - type: pearson_max
93
+ value: 0.8750639784456109
94
+ name: Pearson Max
95
+ - type: spearman_max
96
+ value: 0.8763732796351635
97
+ name: Spearman Max
98
+ - task:
99
+ type: semantic-similarity
100
+ name: Semantic Similarity
101
+ dataset:
102
+ name: sts test
103
+ type: sts-test
104
+ metrics:
105
+ - type: pearson_cosine
106
+ value: 0.8488910100773219
107
+ name: Pearson Cosine
108
+ - type: spearman_cosine
109
+ value: 0.8470522115508275
110
+ name: Spearman Cosine
111
+ - type: pearson_manhattan
112
+ value: 0.8346925106528352
113
+ name: Pearson Manhattan
114
+ - type: spearman_manhattan
115
+ value: 0.8347776246956976
116
+ name: Spearman Manhattan
117
+ - type: pearson_euclidean
118
+ value: 0.8352622451045902
119
+ name: Pearson Euclidean
120
+ - type: spearman_euclidean
121
+ value: 0.8351127906424753
122
+ name: Spearman Euclidean
123
+ - type: pearson_dot
124
+ value: 0.7832345853494516
125
+ name: Pearson Dot
126
+ - type: spearman_dot
127
+ value: 0.7761724556948709
128
+ name: Spearman Dot
129
+ - type: pearson_max
130
+ value: 0.8488910100773219
131
+ name: Pearson Max
132
+ - type: spearman_max
133
+ value: 0.8470522115508275
134
+ name: Spearman Max
135
+ ---
136
+
137
+ # SentenceTransformer based on google-bert/bert-base-uncased
138
+
139
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) on the [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) dataset. 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.
140
+
141
+ ## Model Details
142
+
143
+ ### Model Description
144
+ - **Model Type:** Sentence Transformer
145
+ - **Base model:** [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) <!-- at revision 86b5e0934494bd15c9632b12f734a8a67f723594 -->
146
+ - **Maximum Sequence Length:** 512 tokens
147
+ - **Output Dimensionality:** 768 tokens
148
+ - **Similarity Function:** Cosine Similarity
149
+ - **Training Dataset:**
150
+ - [stsb](https://huggingface.co/datasets/sentence-transformers/stsb)
151
+ - **Language:** en
152
+ <!-- - **License:** Unknown -->
153
+
154
+ ### Model Sources
155
+
156
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
157
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
158
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
159
+
160
+ ### Full Model Architecture
161
+
162
+ ```
163
+ SentenceTransformer(
164
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
165
+ (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})
166
+ )
167
+ ```
168
+
169
+ ## Usage
170
+
171
+ ### Direct Usage (Sentence Transformers)
172
+
173
+ First install the Sentence Transformers library:
174
+
175
+ ```bash
176
+ pip install -U sentence-transformers
177
+ ```
178
+
179
+ Then you can load this model and run inference.
180
+ ```python
181
+ from sentence_transformers import SentenceTransformer
182
+
183
+ # Download from the 🤗 Hub
184
+ model = SentenceTransformer("bingcheng9/bert-base-uncased-sts")
185
+ # Run inference
186
+ sentences = [
187
+ 'While Queen may refer to both Queen regent (sovereign) or Queen consort, the King has always been the sovereign.',
188
+ 'There is a very good reason not to refer to the Queen\'s spouse as "King" - because they aren\'t the King.',
189
+ 'A man sitting on the floor in a room is strumming a guitar.',
190
+ ]
191
+ embeddings = model.encode(sentences)
192
+ print(embeddings.shape)
193
+ # [3, 768]
194
+
195
+ # Get the similarity scores for the embeddings
196
+ similarities = model.similarity(embeddings, embeddings)
197
+ print(similarities.shape)
198
+ # [3, 3]
199
+ ```
200
+
201
+ <!--
202
+ ### Direct Usage (Transformers)
203
+
204
+ <details><summary>Click to see the direct usage in Transformers</summary>
205
+
206
+ </details>
207
+ -->
208
+
209
+ <!--
210
+ ### Downstream Usage (Sentence Transformers)
211
+
212
+ You can finetune this model on your own dataset.
213
+
214
+ <details><summary>Click to expand</summary>
215
+
216
+ </details>
217
+ -->
218
+
219
+ <!--
220
+ ### Out-of-Scope Use
221
+
222
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
223
+ -->
224
+
225
+ ## Evaluation
226
+
227
+ ### Metrics
228
+
229
+ #### Semantic Similarity
230
+ * Dataset: `sts-dev`
231
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
232
+
233
+ | Metric | Value |
234
+ |:--------------------|:-----------|
235
+ | pearson_cosine | 0.8751 |
236
+ | **spearman_cosine** | **0.8764** |
237
+ | pearson_manhattan | 0.8501 |
238
+ | spearman_manhattan | 0.8544 |
239
+ | pearson_euclidean | 0.851 |
240
+ | spearman_euclidean | 0.8553 |
241
+ | pearson_dot | 0.8202 |
242
+ | spearman_dot | 0.823 |
243
+ | pearson_max | 0.8751 |
244
+ | spearman_max | 0.8764 |
245
+
246
+ #### Semantic Similarity
247
+ * Dataset: `sts-test`
248
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
249
+
250
+ | Metric | Value |
251
+ |:--------------------|:-----------|
252
+ | pearson_cosine | 0.8489 |
253
+ | **spearman_cosine** | **0.8471** |
254
+ | pearson_manhattan | 0.8347 |
255
+ | spearman_manhattan | 0.8348 |
256
+ | pearson_euclidean | 0.8353 |
257
+ | spearman_euclidean | 0.8351 |
258
+ | pearson_dot | 0.7832 |
259
+ | spearman_dot | 0.7762 |
260
+ | pearson_max | 0.8489 |
261
+ | spearman_max | 0.8471 |
262
+
263
+ <!--
264
+ ## Bias, Risks and Limitations
265
+
266
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
267
+ -->
268
+
269
+ <!--
270
+ ### Recommendations
271
+
272
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
273
+ -->
274
+
275
+ ## Training Details
276
+
277
+ ### Training Dataset
278
+
279
+ #### stsb
280
+
281
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
282
+ * Size: 5,749 training samples
283
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
284
+ * Approximate statistics based on the first 1000 samples:
285
+ | | sentence1 | sentence2 | score |
286
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
287
+ | type | string | string | float |
288
+ | details | <ul><li>min: 6 tokens</li><li>mean: 10.0 tokens</li><li>max: 28 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 9.95 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.54</li><li>max: 1.0</li></ul> |
289
+ * Samples:
290
+ | sentence1 | sentence2 | score |
291
+ |:-----------------------------------------------------------|:----------------------------------------------------------------------|:------------------|
292
+ | <code>A plane is taking off.</code> | <code>An air plane is taking off.</code> | <code>1.0</code> |
293
+ | <code>A man is playing a large flute.</code> | <code>A man is playing a flute.</code> | <code>0.76</code> |
294
+ | <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> |
295
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
296
+ ```json
297
+ {
298
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
299
+ }
300
+ ```
301
+
302
+ ### Evaluation Dataset
303
+
304
+ #### stsb
305
+
306
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
307
+ * Size: 1,500 evaluation samples
308
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
309
+ * Approximate statistics based on the first 1000 samples:
310
+ | | sentence1 | sentence2 | score |
311
+ |:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
312
+ | type | string | string | float |
313
+ | details | <ul><li>min: 5 tokens</li><li>mean: 15.1 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.11 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.47</li><li>max: 1.0</li></ul> |
314
+ * Samples:
315
+ | sentence1 | sentence2 | score |
316
+ |:--------------------------------------------------|:------------------------------------------------------|:------------------|
317
+ | <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
318
+ | <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
319
+ | <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> |
320
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
321
+ ```json
322
+ {
323
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
324
+ }
325
+ ```
326
+
327
+ ### Training Hyperparameters
328
+ #### Non-Default Hyperparameters
329
+
330
+ - `eval_strategy`: steps
331
+ - `per_device_train_batch_size`: 16
332
+ - `per_device_eval_batch_size`: 16
333
+ - `num_train_epochs`: 4
334
+ - `warmup_ratio`: 0.1
335
+
336
+ #### All Hyperparameters
337
+ <details><summary>Click to expand</summary>
338
+
339
+ - `overwrite_output_dir`: False
340
+ - `do_predict`: False
341
+ - `eval_strategy`: steps
342
+ - `prediction_loss_only`: True
343
+ - `per_device_train_batch_size`: 16
344
+ - `per_device_eval_batch_size`: 16
345
+ - `per_gpu_train_batch_size`: None
346
+ - `per_gpu_eval_batch_size`: None
347
+ - `gradient_accumulation_steps`: 1
348
+ - `eval_accumulation_steps`: None
349
+ - `torch_empty_cache_steps`: None
350
+ - `learning_rate`: 5e-05
351
+ - `weight_decay`: 0.0
352
+ - `adam_beta1`: 0.9
353
+ - `adam_beta2`: 0.999
354
+ - `adam_epsilon`: 1e-08
355
+ - `max_grad_norm`: 1.0
356
+ - `num_train_epochs`: 4
357
+ - `max_steps`: -1
358
+ - `lr_scheduler_type`: linear
359
+ - `lr_scheduler_kwargs`: {}
360
+ - `warmup_ratio`: 0.1
361
+ - `warmup_steps`: 0
362
+ - `log_level`: passive
363
+ - `log_level_replica`: warning
364
+ - `log_on_each_node`: True
365
+ - `logging_nan_inf_filter`: True
366
+ - `save_safetensors`: True
367
+ - `save_on_each_node`: False
368
+ - `save_only_model`: False
369
+ - `restore_callback_states_from_checkpoint`: False
370
+ - `no_cuda`: False
371
+ - `use_cpu`: False
372
+ - `use_mps_device`: False
373
+ - `seed`: 42
374
+ - `data_seed`: None
375
+ - `jit_mode_eval`: False
376
+ - `use_ipex`: False
377
+ - `bf16`: False
378
+ - `fp16`: False
379
+ - `fp16_opt_level`: O1
380
+ - `half_precision_backend`: auto
381
+ - `bf16_full_eval`: False
382
+ - `fp16_full_eval`: False
383
+ - `tf32`: None
384
+ - `local_rank`: 0
385
+ - `ddp_backend`: None
386
+ - `tpu_num_cores`: None
387
+ - `tpu_metrics_debug`: False
388
+ - `debug`: []
389
+ - `dataloader_drop_last`: False
390
+ - `dataloader_num_workers`: 0
391
+ - `dataloader_prefetch_factor`: None
392
+ - `past_index`: -1
393
+ - `disable_tqdm`: False
394
+ - `remove_unused_columns`: True
395
+ - `label_names`: None
396
+ - `load_best_model_at_end`: False
397
+ - `ignore_data_skip`: False
398
+ - `fsdp`: []
399
+ - `fsdp_min_num_params`: 0
400
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
401
+ - `fsdp_transformer_layer_cls_to_wrap`: None
402
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
403
+ - `deepspeed`: None
404
+ - `label_smoothing_factor`: 0.0
405
+ - `optim`: adamw_torch
406
+ - `optim_args`: None
407
+ - `adafactor`: False
408
+ - `group_by_length`: False
409
+ - `length_column_name`: length
410
+ - `ddp_find_unused_parameters`: None
411
+ - `ddp_bucket_cap_mb`: None
412
+ - `ddp_broadcast_buffers`: False
413
+ - `dataloader_pin_memory`: True
414
+ - `dataloader_persistent_workers`: False
415
+ - `skip_memory_metrics`: True
416
+ - `use_legacy_prediction_loop`: False
417
+ - `push_to_hub`: False
418
+ - `resume_from_checkpoint`: None
419
+ - `hub_model_id`: None
420
+ - `hub_strategy`: every_save
421
+ - `hub_private_repo`: False
422
+ - `hub_always_push`: False
423
+ - `gradient_checkpointing`: False
424
+ - `gradient_checkpointing_kwargs`: None
425
+ - `include_inputs_for_metrics`: False
426
+ - `eval_do_concat_batches`: True
427
+ - `fp16_backend`: auto
428
+ - `push_to_hub_model_id`: None
429
+ - `push_to_hub_organization`: None
430
+ - `mp_parameters`:
431
+ - `auto_find_batch_size`: False
432
+ - `full_determinism`: False
433
+ - `torchdynamo`: None
434
+ - `ray_scope`: last
435
+ - `ddp_timeout`: 1800
436
+ - `torch_compile`: False
437
+ - `torch_compile_backend`: None
438
+ - `torch_compile_mode`: None
439
+ - `dispatch_batches`: None
440
+ - `split_batches`: None
441
+ - `include_tokens_per_second`: False
442
+ - `include_num_input_tokens_seen`: False
443
+ - `neftune_noise_alpha`: None
444
+ - `optim_target_modules`: None
445
+ - `batch_eval_metrics`: False
446
+ - `eval_on_start`: False
447
+ - `use_liger_kernel`: False
448
+ - `eval_use_gather_object`: False
449
+ - `batch_sampler`: batch_sampler
450
+ - `multi_dataset_batch_sampler`: proportional
451
+
452
+ </details>
453
+
454
+ ### Training Logs
455
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
456
+ |:------:|:----:|:-------------:|:------:|:-----------------------:|:------------------------:|
457
+ | 0.2778 | 100 | 0.0608 | 0.0409 | 0.8190 | - |
458
+ | 0.5556 | 200 | 0.0338 | 0.0308 | 0.8457 | - |
459
+ | 0.8333 | 300 | 0.0286 | 0.0261 | 0.8605 | - |
460
+ | 1.1111 | 400 | 0.0215 | 0.0299 | 0.8639 | - |
461
+ | 1.3889 | 500 | 0.0144 | 0.0284 | 0.8714 | - |
462
+ | 1.6667 | 600 | 0.0131 | 0.0261 | 0.8670 | - |
463
+ | 1.9444 | 700 | 0.0133 | 0.0261 | 0.8714 | - |
464
+ | 2.2222 | 800 | 0.0082 | 0.0266 | 0.8727 | - |
465
+ | 2.5 | 900 | 0.0069 | 0.0257 | 0.8722 | - |
466
+ | 2.7778 | 1000 | 0.0064 | 0.0256 | 0.8731 | - |
467
+ | 3.0556 | 1100 | 0.006 | 0.0273 | 0.8746 | - |
468
+ | 3.3333 | 1200 | 0.0046 | 0.0262 | 0.8757 | - |
469
+ | 3.6111 | 1300 | 0.0042 | 0.0260 | 0.8760 | - |
470
+ | 3.8889 | 1400 | 0.0039 | 0.0257 | 0.8764 | - |
471
+ | 4.0 | 1440 | - | - | - | 0.8471 |
472
+
473
+
474
+ ### Framework Versions
475
+ - Python: 3.12.4
476
+ - Sentence Transformers: 3.1.1
477
+ - Transformers: 4.45.2
478
+ - PyTorch: 2.2.2
479
+ - Accelerate: 0.26.0
480
+ - Datasets: 3.0.2
481
+ - Tokenizers: 0.20.1
482
+
483
+ ## Citation
484
+
485
+ ### BibTeX
486
+
487
+ #### Sentence Transformers
488
+ ```bibtex
489
+ @inproceedings{reimers-2019-sentence-bert,
490
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
491
+ author = "Reimers, Nils and Gurevych, Iryna",
492
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
493
+ month = "11",
494
+ year = "2019",
495
+ publisher = "Association for Computational Linguistics",
496
+ url = "https://arxiv.org/abs/1908.10084",
497
+ }
498
+ ```
499
+
500
+ <!--
501
+ ## Glossary
502
+
503
+ *Clearly define terms in order to be accessible across audiences.*
504
+ -->
505
+
506
+ <!--
507
+ ## Model Card Authors
508
+
509
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
510
+ -->
511
+
512
+ <!--
513
+ ## Model Card Contact
514
+
515
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
516
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 3072,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 12,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.45.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30522
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.45.2",
5
+ "pytorch": "2.2.2"
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:75cec214a218d408a1770d3e7bebd4e92d4b2aec578332b856f7816e6c14121b
3
+ size 437951328
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": false,
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": "BertTokenizer",
54
+ "unk_token": "[UNK]"
55
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff