robwhelan commited on
Commit
ecc37d7
·
verified ·
1 Parent(s): 4e21d0d

Upload fine-tuned BGE embeddings model for nuclear licensing search

Browse files
.ipynb_checkpoints/README-checkpoint.md ADDED
@@ -0,0 +1,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:8622
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: BAAI/bge-base-en-v1.5
10
+ widget:
11
+ - source_sentence: What is the purpose of geotechnical exploration at the PSEG Site?
12
+ sentences:
13
+ - 'The purposes of the PSEG Site geotechnical exploration and testing were to: -
14
+ Obtain new data to meet current NRC and vendor design control document Tier 1
15
+ site characteristics requirements as appropriate for an ESPA - Confirm and demonstrate
16
+ the applicability of the existing field data from the previous site exploration
17
+ work for the existing nuclear plants'
18
+ - Geotechnical evaluations at the PSEG Site included assessing soil stratigraphy
19
+ and groundwater conditions to identify potential risks and the suitability of
20
+ the site for construction, focusing on the mechanical properties of subsurface
21
+ materials.
22
+ - Table 3.8-3 Illinois Inventory of Archaeological Sites Entries within 6-miles
23
+ of DNPS (Sheet 2 of 28) lists various archaeological sites and their statuses
24
+ relevant to the regulatory considerations for the plant.
25
+ - source_sentence: The analysis of the identified nuclides can greatly aid in determining
26
+ the safety measures necessary for nuclear facilities.
27
+ sentences:
28
+ - IDENTIFIED NUCLIDES
29
+ - 'Peak Analysis Performed on: 5/29/2019 6:14:38 AM'
30
+ - 10 CFR Part 50, Appendix H, “Reactor Vessel Material Surveillance Program Requirements,”
31
+ requires that peak neutron fluence at the end of the design life of the vessel
32
+ will not exceed 1.0 x 10¹⁷ n/cm² (E > 1.0 MeV), or that reactor vessel beltline
33
+ materials be monitored by a surveillance program.
34
+ - source_sentence: The NRC assessment includes evaluations to determine the impact
35
+ of specific events on safety measures.
36
+ sentences:
37
+ - The staff noted that the licensee performed a root cause evaluation with an extent
38
+ of condition and extent of cause evaluation following the May 25 scram.
39
+ - In assessing operational events, it is crucial to differentiate between various
40
+ types of occurrences to ensure comprehensive safety evaluations encompass all
41
+ relevant aspects, including human factors and procedural adherence.
42
+ - The reactor trip breaker indicating lights provide crucial information on the
43
+ status of the reactor trip system during an Anticipated Transient Without Scram
44
+ (ATWS).
45
+ - source_sentence: Each reactor building isolation valve must remain effective during
46
+ various operational modes.
47
+ sentences:
48
+ - The RHRSW System functions to remove heat from the RHR System and Emergency Equipment
49
+ Cooling Water (EECW) System components by pumping water from Wheeler Reservoir
50
+ through the Residual Heat Removal (RHR) heat exchangers and Emergency Equipment
51
+ Cooling Water (EECW) System components and discharges back to Wheeler Reservoir.
52
+ - Each reactor building isolation valve shall be OPERABLE.
53
+ - Separate Condition entry is allowed for each penetration flow path.
54
+ - source_sentence: What is the purpose of the Rapid Borate Stop Valve in Reactor Control?
55
+ sentences:
56
+ - CLOSE the Air Supply Isolation Valve, 12CV160 A/S, AIR SUPPLY FOR 12CV160.
57
+ - The NRC staff is reviewing Westinghouse’s license renewal application and preparing
58
+ an environmental impact statement (EIS) in accordance with the National Environmental
59
+ Policy Act of 1969.
60
+ - Locates and discusses opening 1CV175, Rapid Borate Stop Valve by disengaging clutch
61
+ and rotating handwheel (counterclockwise).
62
+ pipeline_tag: sentence-similarity
63
+ library_name: sentence-transformers
64
+ metrics:
65
+ - cosine_accuracy
66
+ model-index:
67
+ - name: SentenceTransformer based on BAAI/bge-base-en-v1.5
68
+ results:
69
+ - task:
70
+ type: triplet
71
+ name: Triplet
72
+ dataset:
73
+ name: validation
74
+ type: validation
75
+ metrics:
76
+ - type: cosine_accuracy
77
+ value: 0.9397031664848328
78
+ name: Cosine Accuracy
79
+ - type: cosine_accuracy
80
+ value: 0.9387755393981934
81
+ name: Cosine Accuracy
82
+ ---
83
+
84
+ # SentenceTransformer based on BAAI/bge-base-en-v1.5
85
+
86
+ ![Evaluation against BAAI/bge-base-en-v1.5](eval.png)
87
+
88
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). 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.
89
+
90
+ ## Model Details
91
+
92
+ ### Model Description
93
+ - **Model Type:** Sentence Transformer
94
+ - **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
95
+ - **Maximum Sequence Length:** 512 tokens
96
+ - **Output Dimensionality:** 768 dimensions
97
+ - **Similarity Function:** Cosine Similarity
98
+ <!-- - **Training Dataset:** Unknown -->
99
+ <!-- - **Language:** Unknown -->
100
+ <!-- - **License:** Unknown -->
101
+
102
+ ### Model Sources
103
+
104
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
105
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
106
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
107
+
108
+ ### Full Model Architecture
109
+
110
+ ```
111
+ SentenceTransformer(
112
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
113
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
114
+ (2): Normalize()
115
+ )
116
+ ```
117
+
118
+ ## Usage
119
+
120
+ ### Direct Usage (Sentence Transformers)
121
+
122
+ First install the Sentence Transformers library:
123
+
124
+ ```bash
125
+ pip install -U sentence-transformers
126
+ ```
127
+
128
+ Then you can load this model and run inference.
129
+ ```python
130
+ from sentence_transformers import SentenceTransformer
131
+
132
+ # Download from the 🤗 Hub
133
+ model = SentenceTransformer("sentence_transformers_model_id")
134
+ # Run inference
135
+ sentences = [
136
+ 'What is the purpose of the Rapid Borate Stop Valve in Reactor Control?',
137
+ 'Locates and discusses opening 1CV175, Rapid Borate Stop Valve by disengaging clutch and rotating handwheel (counterclockwise).',
138
+ 'CLOSE the Air Supply Isolation Valve, 12CV160 A/S, AIR SUPPLY FOR 12CV160.',
139
+ ]
140
+ embeddings = model.encode(sentences)
141
+ print(embeddings.shape)
142
+ # [3, 768]
143
+
144
+ # Get the similarity scores for the embeddings
145
+ similarities = model.similarity(embeddings, embeddings)
146
+ print(similarities.shape)
147
+ # [3, 3]
148
+ ```
149
+
150
+ <!--
151
+ ### Direct Usage (Transformers)
152
+
153
+ <details><summary>Click to see the direct usage in Transformers</summary>
154
+
155
+ </details>
156
+ -->
157
+
158
+ <!--
159
+ ### Downstream Usage (Sentence Transformers)
160
+
161
+ You can finetune this model on your own dataset.
162
+
163
+ <details><summary>Click to expand</summary>
164
+
165
+ </details>
166
+ -->
167
+
168
+ <!--
169
+ ### Out-of-Scope Use
170
+
171
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
172
+ -->
173
+
174
+ ## Evaluation
175
+
176
+ ### Metrics
177
+
178
+ #### Triplet
179
+
180
+ * Dataset: `validation`
181
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
182
+
183
+ | Metric | Value |
184
+ |:--------------------|:-----------|
185
+ | **cosine_accuracy** | **0.9397** |
186
+
187
+ #### Triplet
188
+
189
+ * Dataset: `validation`
190
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
191
+
192
+ | Metric | Value |
193
+ |:--------------------|:-----------|
194
+ | **cosine_accuracy** | **0.9388** |
195
+
196
+ <!--
197
+ ## Bias, Risks and Limitations
198
+
199
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
200
+ -->
201
+
202
+ <!--
203
+ ### Recommendations
204
+
205
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
206
+ -->
207
+
208
+ ## Training Details
209
+
210
+ ### Training Dataset
211
+
212
+ #### Unnamed Dataset
213
+
214
+ * Size: 8,622 training samples
215
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
216
+ * Approximate statistics based on the first 1000 samples:
217
+ | | sentence_0 | sentence_1 | sentence_2 |
218
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
219
+ | type | string | string | string |
220
+ | details | <ul><li>min: 5 tokens</li><li>mean: 14.64 tokens</li><li>max: 41 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 43.24 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 31.29 tokens</li><li>max: 512 tokens</li></ul> |
221
+ * Samples:
222
+ | sentence_0 | sentence_1 | sentence_2 |
223
+ |:----------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
224
+ | <code>What is the concentration of H-3 in µCi/ml?</code> | <code>H-3 has a concentration of 8.5E-10 µCi/ml.</code> | <code>The isotope Rb-89 has a release rate of 4.7E-05 Ci/yr.</code> |
225
+ | <code>gamma calibration procedures</code> | <code>Gamma Calibration: GM detectors positioned perpendicular to source for M-44-9 in which the front of probe faces source.</code> | <code>Effective calibration of GM detectors is crucial for accurate measurement. Procedures often involve using a consistent radiation source and monitoring the response of various detector models across multiple energy levels.</code> |
226
+ | <code>What is the function of the TAP-A program in thermal analysis?</code> | <code>The TAP-A program is applicable to both “transient and steady-state heat transfer in multidimensional systems having arbitrary geometric configurations, boundary conditions, initial conditions, and physical properties.</code> | <code>The wall panel model for the crane wall is 48 ft long with 8 axial stations each 6 ft in length.</code> |
227
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
228
+ ```json
229
+ {
230
+ "scale": 20.0,
231
+ "similarity_fct": "cos_sim"
232
+ }
233
+ ```
234
+
235
+ ### Training Hyperparameters
236
+ #### Non-Default Hyperparameters
237
+
238
+ - `eval_strategy`: steps
239
+ - `per_device_train_batch_size`: 32
240
+ - `per_device_eval_batch_size`: 32
241
+ - `num_train_epochs`: 5
242
+ - `fp16`: True
243
+ - `multi_dataset_batch_sampler`: round_robin
244
+
245
+ #### All Hyperparameters
246
+ <details><summary>Click to expand</summary>
247
+
248
+ - `overwrite_output_dir`: False
249
+ - `do_predict`: False
250
+ - `eval_strategy`: steps
251
+ - `prediction_loss_only`: True
252
+ - `per_device_train_batch_size`: 32
253
+ - `per_device_eval_batch_size`: 32
254
+ - `per_gpu_train_batch_size`: None
255
+ - `per_gpu_eval_batch_size`: None
256
+ - `gradient_accumulation_steps`: 1
257
+ - `eval_accumulation_steps`: None
258
+ - `torch_empty_cache_steps`: None
259
+ - `learning_rate`: 5e-05
260
+ - `weight_decay`: 0.0
261
+ - `adam_beta1`: 0.9
262
+ - `adam_beta2`: 0.999
263
+ - `adam_epsilon`: 1e-08
264
+ - `max_grad_norm`: 1
265
+ - `num_train_epochs`: 5
266
+ - `max_steps`: -1
267
+ - `lr_scheduler_type`: linear
268
+ - `lr_scheduler_kwargs`: {}
269
+ - `warmup_ratio`: 0.0
270
+ - `warmup_steps`: 0
271
+ - `log_level`: passive
272
+ - `log_level_replica`: warning
273
+ - `log_on_each_node`: True
274
+ - `logging_nan_inf_filter`: True
275
+ - `save_safetensors`: True
276
+ - `save_on_each_node`: False
277
+ - `save_only_model`: False
278
+ - `restore_callback_states_from_checkpoint`: False
279
+ - `no_cuda`: False
280
+ - `use_cpu`: False
281
+ - `use_mps_device`: False
282
+ - `seed`: 42
283
+ - `data_seed`: None
284
+ - `jit_mode_eval`: False
285
+ - `use_ipex`: False
286
+ - `bf16`: False
287
+ - `fp16`: True
288
+ - `fp16_opt_level`: O1
289
+ - `half_precision_backend`: auto
290
+ - `bf16_full_eval`: False
291
+ - `fp16_full_eval`: False
292
+ - `tf32`: None
293
+ - `local_rank`: 0
294
+ - `ddp_backend`: None
295
+ - `tpu_num_cores`: None
296
+ - `tpu_metrics_debug`: False
297
+ - `debug`: []
298
+ - `dataloader_drop_last`: False
299
+ - `dataloader_num_workers`: 0
300
+ - `dataloader_prefetch_factor`: None
301
+ - `past_index`: -1
302
+ - `disable_tqdm`: False
303
+ - `remove_unused_columns`: True
304
+ - `label_names`: None
305
+ - `load_best_model_at_end`: False
306
+ - `ignore_data_skip`: False
307
+ - `fsdp`: []
308
+ - `fsdp_min_num_params`: 0
309
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
310
+ - `tp_size`: 0
311
+ - `fsdp_transformer_layer_cls_to_wrap`: None
312
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
313
+ - `deepspeed`: None
314
+ - `label_smoothing_factor`: 0.0
315
+ - `optim`: adamw_torch
316
+ - `optim_args`: None
317
+ - `adafactor`: False
318
+ - `group_by_length`: False
319
+ - `length_column_name`: length
320
+ - `ddp_find_unused_parameters`: None
321
+ - `ddp_bucket_cap_mb`: None
322
+ - `ddp_broadcast_buffers`: False
323
+ - `dataloader_pin_memory`: True
324
+ - `dataloader_persistent_workers`: False
325
+ - `skip_memory_metrics`: True
326
+ - `use_legacy_prediction_loop`: False
327
+ - `push_to_hub`: False
328
+ - `resume_from_checkpoint`: None
329
+ - `hub_model_id`: None
330
+ - `hub_strategy`: every_save
331
+ - `hub_private_repo`: None
332
+ - `hub_always_push`: False
333
+ - `gradient_checkpointing`: False
334
+ - `gradient_checkpointing_kwargs`: None
335
+ - `include_inputs_for_metrics`: False
336
+ - `include_for_metrics`: []
337
+ - `eval_do_concat_batches`: True
338
+ - `fp16_backend`: auto
339
+ - `push_to_hub_model_id`: None
340
+ - `push_to_hub_organization`: None
341
+ - `mp_parameters`:
342
+ - `auto_find_batch_size`: False
343
+ - `full_determinism`: False
344
+ - `torchdynamo`: None
345
+ - `ray_scope`: last
346
+ - `ddp_timeout`: 1800
347
+ - `torch_compile`: False
348
+ - `torch_compile_backend`: None
349
+ - `torch_compile_mode`: None
350
+ - `include_tokens_per_second`: False
351
+ - `include_num_input_tokens_seen`: False
352
+ - `neftune_noise_alpha`: None
353
+ - `optim_target_modules`: None
354
+ - `batch_eval_metrics`: False
355
+ - `eval_on_start`: False
356
+ - `use_liger_kernel`: False
357
+ - `eval_use_gather_object`: False
358
+ - `average_tokens_across_devices`: False
359
+ - `prompts`: None
360
+ - `batch_sampler`: batch_sampler
361
+ - `multi_dataset_batch_sampler`: round_robin
362
+
363
+ </details>
364
+
365
+ ### Training Logs
366
+ | Epoch | Step | Training Loss | validation_cosine_accuracy |
367
+ |:------:|:----:|:-------------:|:--------------------------:|
368
+ | 0.5556 | 200 | - | 0.9272 |
369
+ | 1.0 | 360 | - | 0.9318 |
370
+ | 1.1111 | 400 | - | 0.9309 |
371
+ | 1.3889 | 500 | 0.5286 | - |
372
+ | 1.6667 | 600 | - | 0.9355 |
373
+ | 2.0 | 720 | - | 0.9378 |
374
+ | 2.2222 | 800 | - | 0.9374 |
375
+ | 2.7778 | 1000 | 0.2751 | 0.9397 |
376
+ | 3.0 | 1080 | - | 0.9397 |
377
+ | 0.7407 | 200 | - | 0.9374 |
378
+ | 1.0 | 270 | - | 0.9369 |
379
+ | 1.4815 | 400 | - | 0.9374 |
380
+ | 1.8519 | 500 | 0.2128 | - |
381
+ | 2.0 | 540 | - | 0.9383 |
382
+ | 2.2222 | 600 | - | 0.9388 |
383
+
384
+
385
+ ### Framework Versions
386
+ - Python: 3.10.14
387
+ - Sentence Transformers: 4.1.0
388
+ - Transformers: 4.51.3
389
+ - PyTorch: 2.2.2
390
+ - Accelerate: 1.6.0
391
+ - Datasets: 3.5.0
392
+ - Tokenizers: 0.21.1
393
+
394
+ ## Citation
395
+
396
+ ### BibTeX
397
+
398
+ #### Sentence Transformers
399
+ ```bibtex
400
+ @inproceedings{reimers-2019-sentence-bert,
401
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
402
+ author = "Reimers, Nils and Gurevych, Iryna",
403
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
404
+ month = "11",
405
+ year = "2019",
406
+ publisher = "Association for Computational Linguistics",
407
+ url = "https://arxiv.org/abs/1908.10084",
408
+ }
409
+ ```
410
+
411
+ #### MultipleNegativesRankingLoss
412
+ ```bibtex
413
+ @misc{henderson2017efficient,
414
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
415
+ 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},
416
+ year={2017},
417
+ eprint={1705.00652},
418
+ archivePrefix={arXiv},
419
+ primaryClass={cs.CL}
420
+ }
421
+ ```
422
+
423
+ <!--
424
+ ## Glossary
425
+
426
+ *Clearly define terms in order to be accessible across audiences.*
427
+ -->
428
+
429
+ <!--
430
+ ## Model Card Authors
431
+
432
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
433
+ -->
434
+
435
+ <!--
436
+ ## Model Card Contact
437
+
438
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
439
+ -->
.ipynb_checkpoints/eval-checkpoint.png ADDED
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
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,439 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:8622
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: BAAI/bge-base-en-v1.5
10
+ widget:
11
+ - source_sentence: What is the purpose of geotechnical exploration at the PSEG Site?
12
+ sentences:
13
+ - 'The purposes of the PSEG Site geotechnical exploration and testing were to: -
14
+ Obtain new data to meet current NRC and vendor design control document Tier 1
15
+ site characteristics requirements as appropriate for an ESPA - Confirm and demonstrate
16
+ the applicability of the existing field data from the previous site exploration
17
+ work for the existing nuclear plants'
18
+ - Geotechnical evaluations at the PSEG Site included assessing soil stratigraphy
19
+ and groundwater conditions to identify potential risks and the suitability of
20
+ the site for construction, focusing on the mechanical properties of subsurface
21
+ materials.
22
+ - Table 3.8-3 Illinois Inventory of Archaeological Sites Entries within 6-miles
23
+ of DNPS (Sheet 2 of 28) lists various archaeological sites and their statuses
24
+ relevant to the regulatory considerations for the plant.
25
+ - source_sentence: The analysis of the identified nuclides can greatly aid in determining
26
+ the safety measures necessary for nuclear facilities.
27
+ sentences:
28
+ - IDENTIFIED NUCLIDES
29
+ - 'Peak Analysis Performed on: 5/29/2019 6:14:38 AM'
30
+ - 10 CFR Part 50, Appendix H, “Reactor Vessel Material Surveillance Program Requirements,”
31
+ requires that peak neutron fluence at the end of the design life of the vessel
32
+ will not exceed 1.0 x 10¹⁷ n/cm² (E > 1.0 MeV), or that reactor vessel beltline
33
+ materials be monitored by a surveillance program.
34
+ - source_sentence: The NRC assessment includes evaluations to determine the impact
35
+ of specific events on safety measures.
36
+ sentences:
37
+ - The staff noted that the licensee performed a root cause evaluation with an extent
38
+ of condition and extent of cause evaluation following the May 25 scram.
39
+ - In assessing operational events, it is crucial to differentiate between various
40
+ types of occurrences to ensure comprehensive safety evaluations encompass all
41
+ relevant aspects, including human factors and procedural adherence.
42
+ - The reactor trip breaker indicating lights provide crucial information on the
43
+ status of the reactor trip system during an Anticipated Transient Without Scram
44
+ (ATWS).
45
+ - source_sentence: Each reactor building isolation valve must remain effective during
46
+ various operational modes.
47
+ sentences:
48
+ - The RHRSW System functions to remove heat from the RHR System and Emergency Equipment
49
+ Cooling Water (EECW) System components by pumping water from Wheeler Reservoir
50
+ through the Residual Heat Removal (RHR) heat exchangers and Emergency Equipment
51
+ Cooling Water (EECW) System components and discharges back to Wheeler Reservoir.
52
+ - Each reactor building isolation valve shall be OPERABLE.
53
+ - Separate Condition entry is allowed for each penetration flow path.
54
+ - source_sentence: What is the purpose of the Rapid Borate Stop Valve in Reactor Control?
55
+ sentences:
56
+ - CLOSE the Air Supply Isolation Valve, 12CV160 A/S, AIR SUPPLY FOR 12CV160.
57
+ - The NRC staff is reviewing Westinghouse’s license renewal application and preparing
58
+ an environmental impact statement (EIS) in accordance with the National Environmental
59
+ Policy Act of 1969.
60
+ - Locates and discusses opening 1CV175, Rapid Borate Stop Valve by disengaging clutch
61
+ and rotating handwheel (counterclockwise).
62
+ pipeline_tag: sentence-similarity
63
+ library_name: sentence-transformers
64
+ metrics:
65
+ - cosine_accuracy
66
+ model-index:
67
+ - name: SentenceTransformer based on BAAI/bge-base-en-v1.5
68
+ results:
69
+ - task:
70
+ type: triplet
71
+ name: Triplet
72
+ dataset:
73
+ name: validation
74
+ type: validation
75
+ metrics:
76
+ - type: cosine_accuracy
77
+ value: 0.9397031664848328
78
+ name: Cosine Accuracy
79
+ - type: cosine_accuracy
80
+ value: 0.9387755393981934
81
+ name: Cosine Accuracy
82
+ ---
83
+
84
+ # SentenceTransformer based on BAAI/bge-base-en-v1.5
85
+
86
+ ![Evaluation against BAAI/bge-base-en-v1.5](eval.png)
87
+
88
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). 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.
89
+
90
+ ## Model Details
91
+
92
+ ### Model Description
93
+ - **Model Type:** Sentence Transformer
94
+ - **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
95
+ - **Maximum Sequence Length:** 512 tokens
96
+ - **Output Dimensionality:** 768 dimensions
97
+ - **Similarity Function:** Cosine Similarity
98
+ <!-- - **Training Dataset:** Unknown -->
99
+ <!-- - **Language:** Unknown -->
100
+ <!-- - **License:** Unknown -->
101
+
102
+ ### Model Sources
103
+
104
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
105
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
106
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
107
+
108
+ ### Full Model Architecture
109
+
110
+ ```
111
+ SentenceTransformer(
112
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
113
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
114
+ (2): Normalize()
115
+ )
116
+ ```
117
+
118
+ ## Usage
119
+
120
+ ### Direct Usage (Sentence Transformers)
121
+
122
+ First install the Sentence Transformers library:
123
+
124
+ ```bash
125
+ pip install -U sentence-transformers
126
+ ```
127
+
128
+ Then you can load this model and run inference.
129
+ ```python
130
+ from sentence_transformers import SentenceTransformer
131
+
132
+ # Download from the 🤗 Hub
133
+ model = SentenceTransformer("sentence_transformers_model_id")
134
+ # Run inference
135
+ sentences = [
136
+ 'What is the purpose of the Rapid Borate Stop Valve in Reactor Control?',
137
+ 'Locates and discusses opening 1CV175, Rapid Borate Stop Valve by disengaging clutch and rotating handwheel (counterclockwise).',
138
+ 'CLOSE the Air Supply Isolation Valve, 12CV160 A/S, AIR SUPPLY FOR 12CV160.',
139
+ ]
140
+ embeddings = model.encode(sentences)
141
+ print(embeddings.shape)
142
+ # [3, 768]
143
+
144
+ # Get the similarity scores for the embeddings
145
+ similarities = model.similarity(embeddings, embeddings)
146
+ print(similarities.shape)
147
+ # [3, 3]
148
+ ```
149
+
150
+ <!--
151
+ ### Direct Usage (Transformers)
152
+
153
+ <details><summary>Click to see the direct usage in Transformers</summary>
154
+
155
+ </details>
156
+ -->
157
+
158
+ <!--
159
+ ### Downstream Usage (Sentence Transformers)
160
+
161
+ You can finetune this model on your own dataset.
162
+
163
+ <details><summary>Click to expand</summary>
164
+
165
+ </details>
166
+ -->
167
+
168
+ <!--
169
+ ### Out-of-Scope Use
170
+
171
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
172
+ -->
173
+
174
+ ## Evaluation
175
+
176
+ ### Metrics
177
+
178
+ #### Triplet
179
+
180
+ * Dataset: `validation`
181
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
182
+
183
+ | Metric | Value |
184
+ |:--------------------|:-----------|
185
+ | **cosine_accuracy** | **0.9397** |
186
+
187
+ #### Triplet
188
+
189
+ * Dataset: `validation`
190
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
191
+
192
+ | Metric | Value |
193
+ |:--------------------|:-----------|
194
+ | **cosine_accuracy** | **0.9388** |
195
+
196
+ <!--
197
+ ## Bias, Risks and Limitations
198
+
199
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
200
+ -->
201
+
202
+ <!--
203
+ ### Recommendations
204
+
205
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
206
+ -->
207
+
208
+ ## Training Details
209
+
210
+ ### Training Dataset
211
+
212
+ #### Unnamed Dataset
213
+
214
+ * Size: 8,622 training samples
215
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>sentence_2</code>
216
+ * Approximate statistics based on the first 1000 samples:
217
+ | | sentence_0 | sentence_1 | sentence_2 |
218
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
219
+ | type | string | string | string |
220
+ | details | <ul><li>min: 5 tokens</li><li>mean: 14.64 tokens</li><li>max: 41 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 43.24 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 31.29 tokens</li><li>max: 512 tokens</li></ul> |
221
+ * Samples:
222
+ | sentence_0 | sentence_1 | sentence_2 |
223
+ |:----------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
224
+ | <code>What is the concentration of H-3 in µCi/ml?</code> | <code>H-3 has a concentration of 8.5E-10 µCi/ml.</code> | <code>The isotope Rb-89 has a release rate of 4.7E-05 Ci/yr.</code> |
225
+ | <code>gamma calibration procedures</code> | <code>Gamma Calibration: GM detectors positioned perpendicular to source for M-44-9 in which the front of probe faces source.</code> | <code>Effective calibration of GM detectors is crucial for accurate measurement. Procedures often involve using a consistent radiation source and monitoring the response of various detector models across multiple energy levels.</code> |
226
+ | <code>What is the function of the TAP-A program in thermal analysis?</code> | <code>The TAP-A program is applicable to both “transient and steady-state heat transfer in multidimensional systems having arbitrary geometric configurations, boundary conditions, initial conditions, and physical properties.</code> | <code>The wall panel model for the crane wall is 48 ft long with 8 axial stations each 6 ft in length.</code> |
227
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
228
+ ```json
229
+ {
230
+ "scale": 20.0,
231
+ "similarity_fct": "cos_sim"
232
+ }
233
+ ```
234
+
235
+ ### Training Hyperparameters
236
+ #### Non-Default Hyperparameters
237
+
238
+ - `eval_strategy`: steps
239
+ - `per_device_train_batch_size`: 32
240
+ - `per_device_eval_batch_size`: 32
241
+ - `num_train_epochs`: 5
242
+ - `fp16`: True
243
+ - `multi_dataset_batch_sampler`: round_robin
244
+
245
+ #### All Hyperparameters
246
+ <details><summary>Click to expand</summary>
247
+
248
+ - `overwrite_output_dir`: False
249
+ - `do_predict`: False
250
+ - `eval_strategy`: steps
251
+ - `prediction_loss_only`: True
252
+ - `per_device_train_batch_size`: 32
253
+ - `per_device_eval_batch_size`: 32
254
+ - `per_gpu_train_batch_size`: None
255
+ - `per_gpu_eval_batch_size`: None
256
+ - `gradient_accumulation_steps`: 1
257
+ - `eval_accumulation_steps`: None
258
+ - `torch_empty_cache_steps`: None
259
+ - `learning_rate`: 5e-05
260
+ - `weight_decay`: 0.0
261
+ - `adam_beta1`: 0.9
262
+ - `adam_beta2`: 0.999
263
+ - `adam_epsilon`: 1e-08
264
+ - `max_grad_norm`: 1
265
+ - `num_train_epochs`: 5
266
+ - `max_steps`: -1
267
+ - `lr_scheduler_type`: linear
268
+ - `lr_scheduler_kwargs`: {}
269
+ - `warmup_ratio`: 0.0
270
+ - `warmup_steps`: 0
271
+ - `log_level`: passive
272
+ - `log_level_replica`: warning
273
+ - `log_on_each_node`: True
274
+ - `logging_nan_inf_filter`: True
275
+ - `save_safetensors`: True
276
+ - `save_on_each_node`: False
277
+ - `save_only_model`: False
278
+ - `restore_callback_states_from_checkpoint`: False
279
+ - `no_cuda`: False
280
+ - `use_cpu`: False
281
+ - `use_mps_device`: False
282
+ - `seed`: 42
283
+ - `data_seed`: None
284
+ - `jit_mode_eval`: False
285
+ - `use_ipex`: False
286
+ - `bf16`: False
287
+ - `fp16`: True
288
+ - `fp16_opt_level`: O1
289
+ - `half_precision_backend`: auto
290
+ - `bf16_full_eval`: False
291
+ - `fp16_full_eval`: False
292
+ - `tf32`: None
293
+ - `local_rank`: 0
294
+ - `ddp_backend`: None
295
+ - `tpu_num_cores`: None
296
+ - `tpu_metrics_debug`: False
297
+ - `debug`: []
298
+ - `dataloader_drop_last`: False
299
+ - `dataloader_num_workers`: 0
300
+ - `dataloader_prefetch_factor`: None
301
+ - `past_index`: -1
302
+ - `disable_tqdm`: False
303
+ - `remove_unused_columns`: True
304
+ - `label_names`: None
305
+ - `load_best_model_at_end`: False
306
+ - `ignore_data_skip`: False
307
+ - `fsdp`: []
308
+ - `fsdp_min_num_params`: 0
309
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
310
+ - `tp_size`: 0
311
+ - `fsdp_transformer_layer_cls_to_wrap`: None
312
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
313
+ - `deepspeed`: None
314
+ - `label_smoothing_factor`: 0.0
315
+ - `optim`: adamw_torch
316
+ - `optim_args`: None
317
+ - `adafactor`: False
318
+ - `group_by_length`: False
319
+ - `length_column_name`: length
320
+ - `ddp_find_unused_parameters`: None
321
+ - `ddp_bucket_cap_mb`: None
322
+ - `ddp_broadcast_buffers`: False
323
+ - `dataloader_pin_memory`: True
324
+ - `dataloader_persistent_workers`: False
325
+ - `skip_memory_metrics`: True
326
+ - `use_legacy_prediction_loop`: False
327
+ - `push_to_hub`: False
328
+ - `resume_from_checkpoint`: None
329
+ - `hub_model_id`: None
330
+ - `hub_strategy`: every_save
331
+ - `hub_private_repo`: None
332
+ - `hub_always_push`: False
333
+ - `gradient_checkpointing`: False
334
+ - `gradient_checkpointing_kwargs`: None
335
+ - `include_inputs_for_metrics`: False
336
+ - `include_for_metrics`: []
337
+ - `eval_do_concat_batches`: True
338
+ - `fp16_backend`: auto
339
+ - `push_to_hub_model_id`: None
340
+ - `push_to_hub_organization`: None
341
+ - `mp_parameters`:
342
+ - `auto_find_batch_size`: False
343
+ - `full_determinism`: False
344
+ - `torchdynamo`: None
345
+ - `ray_scope`: last
346
+ - `ddp_timeout`: 1800
347
+ - `torch_compile`: False
348
+ - `torch_compile_backend`: None
349
+ - `torch_compile_mode`: None
350
+ - `include_tokens_per_second`: False
351
+ - `include_num_input_tokens_seen`: False
352
+ - `neftune_noise_alpha`: None
353
+ - `optim_target_modules`: None
354
+ - `batch_eval_metrics`: False
355
+ - `eval_on_start`: False
356
+ - `use_liger_kernel`: False
357
+ - `eval_use_gather_object`: False
358
+ - `average_tokens_across_devices`: False
359
+ - `prompts`: None
360
+ - `batch_sampler`: batch_sampler
361
+ - `multi_dataset_batch_sampler`: round_robin
362
+
363
+ </details>
364
+
365
+ ### Training Logs
366
+ | Epoch | Step | Training Loss | validation_cosine_accuracy |
367
+ |:------:|:----:|:-------------:|:--------------------------:|
368
+ | 0.5556 | 200 | - | 0.9272 |
369
+ | 1.0 | 360 | - | 0.9318 |
370
+ | 1.1111 | 400 | - | 0.9309 |
371
+ | 1.3889 | 500 | 0.5286 | - |
372
+ | 1.6667 | 600 | - | 0.9355 |
373
+ | 2.0 | 720 | - | 0.9378 |
374
+ | 2.2222 | 800 | - | 0.9374 |
375
+ | 2.7778 | 1000 | 0.2751 | 0.9397 |
376
+ | 3.0 | 1080 | - | 0.9397 |
377
+ | 0.7407 | 200 | - | 0.9374 |
378
+ | 1.0 | 270 | - | 0.9369 |
379
+ | 1.4815 | 400 | - | 0.9374 |
380
+ | 1.8519 | 500 | 0.2128 | - |
381
+ | 2.0 | 540 | - | 0.9383 |
382
+ | 2.2222 | 600 | - | 0.9388 |
383
+
384
+
385
+ ### Framework Versions
386
+ - Python: 3.10.14
387
+ - Sentence Transformers: 4.1.0
388
+ - Transformers: 4.51.3
389
+ - PyTorch: 2.2.2
390
+ - Accelerate: 1.6.0
391
+ - Datasets: 3.5.0
392
+ - Tokenizers: 0.21.1
393
+
394
+ ## Citation
395
+
396
+ ### BibTeX
397
+
398
+ #### Sentence Transformers
399
+ ```bibtex
400
+ @inproceedings{reimers-2019-sentence-bert,
401
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
402
+ author = "Reimers, Nils and Gurevych, Iryna",
403
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
404
+ month = "11",
405
+ year = "2019",
406
+ publisher = "Association for Computational Linguistics",
407
+ url = "https://arxiv.org/abs/1908.10084",
408
+ }
409
+ ```
410
+
411
+ #### MultipleNegativesRankingLoss
412
+ ```bibtex
413
+ @misc{henderson2017efficient,
414
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
415
+ 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},
416
+ year={2017},
417
+ eprint={1705.00652},
418
+ archivePrefix={arXiv},
419
+ primaryClass={cs.CL}
420
+ }
421
+ ```
422
+
423
+ <!--
424
+ ## Glossary
425
+
426
+ *Clearly define terms in order to be accessible across audiences.*
427
+ -->
428
+
429
+ <!--
430
+ ## Model Card Authors
431
+
432
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
433
+ -->
434
+
435
+ <!--
436
+ ## Model Card Contact
437
+
438
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
439
+ -->
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "gradient_checkpointing": false,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "LABEL_0"
13
+ },
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "label2id": {
17
+ "LABEL_0": 0
18
+ },
19
+ "layer_norm_eps": 1e-12,
20
+ "max_position_embeddings": 512,
21
+ "model_type": "bert",
22
+ "num_attention_heads": 12,
23
+ "num_hidden_layers": 12,
24
+ "pad_token_id": 0,
25
+ "position_embedding_type": "absolute",
26
+ "torch_dtype": "float32",
27
+ "transformers_version": "4.51.3",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 30522
31
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "4.1.0",
4
+ "transformers": "4.51.3",
5
+ "pytorch": "2.2.2"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
eval.png ADDED
eval/.ipynb_checkpoints/triplet_evaluation_validation_results-checkpoint.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ epoch,steps,accuracy_cosine
2
+ 1.0,270,0.9369202256202698
3
+ 2.0,540,0.9383116960525513
4
+ 3.0,810,0.9364563822746277
5
+ 4.0,1080,0.9373840689659119
6
+ 5.0,1350,0.9364563822746277
eval/triplet_evaluation_validation_results.csv ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ epoch,steps,accuracy_cosine
2
+ 1.0,270,0.9369202256202698
3
+ 2.0,540,0.9383116960525513
4
+ 3.0,810,0.9364563822746277
5
+ 4.0,1080,0.9373840689659119
6
+ 5.0,1350,0.9364563822746277
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d21e11fe473fec2293864218b534331c2639d140957aa65146975eb4c7d2d99e
3
+ size 437951328
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": true
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff