Sebbones commited on
Commit
5fd29be
·
verified ·
1 Parent(s): 4655fe8

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 384,
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,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:86807
8
+ - loss:CosineSimilarityLoss
9
+ base_model: sentence-transformers/all-MiniLM-L6-v2
10
+ widget:
11
+ - source_sentence: "[CLS] [KNOWLEDGE] NLTK [CTX] Programmierung einer pre-processing\
12
+ \ CI/CD Pipeline zur automatisierten Verarbeitung von Newsartikeln von Tamil zu\
13
+ \ Englisch, in Python unter Verwendung von NLTK und SpaCy\n [SEP]"
14
+ sentences:
15
+ - "[CLS] [KNOWLEDGE] SPOC [CTX] Single Point of Contact (SPOC) für die Business\
16
+ \ Units (Schnittstellenfunktion zu anderen Teilprojekten und Teams)\n [SEP]"
17
+ - "[CLS] [KNOWLEDGE] DIN 50001 [CTX] Mitarbeit zur Einführung eines Energiemanagementsystems\
18
+ \ nach DIN 50001\n [SEP]"
19
+ - "[CLS] [KNOWLEDGE] Risikomanagement [CTX] - Risikomanagement\n [SEP]"
20
+ - source_sentence: "[CLS] [KNOWLEDGE] 365 Tenant [CTX] Verantwortung Umzug Office\
21
+ \ 365 Tenant\n [SEP]"
22
+ sentences:
23
+ - '[CLS] [KNOWLEDGE] Change- [CTX] Change-, Problem-, Incident- und Releasemanagement
24
+ mit IBM Maximo. [SEP]'
25
+ - "[CLS] [SKILL] Performance-Untersuchung Oracle-Datenbanken [CTX] Reorganisation\
26
+ \ von SAP R/3 Systemen bzw. Oracle Datenbanken 10.2 mittels BRSPACE. Performance-Untersuchung\
27
+ \ und Parametrisierung von SAP R/3 Systemen und Oracle-Datenbanken 10g. Incident-Bearbeitung\
28
+ \ bzgl. SAP, Oracle und Unix über Remedy. Sap-Kernel\n [SEP]"
29
+ - '[CLS] [SKILL] Visualisierung DWH Mart Daten [CTX] Modellierung des Datenstroms
30
+ und erstellen von DWH Modellen mit Hilfe von ETL für Staging, Storage und Mart.
31
+ Visualisierung der DWH Mart Daten mit Microsoft Power BI. [SEP]'
32
+ - source_sentence: "[CLS] [KNOWLEDGE] Rechenzentrum [CTX] Abbau der Racks im alten\
33
+ \ Rechenzentrum\n [SEP]"
34
+ sentences:
35
+ - "[CLS] [KNOWLEDGE] Rechenzentrum [CTX] Abbau der Racks im alten Rechenzentrum\n\
36
+ \ [SEP]"
37
+ - "[CLS] [KNOWLEDGE] SAP [CTX] SAP Administration, Planung und Bereitstellung, Heterogene\
38
+ \ und Homogene Systemkopien, Upgrade, Solution Manger, LVM Enterprise (post copy\
39
+ \ automation), Patch OS/SAP/DB, config, SAP\n [SEP]"
40
+ - "[CLS] [SKILL] Erstellung Nutzerdatenbank [CTX] >- Erstellung einer Nutzerdatenbank\
41
+ \ mit DynamoDB\n [SEP]"
42
+ - source_sentence: "[CLS] [KNOWLEDGE] EU-DSGVO [CTX] Datenschutzrecht (Datenschutz-Grundverordnung\
43
+ \ (EU-DSGVO) und Bundesdatenschutzgesetz (BDSG neu)\n [SEP]"
44
+ sentences:
45
+ - "[CLS] [KNOWLEDGE] ITIL [CTX] Mitarbeit innerhalb der Prozesse der Prozesse Incident-Management\
46
+ \ / Service-Desk, Problem-Management, Change-Management, Release-Management, Availability-Management\
47
+ \ gem. ITIL\n [SEP]"
48
+ - "[CLS] [KNOWLEDGE] DSGVO [CTX] - Unterstützung und Beratung bei Architektur Fragen,\
49
+ \ betreffend lfd. BSI- Standards DSGVO/ GDPR Themen (ISO- Normen & Standards)...\n\
50
+ \ [SEP]"
51
+ - "[CLS] [KNOWLEDGE] RAS-Konfiguration [CTX] RAS-Konfiguration\n [SEP]"
52
+ - source_sentence: "[CLS] [KNOWLEDGE] Kunden-Konzernstandards [CTX] Konzeption, Erstellung\
53
+ \ und Umsetzung der IT-Sicherheitsrichtlinien für die Freigabe von geheimen Daten\
54
+ \ gemäß Kunden-Konzernstandards (ISO 27001, BSI-Grundschutz)\n [SEP]"
55
+ sentences:
56
+ - '[CLS] [KNOWLEDGE] Kundenberatung [CTX] Kundenberatung [SEP]'
57
+ - "[CLS] [KNOWLEDGE] Service-Katalog [CTX] Beauftragen der Hard- und Software, bzw.\
58
+ \ Leistungserbringung gem. Service-Katalog\n [SEP]"
59
+ - '[CLS] [KNOWLEDGE] Datenbanksystemen [CTX] Portierung mittels make-tools(make,vmake,makesap,mapro)
60
+ und Assembler-Routinen, Test und Support von DB2, Oracle und MaxDB auf Linux Sles8
61
+ und Sles9. Erstellung shared-libraries mit Sap Kernel 620 und 640 durch Einspielen
62
+ von Perforce-Sourcen. Test C und C++ Precompiler -Programme. Testen Datenbankfuntionalitäten
63
+ über SAP-CCMS und DB bzw. SAP-Laufzeitparameter (Shared Memory etc.). Installieren
64
+ und testen von diversen SAP Komponenten SAP R/3 4.6D, SAP Kernel 620 und 640 unter
65
+ Linux/zLinux 2.4 und 2.6 (64 Bit-Adressierung) mit verschiedenen Datenbanksystemen
66
+ als Database-Server (Oracle, DB2 und MaxDB). Testen SAP-Transaktionen mit CATT
67
+ (SAP computer aided test tool) und anpassen von Python und Perl Schnittstellen.
68
+ AIX 5.33, z/OS, SAP R/3 4.6D, WAS 6.20/6.40, DB2 V8.1, vi, K-Shell, C-Shell, bash,
69
+ ICLI, FTP, Smitty, TSO/ISPF, JCL, SAPSERV, AIX VG-PP-LP, yank, MaxDB 7.5, Linux/zLinux
70
+ 2.4/2.6, C, C++, Python, Perl Teamarbeit 3 Mitarbeiter. [SEP]'
71
+ pipeline_tag: sentence-similarity
72
+ library_name: sentence-transformers
73
+ metrics:
74
+ - pearson_cosine
75
+ - spearman_cosine
76
+ model-index:
77
+ - name: SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
78
+ results:
79
+ - task:
80
+ type: semantic-similarity
81
+ name: Semantic Similarity
82
+ dataset:
83
+ name: sts dev
84
+ type: sts-dev
85
+ metrics:
86
+ - type: pearson_cosine
87
+ value: 0.9898120947090514
88
+ name: Pearson Cosine
89
+ - type: spearman_cosine
90
+ value: 0.9570957645982657
91
+ name: Spearman Cosine
92
+ - task:
93
+ type: semantic-similarity
94
+ name: Semantic Similarity
95
+ dataset:
96
+ name: sts test
97
+ type: sts-test
98
+ metrics:
99
+ - type: pearson_cosine
100
+ value: 0.9896747270285828
101
+ name: Pearson Cosine
102
+ - type: spearman_cosine
103
+ value: 0.9591977829092115
104
+ name: Spearman Cosine
105
+ ---
106
+
107
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
108
+
109
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
110
+
111
+ ## Model Details
112
+
113
+ ### Model Description
114
+ - **Model Type:** Sentence Transformer
115
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
116
+ - **Maximum Sequence Length:** 256 tokens
117
+ - **Output Dimensionality:** 384 dimensions
118
+ - **Similarity Function:** Cosine Similarity
119
+ <!-- - **Training Dataset:** Unknown -->
120
+ <!-- - **Language:** Unknown -->
121
+ <!-- - **License:** Unknown -->
122
+
123
+ ### Model Sources
124
+
125
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
126
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
127
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
128
+
129
+ ### Full Model Architecture
130
+
131
+ ```
132
+ SentenceTransformer(
133
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
134
+ (1): Pooling({'word_embedding_dimension': 384, '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})
135
+ (2): Normalize()
136
+ )
137
+ ```
138
+
139
+ ## Usage
140
+
141
+ ### Direct Usage (Sentence Transformers)
142
+
143
+ First install the Sentence Transformers library:
144
+
145
+ ```bash
146
+ pip install -U sentence-transformers
147
+ ```
148
+
149
+ Then you can load this model and run inference.
150
+ ```python
151
+ from sentence_transformers import SentenceTransformer
152
+
153
+ # Download from the 🤗 Hub
154
+ model = SentenceTransformer("deedcon/bi-encoder-v2")
155
+ # Run inference
156
+ sentences = [
157
+ '[CLS] [KNOWLEDGE] Kunden-Konzernstandards [CTX] Konzeption, Erstellung und Umsetzung der IT-Sicherheitsrichtlinien für die Freigabe von geheimen Daten gemäß Kunden-Konzernstandards (ISO 27001, BSI-Grundschutz)\n [SEP]',
158
+ '[CLS] [KNOWLEDGE] Kundenberatung [CTX] Kundenberatung [SEP]',
159
+ '[CLS] [KNOWLEDGE] Service-Katalog [CTX] Beauftragen der Hard- und Software, bzw. Leistungserbringung gem. Service-Katalog\n [SEP]',
160
+ ]
161
+ embeddings = model.encode(sentences)
162
+ print(embeddings.shape)
163
+ # [3, 384]
164
+
165
+ # Get the similarity scores for the embeddings
166
+ similarities = model.similarity(embeddings, embeddings)
167
+ print(similarities.shape)
168
+ # [3, 3]
169
+ ```
170
+
171
+ <!--
172
+ ### Direct Usage (Transformers)
173
+
174
+ <details><summary>Click to see the direct usage in Transformers</summary>
175
+
176
+ </details>
177
+ -->
178
+
179
+ <!--
180
+ ### Downstream Usage (Sentence Transformers)
181
+
182
+ You can finetune this model on your own dataset.
183
+
184
+ <details><summary>Click to expand</summary>
185
+
186
+ </details>
187
+ -->
188
+
189
+ <!--
190
+ ### Out-of-Scope Use
191
+
192
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
193
+ -->
194
+
195
+ ## Evaluation
196
+
197
+ ### Metrics
198
+
199
+ #### Semantic Similarity
200
+
201
+ * Datasets: `sts-dev` and `sts-test`
202
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
203
+
204
+ | Metric | sts-dev | sts-test |
205
+ |:--------------------|:-----------|:-----------|
206
+ | pearson_cosine | 0.9898 | 0.9897 |
207
+ | **spearman_cosine** | **0.9571** | **0.9592** |
208
+
209
+ <!--
210
+ ## Bias, Risks and Limitations
211
+
212
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
213
+ -->
214
+
215
+ <!--
216
+ ### Recommendations
217
+
218
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
219
+ -->
220
+
221
+ ## Training Details
222
+
223
+ ### Training Dataset
224
+
225
+ #### Unnamed Dataset
226
+
227
+ * Size: 86,807 training samples
228
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>score</code>
229
+ * Approximate statistics based on the first 1000 samples:
230
+ | | text1 | text2 | score |
231
+ |:--------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:-----------------------------------------------------------------|
232
+ | type | string | string | float |
233
+ | details | <ul><li>min: 15 tokens</li><li>mean: 62.0 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 61.69 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: -0.08</li><li>mean: 0.45</li><li>max: 1.0</li></ul> |
234
+ * Samples:
235
+ | text1 | text2 | score |
236
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------|
237
+ | <code>[CLS] [SKILL] Dokumentieren Netzwerkinfrastruktur [CTX] Dokumentieren und Skizzieren der Netzwerkinfrastruktur. [SEP]</code> | <code>[CLS] [SKILL] Abarbeitung Incidents [CTX] Abarbeitung von Changes/ Incidents in Jira<br> [SEP]</code> | <code>0.1672067940235138</code> |
238
+ | <code>[CLS] [SKILL] Durchführung Abnahmetests [CTX] Erstellung von Testplänen und Durchführung von Abnahmetests im Rahmen des Release Managements. <br> [SEP]</code> | <code>[CLS] [KNOWLEDGE] Kostenrechnungswesen [CTX] Ist-Analyse der Produktionsabläufe sowie des vorhandene Kostenrechnungswesen . [SEP]</code> | <code>0.2705094516277313</code> |
239
+ | <code>[CLS] [KNOWLEDGE] MS SQL Datenbankabfragen [CTX] MS SQL Datenbankabfragen . [SEP]</code> | <code>[CLS] [SKILL] Erstellung MS SQL Datenbank [CTX] Erstellung & Modellierung der MS SQL Datenbank über Entity Framework<br> [SEP]</code> | <code>0.8471388816833496</code> |
240
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
241
+ ```json
242
+ {
243
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
244
+ }
245
+ ```
246
+
247
+ ### Evaluation Dataset
248
+
249
+ #### Unnamed Dataset
250
+
251
+ * Size: 17,361 evaluation samples
252
+ * Columns: <code>text1</code>, <code>text2</code>, and <code>score</code>
253
+ * Approximate statistics based on the first 1000 samples:
254
+ | | text1 | text2 | score |
255
+ |:--------|:------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|:-----------------------------------------------------------------|
256
+ | type | string | string | float |
257
+ | details | <ul><li>min: 14 tokens</li><li>mean: 60.26 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 15 tokens</li><li>mean: 61.41 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: -0.09</li><li>mean: 0.46</li><li>max: 1.0</li></ul> |
258
+ * Samples:
259
+ | text1 | text2 | score |
260
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------|
261
+ | <code>[CLS] [SKILL] Installation 7 [CTX] Installation, Konfiguration und Verwaltung von: Windows XP, 7, 8, 8.1, 10<br> [SEP]</code> | <code>[CLS] [SKILL] Installation 10 [CTX] Installation, Konfiguration und Verwaltung von: Windows XP, 7, 8, 8.1, 10<br> [SEP]</code> | <code>0.9105218082666396</code> |
262
+ | <code>[CLS] [KNOWLEDGE] Oracle-Systemadministration [CTX] Installation, Administration (Backup/Recovery etc.) und Tuning von DB2 nach SAP R/3 Gesichtspunkten bzw. DB2-Applikationsprogrammierung (Auswertung und Verarbeitung von DB2-Report-Utility und DB2-Katalog nach wiederherzustellenden SAP-Tablespaces mit recoverfähiger RBA zur Automatisierung des Conditional Restart Verfahrens) u. Oracle-Systemadministration in einer SAP R/3-Basis-Umgebung unter OS/390-TSO-ISPF-LIBRARIAN, DB2 Version 5 und DB2 UDB Version 6, CLIST, RACF, JCL, COBOL, AIX, ORACLE Version 7 u.8, Open-Edition, SAP R/3-BC 4.5B., Omegamon<br> [SEP]</code> | <code>[CLS] [KNOWLEDGE] RxJS [CTX] Konsumieren der Rest APIs mit HttpClient und RxJS<br> [SEP]</code> | <code>-0.06634289771318436</code> |
263
+ | <code>[CLS] [SKILL] Erstellung Prozessen [CTX] Erstellung von Dokumentationen und Arbeitsanweisungen und Prozessen Kommunikation auf allen Ebenen mit vielen Abteilungen international. [SEP]</code> | <code>[CLS] [KNOWLEDGE] DB2 8.1 [CTX] Systemadministration, Betrieb, Monitoring und Fehlerbehebung von über 100 SAP-Systemen unterschiedlicher Releasestände (4.6 C,6.20,6.40, EP, XI) und deren Datenbanken (Oracle 9.2, Informix 9.4, 9.3, DB2 8.1, SAP DB 7.5) auf pSeries Rechnern unter AIX 5.3 und z/OS. Durchführung und Überwachung des Transport-Managements (SAP-intern und auf OP-Ebene(AIX)) und<br> [SEP]</code> | <code>-0.009634226560592651</code> |
264
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
265
+ ```json
266
+ {
267
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
268
+ }
269
+ ```
270
+
271
+ ### Training Hyperparameters
272
+ #### Non-Default Hyperparameters
273
+
274
+ - `eval_strategy`: steps
275
+ - `per_device_train_batch_size`: 16
276
+ - `per_device_eval_batch_size`: 16
277
+ - `learning_rate`: 2e-05
278
+ - `num_train_epochs`: 1
279
+ - `warmup_ratio`: 0.1
280
+ - `fp16`: True
281
+
282
+ #### All Hyperparameters
283
+ <details><summary>Click to expand</summary>
284
+
285
+ - `overwrite_output_dir`: False
286
+ - `do_predict`: False
287
+ - `eval_strategy`: steps
288
+ - `prediction_loss_only`: True
289
+ - `per_device_train_batch_size`: 16
290
+ - `per_device_eval_batch_size`: 16
291
+ - `per_gpu_train_batch_size`: None
292
+ - `per_gpu_eval_batch_size`: None
293
+ - `gradient_accumulation_steps`: 1
294
+ - `eval_accumulation_steps`: None
295
+ - `torch_empty_cache_steps`: None
296
+ - `learning_rate`: 2e-05
297
+ - `weight_decay`: 0.0
298
+ - `adam_beta1`: 0.9
299
+ - `adam_beta2`: 0.999
300
+ - `adam_epsilon`: 1e-08
301
+ - `max_grad_norm`: 1.0
302
+ - `num_train_epochs`: 1
303
+ - `max_steps`: -1
304
+ - `lr_scheduler_type`: linear
305
+ - `lr_scheduler_kwargs`: {}
306
+ - `warmup_ratio`: 0.1
307
+ - `warmup_steps`: 0
308
+ - `log_level`: passive
309
+ - `log_level_replica`: warning
310
+ - `log_on_each_node`: True
311
+ - `logging_nan_inf_filter`: True
312
+ - `save_safetensors`: True
313
+ - `save_on_each_node`: False
314
+ - `save_only_model`: False
315
+ - `restore_callback_states_from_checkpoint`: False
316
+ - `no_cuda`: False
317
+ - `use_cpu`: False
318
+ - `use_mps_device`: False
319
+ - `seed`: 42
320
+ - `data_seed`: None
321
+ - `jit_mode_eval`: False
322
+ - `use_ipex`: False
323
+ - `bf16`: False
324
+ - `fp16`: True
325
+ - `fp16_opt_level`: O1
326
+ - `half_precision_backend`: auto
327
+ - `bf16_full_eval`: False
328
+ - `fp16_full_eval`: False
329
+ - `tf32`: None
330
+ - `local_rank`: 0
331
+ - `ddp_backend`: None
332
+ - `tpu_num_cores`: None
333
+ - `tpu_metrics_debug`: False
334
+ - `debug`: []
335
+ - `dataloader_drop_last`: False
336
+ - `dataloader_num_workers`: 0
337
+ - `dataloader_prefetch_factor`: None
338
+ - `past_index`: -1
339
+ - `disable_tqdm`: False
340
+ - `remove_unused_columns`: True
341
+ - `label_names`: None
342
+ - `load_best_model_at_end`: False
343
+ - `ignore_data_skip`: False
344
+ - `fsdp`: []
345
+ - `fsdp_min_num_params`: 0
346
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
347
+ - `fsdp_transformer_layer_cls_to_wrap`: None
348
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
349
+ - `deepspeed`: None
350
+ - `label_smoothing_factor`: 0.0
351
+ - `optim`: adamw_torch
352
+ - `optim_args`: None
353
+ - `adafactor`: False
354
+ - `group_by_length`: False
355
+ - `length_column_name`: length
356
+ - `ddp_find_unused_parameters`: None
357
+ - `ddp_bucket_cap_mb`: None
358
+ - `ddp_broadcast_buffers`: False
359
+ - `dataloader_pin_memory`: True
360
+ - `dataloader_persistent_workers`: False
361
+ - `skip_memory_metrics`: True
362
+ - `use_legacy_prediction_loop`: False
363
+ - `push_to_hub`: False
364
+ - `resume_from_checkpoint`: None
365
+ - `hub_model_id`: None
366
+ - `hub_strategy`: every_save
367
+ - `hub_private_repo`: None
368
+ - `hub_always_push`: False
369
+ - `gradient_checkpointing`: False
370
+ - `gradient_checkpointing_kwargs`: None
371
+ - `include_inputs_for_metrics`: False
372
+ - `include_for_metrics`: []
373
+ - `eval_do_concat_batches`: True
374
+ - `fp16_backend`: auto
375
+ - `push_to_hub_model_id`: None
376
+ - `push_to_hub_organization`: None
377
+ - `mp_parameters`:
378
+ - `auto_find_batch_size`: False
379
+ - `full_determinism`: False
380
+ - `torchdynamo`: None
381
+ - `ray_scope`: last
382
+ - `ddp_timeout`: 1800
383
+ - `torch_compile`: False
384
+ - `torch_compile_backend`: None
385
+ - `torch_compile_mode`: None
386
+ - `dispatch_batches`: None
387
+ - `split_batches`: None
388
+ - `include_tokens_per_second`: False
389
+ - `include_num_input_tokens_seen`: False
390
+ - `neftune_noise_alpha`: None
391
+ - `optim_target_modules`: None
392
+ - `batch_eval_metrics`: False
393
+ - `eval_on_start`: False
394
+ - `use_liger_kernel`: False
395
+ - `eval_use_gather_object`: False
396
+ - `average_tokens_across_devices`: False
397
+ - `prompts`: None
398
+ - `batch_sampler`: batch_sampler
399
+ - `multi_dataset_batch_sampler`: proportional
400
+
401
+ </details>
402
+
403
+ ### Training Logs
404
+ | Epoch | Step | Training Loss | Validation Loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
405
+ |:------:|:----:|:-------------:|:---------------:|:-----------------------:|:------------------------:|
406
+ | -1 | -1 | - | - | 0.8023 | - |
407
+ | 0.0921 | 500 | 0.0172 | 0.0056 | 0.9152 | - |
408
+ | 0.1843 | 1000 | 0.0064 | 0.0043 | 0.9330 | - |
409
+ | 0.2764 | 1500 | 0.005 | 0.0037 | 0.9399 | - |
410
+ | 0.3686 | 2000 | 0.0047 | 0.0035 | 0.9456 | - |
411
+ | 0.4607 | 2500 | 0.0042 | 0.0032 | 0.9475 | - |
412
+ | 0.5529 | 3000 | 0.0039 | 0.0029 | 0.9514 | - |
413
+ | 0.6450 | 3500 | 0.0036 | 0.0027 | 0.9525 | - |
414
+ | 0.7372 | 4000 | 0.0034 | 0.0027 | 0.9547 | - |
415
+ | 0.8293 | 4500 | 0.0033 | 0.0026 | 0.9564 | - |
416
+ | 0.9215 | 5000 | 0.0033 | 0.0025 | 0.9571 | - |
417
+ | -1 | -1 | - | - | - | 0.9592 |
418
+
419
+
420
+ ### Framework Versions
421
+ - Python: 3.12.4
422
+ - Sentence Transformers: 4.1.0
423
+ - Transformers: 4.49.0
424
+ - PyTorch: 2.4.0+rocm6.3.4.git7cecbf6d
425
+ - Accelerate: 1.6.0
426
+ - Datasets: 3.5.0
427
+ - Tokenizers: 0.21.1
428
+
429
+ ## Citation
430
+
431
+ ### BibTeX
432
+
433
+ #### Sentence Transformers
434
+ ```bibtex
435
+ @inproceedings{reimers-2019-sentence-bert,
436
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
437
+ author = "Reimers, Nils and Gurevych, Iryna",
438
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
439
+ month = "11",
440
+ year = "2019",
441
+ publisher = "Association for Computational Linguistics",
442
+ url = "https://arxiv.org/abs/1908.10084",
443
+ }
444
+ ```
445
+
446
+ <!--
447
+ ## Glossary
448
+
449
+ *Clearly define terms in order to be accessible across audiences.*
450
+ -->
451
+
452
+ <!--
453
+ ## Model Card Authors
454
+
455
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
456
+ -->
457
+
458
+ <!--
459
+ ## Model Card Contact
460
+
461
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
462
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "models/bi-encoder_v2/final",
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": 384,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 1536,
14
+ "layer_norm_eps": 1e-12,
15
+ "max_position_embeddings": 512,
16
+ "model_type": "bert",
17
+ "num_attention_heads": 12,
18
+ "num_hidden_layers": 6,
19
+ "pad_token_id": 0,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.49.0",
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": "4.1.0",
4
+ "transformers": "4.49.0",
5
+ "pytorch": "2.4.0+rocm6.3.4.git7cecbf6d"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33df335ab20921a4941fdb00a27ee2a3b11b0078c348fac1a246ceef53cf6b81
3
+ size 90864192
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": 256,
3
+ "do_lower_case": false
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,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 256,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizer",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff