rakshi719 commited on
Commit
b0373bf
·
verified ·
1 Parent(s): 655d659

Upload folder using huggingface_hub

Browse files
sc40/1_Pooling/config.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 768,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
sc40/README.md ADDED
@@ -0,0 +1,444 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:715
8
+ - loss:MultipleNegativesRankingLoss
9
+ widget:
10
+ - source_sentence: Amafaranga amaze imyaka 5 kuri konti zitagikoreshwa muri banki
11
+ z’ubucuruzi yoherezwa muri Banki nkuru y’igihugu.
12
+ sentences:
13
+ - Ntabwo ari umukobwa wese ushobora kwihanganira umusore umucunga cyane ndetse akamuha
14
+ amategeko akabije, hari ubona atazabishobora agahitamo kwigendera kandi aribwo
15
+ umubano wanyu wari ugitangira.
16
+ - Comfort People Ministries yahuje imbaraga na Sintex mu ndirimbo nshya ‘Jambo ryawe’
17
+ - Iyo ayo mafaranga amaze imyaka 5 muri Banki nkuru y’igihugu ba nyirayo bataje
18
+ kuyakurikirana, ashyirwa mu mjutungo wa leta.
19
+ - source_sentence: Juru Ornella w’imyaka 20 y’amavuko ku wa 2 Ukwakira 2020, nibwo
20
+ yashyize hanze indirimbo yise ‘Pango’ itunganyijwe mu buryo bw’amajwi n’amashusho.
21
+ sentences:
22
+ - Abakinnyi ba Paris Saint-Germain barimo Kylian Mbappé bifatanyije n’u Rwanda mu
23
+ Kwibuka ku nshuro ya 27 Jenoside yakorewe Abatutsi
24
+ - Kuri ubu uyu muhanzi yashyize hanze iyitwa ‘Sound’ itunganyijwe mu buryo bw’amajwi
25
+ avuga ko amashusho yayo ari hafi.
26
+ - Muri rusange inyigo zagaragaje ko nta rugero runaka rw’ubushake umuntu muzima
27
+ yakabaye afite, ahubwo buri wese agira urugero rwe rushobora kwiyongera cyangwa
28
+ rukagabanyuka bitewe n’impamvu.
29
+ - source_sentence: Abatanga serivisi za Mobile Money, Tigo Cash na Airtel Money bagomba
30
+ gukora ibishoboka byose ntihagire uwundi uwumenya; kandi uwibwe akwiriye kubimenyesha
31
+ Polisi mu maguru mashya."
32
+ sentences:
33
+ - Ndayishimiye yavuze ko ubutumwa buri muri iyi ndirimbo bugamije kubwira abantu
34
+ ko bafite ubutunzi bukomeye bwo kumenya Imana.
35
+ - Adrien ubusanzwe atuye muri Leta Zunze Ubumwe za Amerika mu mujyi wa Texas.
36
+ - Gaga yakomeje avuga ko batangije uburyo bwo guhuza serivisi za Mobile Money, Tigo
37
+ Cash na Airtel Money n'amabanki hakoreshejwe umuyoboro bise eHuriro.
38
+ - source_sentence: Algeria niyo yafunguye amazamu ku munota wa 10 ku gitego cyatsinzwe
39
+ na Farouk Chafai.
40
+ sentences:
41
+ - Umuyobozi wa Yego Innovision, Karanvir Singh, yavuze ko yishimiye gukorana na
42
+ Spenn kuko bizajya byorohereza abashoferi babo kubona amafaranga yabo yose kandi
43
+ mu gihe gito.
44
+ - Hari nyuma y’uko iyi kipe yari imaze guhagarika imishahara y’abakinnyi kubera
45
+ icyorezo cya Covid-19.
46
+ - Ku munota wa 29, Algeria yatsinze icya 3 cyatsinzwe nanone na Farouk Chafai.
47
+ - source_sentence: Minisitiri Biruta, yavuze ko gucana Urumuri Rutazima bigaragaza
48
+ kwibuka Jenoside yakorewe Abatutsi, kugarurira agaciro abazize Jenoside ndetse
49
+ n'u Rwanda muri rusange.
50
+ sentences:
51
+ - Mu karere ka Burera, Urumuri Rutazima rwakiriwe ku Rwibutso rw'abazize Jenoside
52
+ yakorewe Abatutsi, ruri mu murenge wa Rugarama.
53
+ - Abakinnyi 21 b’u Rwanda bari muri Mexique bose bavutse nyuma ya tariki ya 7 Mata
54
+ 1994, ubwo Jenoside yakorerwaga Abatutsi yatangiraga, nyamara babaye Abambasaderi
55
+ b’igihugu.
56
+ - Kuva ubwo rero babona ingaruka mbi ku kintu cyagizwe ibanze bitari mbonera, bati
57
+ “ibijya gucika inkungu ibijya imbere”.
58
+ pipeline_tag: sentence-similarity
59
+ library_name: sentence-transformers
60
+ metrics:
61
+ - pearson_cosine
62
+ - spearman_cosine
63
+ model-index:
64
+ - name: SentenceTransformer
65
+ results:
66
+ - task:
67
+ type: semantic-similarity
68
+ name: Semantic Similarity
69
+ dataset:
70
+ name: semrel2024 dev
71
+ type: semrel2024_dev
72
+ metrics:
73
+ - type: pearson_cosine
74
+ value: 0.5863880798537018
75
+ name: Pearson Cosine
76
+ - type: spearman_cosine
77
+ value: 0.596229941564541
78
+ name: Spearman Cosine
79
+ ---
80
+
81
+ # SentenceTransformer
82
+
83
+ This is a [sentence-transformers](https://www.SBERT.net) model trained. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
84
+
85
+ ## Model Details
86
+
87
+ ### Model Description
88
+ - **Model Type:** Sentence Transformer
89
+ <!-- - **Base model:** [Unknown](https://huggingface.co/unknown) -->
90
+ - **Maximum Sequence Length:** 128 tokens
91
+ - **Output Dimensionality:** 768 dimensions
92
+ - **Similarity Function:** Cosine Similarity
93
+ - **Supported Modality:** Text
94
+ <!-- - **Training Dataset:** Unknown -->
95
+ <!-- - **Language:** Unknown -->
96
+ <!-- - **License:** Unknown -->
97
+
98
+ ### Model Sources
99
+
100
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
101
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
102
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
103
+
104
+ ### Full Model Architecture
105
+
106
+ ```
107
+ SentenceTransformer(
108
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
109
+ (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
110
+ )
111
+ ```
112
+
113
+ ## Usage
114
+
115
+ ### Direct Usage (Sentence Transformers)
116
+
117
+ First install the Sentence Transformers library:
118
+
119
+ ```bash
120
+ pip install -U sentence-transformers
121
+ ```
122
+ Then you can load this model and run inference.
123
+ ```python
124
+ from sentence_transformers import SentenceTransformer
125
+
126
+ # Download from the 🤗 Hub
127
+ model = SentenceTransformer("sentence_transformers_model_id")
128
+ # Run inference
129
+ sentences = [
130
+ "Minisitiri Biruta, yavuze ko gucana Urumuri Rutazima bigaragaza kwibuka Jenoside yakorewe Abatutsi, kugarurira agaciro abazize Jenoside ndetse n'u Rwanda muri rusange.",
131
+ "Mu karere ka Burera, Urumuri Rutazima rwakiriwe ku Rwibutso rw'abazize Jenoside yakorewe Abatutsi, ruri mu murenge wa Rugarama.",
132
+ 'Kuva ubwo rero babona ingaruka mbi ku kintu cyagizwe ibanze bitari mbonera, bati “ibijya gucika inkungu ibijya imbere”.',
133
+ ]
134
+ embeddings = model.encode(sentences)
135
+ print(embeddings.shape)
136
+ # [3, 768]
137
+
138
+ # Get the similarity scores for the embeddings
139
+ similarities = model.similarity(embeddings, embeddings)
140
+ print(similarities)
141
+ # tensor([[1.0000, 0.5727, 0.3690],
142
+ # [0.5727, 1.0000, 0.2020],
143
+ # [0.3690, 0.2020, 1.0000]])
144
+ ```
145
+ <!--
146
+ ### Direct Usage (Transformers)
147
+
148
+ <details><summary>Click to see the direct usage in Transformers</summary>
149
+
150
+ </details>
151
+ -->
152
+
153
+ <!--
154
+ ### Downstream Usage (Sentence Transformers)
155
+
156
+ You can finetune this model on your own dataset.
157
+
158
+ <details><summary>Click to expand</summary>
159
+
160
+ </details>
161
+ -->
162
+
163
+ <!--
164
+ ### Out-of-Scope Use
165
+
166
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
167
+ -->
168
+
169
+ ## Evaluation
170
+
171
+ ### Metrics
172
+
173
+ #### Semantic Similarity
174
+
175
+ * Dataset: `semrel2024_dev`
176
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.EmbeddingSimilarityEvaluator)
177
+
178
+ | Metric | Value |
179
+ |:--------------------|:-----------|
180
+ | pearson_cosine | 0.5864 |
181
+ | **spearman_cosine** | **0.5962** |
182
+
183
+ <!--
184
+ ## Bias, Risks and Limitations
185
+
186
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
187
+ -->
188
+
189
+ <!--
190
+ ### Recommendations
191
+
192
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
193
+ -->
194
+
195
+ ## Training Details
196
+
197
+ ### Training Dataset
198
+
199
+ #### Unnamed Dataset
200
+
201
+ * Size: 715 training samples
202
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
203
+ * Approximate statistics based on the first 100 samples:
204
+ | | anchor | positive | negative |
205
+ |:---------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
206
+ | type | string | string | string |
207
+ | modality | text | text | text |
208
+ | details | <ul><li>min: 6 tokens</li><li>mean: 19.87 tokens</li><li>max: 60 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 14.34 tokens</li><li>max: 32 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 14.35 tokens</li><li>max: 30 tokens</li></ul> |
209
+ * Samples:
210
+ | anchor | positive | negative |
211
+ |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------|
212
+ | <code>Ubuyobozi bw'Igihugu bw'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Inyigisho z'Iny</code> | <code>Ubuyobozi bw'Igihugu bwatanze amakuru y'ingirakamaro mu mpinduka z'ubuyobozi bwa Leta.</code> | <code>Gufata imyanzuro irebana n'ibyo Leta yagezeho nta makuru y'ingirakamaro itanga ku birebana no kuvugurura imyanzuro y'ubuyobozi bwa Leta.</code> |
213
+ | <code>Ca'daan yahise atera hejuru.</code> | <code>Ca'daan ni we wavuze ko bazaza.</code> | <code>Ca'daan yarasemereye cyane ati "bose barapfuye"!</code> |
214
+ | <code>Nubwo hari ibintu byinshi bihinduka, imikorere ikoreshwa muri iki gihe yemera ibyiciro bine by'ibanze by'ubwoko bw'amasezerano ashyirwa mu bikorwa mu gihe cy'ubucuruzi butandukanye.</code> | <code>Hari amoko ane y'ibanze yemewe n'imikorere iriho muri iki gihe.</code> | <code>Nta tandukaniro ry'imikorere y'ubu yemewe.</code> |
215
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
216
+ ```json
217
+ {
218
+ "scale": 40,
219
+ "similarity_fct": "cos_sim",
220
+ "gather_across_devices": false,
221
+ "directions": [
222
+ "query_to_doc"
223
+ ],
224
+ "partition_mode": "joint",
225
+ "hardness_mode": null,
226
+ "hardness_strength": 0.0
227
+ }
228
+ ```
229
+
230
+ ### Evaluation Dataset
231
+
232
+ #### Unnamed Dataset
233
+
234
+ * Size: 102 evaluation samples
235
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>label</code>
236
+ * Approximate statistics based on the first 100 samples:
237
+ | | sentence1 | sentence2 | label |
238
+ |:---------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------|
239
+ | type | string | string | float |
240
+ | modality | text | text | |
241
+ | details | <ul><li>min: 13 tokens</li><li>mean: 29.75 tokens</li><li>max: 51 tokens</li></ul> | <ul><li>min: 14 tokens</li><li>mean: 28.6 tokens</li><li>max: 42 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.5</li><li>max: 1.0</li></ul> |
242
+ * Samples:
243
+ | sentence1 | sentence2 | label |
244
+ |:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------|
245
+ | <code>Impamvu zo kwandura indwara zo mu gitsina : Ukumagara mu gitsina kandi bishobora guterwa n'indwara zifata mu gitsina.</code> | <code>Impamvu z'ibiyobyabwenge : Itabi, alukolo nyinshi (alcool) bishobora na byo gutera ukumagara mu gitsina biherekejwe no kunanirwa k'ubwonko, no kugira umunaniro umubiri wose.</code> | <code>0.19</code> |
246
+ | <code>Hakiri kare ku munota wa 18’, Nsengiyumva Moustapha yaboneye Rayon Sports igitego cya mbere mbere yo kungamo icya kabiri ku munota wa 34’ w’umukino.</code> | <code>Nsengiyumva Moustapha yasimbuwe na Sibomana Abouba ku munota wa 65’ mbere naho Nova Bayama asimbura Muhire Kevin ku munota wa 68’ w’umukino.</code> | <code>0.5</code> |
247
+ | <code>Iki gikorwa cyo kwibuka ku nshuro ya 19 Jenoside yakorewe abatutsi, cyateguwe n'umuryango Never Again, ugizwe n'abarokotse Jenoside yakorewe abatutsi mu Rwanda ufatanyije n'inshuti zawo.</code> | <code>Mubikorwa biteganyijwe gukorwa n'iri huriro harimo kwifatanya n'Abanyarwanda n'amahanga kwibuka ku nshuro ya 22 Jenoside yakorewe Abatutsi mu 1994.</code> | <code>0.56</code> |
248
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
249
+ ```json
250
+ {
251
+ "scale": 40,
252
+ "similarity_fct": "cos_sim",
253
+ "gather_across_devices": false,
254
+ "directions": [
255
+ "query_to_doc"
256
+ ],
257
+ "partition_mode": "joint",
258
+ "hardness_mode": null,
259
+ "hardness_strength": 0.0
260
+ }
261
+ ```
262
+
263
+ ### Training Hyperparameters
264
+ #### Non-Default Hyperparameters
265
+
266
+ - `per_device_train_batch_size`: 64
267
+ - `num_train_epochs`: 1
268
+ - `learning_rate`: 2e-05
269
+ - `warmup_steps`: 0.1
270
+ - `load_best_model_at_end`: True
271
+
272
+ #### All Hyperparameters
273
+ <details><summary>Click to expand</summary>
274
+
275
+ - `per_device_train_batch_size`: 64
276
+ - `num_train_epochs`: 1
277
+ - `max_steps`: -1
278
+ - `learning_rate`: 2e-05
279
+ - `lr_scheduler_type`: linear
280
+ - `lr_scheduler_kwargs`: None
281
+ - `warmup_steps`: 0.1
282
+ - `optim`: adamw_torch
283
+ - `optim_args`: None
284
+ - `weight_decay`: 0.0
285
+ - `adam_beta1`: 0.9
286
+ - `adam_beta2`: 0.999
287
+ - `adam_epsilon`: 1e-08
288
+ - `optim_target_modules`: None
289
+ - `gradient_accumulation_steps`: 1
290
+ - `average_tokens_across_devices`: True
291
+ - `max_grad_norm`: 1.0
292
+ - `label_smoothing_factor`: 0.0
293
+ - `bf16`: False
294
+ - `fp16`: False
295
+ - `bf16_full_eval`: False
296
+ - `fp16_full_eval`: False
297
+ - `tf32`: None
298
+ - `gradient_checkpointing`: False
299
+ - `gradient_checkpointing_kwargs`: None
300
+ - `torch_compile`: False
301
+ - `torch_compile_backend`: None
302
+ - `torch_compile_mode`: None
303
+ - `use_liger_kernel`: False
304
+ - `liger_kernel_config`: None
305
+ - `use_cache`: False
306
+ - `neftune_noise_alpha`: None
307
+ - `torch_empty_cache_steps`: None
308
+ - `auto_find_batch_size`: False
309
+ - `log_on_each_node`: True
310
+ - `logging_nan_inf_filter`: True
311
+ - `include_num_input_tokens_seen`: no
312
+ - `log_level`: passive
313
+ - `log_level_replica`: warning
314
+ - `disable_tqdm`: False
315
+ - `project`: huggingface
316
+ - `trackio_space_id`: None
317
+ - `trackio_bucket_id`: None
318
+ - `trackio_static_space_id`: None
319
+ - `per_device_eval_batch_size`: 8
320
+ - `prediction_loss_only`: True
321
+ - `eval_on_start`: False
322
+ - `eval_do_concat_batches`: True
323
+ - `eval_use_gather_object`: False
324
+ - `eval_accumulation_steps`: None
325
+ - `include_for_metrics`: []
326
+ - `batch_eval_metrics`: False
327
+ - `save_only_model`: False
328
+ - `save_on_each_node`: False
329
+ - `enable_jit_checkpoint`: False
330
+ - `push_to_hub`: False
331
+ - `hub_private_repo`: None
332
+ - `hub_model_id`: None
333
+ - `hub_strategy`: every_save
334
+ - `hub_always_push`: False
335
+ - `hub_revision`: None
336
+ - `load_best_model_at_end`: True
337
+ - `ignore_data_skip`: False
338
+ - `restore_callback_states_from_checkpoint`: False
339
+ - `full_determinism`: False
340
+ - `seed`: 42
341
+ - `data_seed`: None
342
+ - `use_cpu`: False
343
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
344
+ - `parallelism_config`: None
345
+ - `dataloader_drop_last`: False
346
+ - `dataloader_num_workers`: 0
347
+ - `dataloader_pin_memory`: True
348
+ - `dataloader_persistent_workers`: False
349
+ - `dataloader_prefetch_factor`: None
350
+ - `remove_unused_columns`: True
351
+ - `label_names`: None
352
+ - `train_sampling_strategy`: random
353
+ - `length_column_name`: length
354
+ - `ddp_find_unused_parameters`: None
355
+ - `ddp_bucket_cap_mb`: None
356
+ - `ddp_broadcast_buffers`: False
357
+ - `ddp_static_graph`: None
358
+ - `ddp_backend`: None
359
+ - `ddp_timeout`: 1800
360
+ - `fsdp`: []
361
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
362
+ - `deepspeed`: None
363
+ - `debug`: []
364
+ - `skip_memory_metrics`: True
365
+ - `do_predict`: False
366
+ - `resume_from_checkpoint`: None
367
+ - `warmup_ratio`: None
368
+ - `local_rank`: -1
369
+ - `prompts`: None
370
+ - `batch_sampler`: batch_sampler
371
+ - `multi_dataset_batch_sampler`: proportional
372
+ - `router_mapping`: {}
373
+ - `learning_rate_mapping`: {}
374
+
375
+ </details>
376
+
377
+ ### Training Logs
378
+ | Epoch | Step | Validation Loss | semrel2024_dev_spearman_cosine |
379
+ |:-------:|:------:|:---------------:|:------------------------------:|
380
+ | **1.0** | **12** | **0.672** | **0.5962** |
381
+
382
+ * The bold row denotes the saved checkpoint.
383
+
384
+ ### Training Time
385
+ - **Training**: 24.5 seconds
386
+ - **Evaluation**: 0.6 seconds
387
+ - **Total**: 25.2 seconds
388
+
389
+ ### Framework Versions
390
+ - Python: 3.10.20
391
+ - Sentence Transformers: 5.5.1
392
+ - Transformers: 5.7.0
393
+ - PyTorch: 2.7.1+cu118
394
+ - Accelerate: 1.13.0
395
+ - Datasets: 5.0.0
396
+ - Tokenizers: 0.22.2
397
+
398
+ ## Citation
399
+
400
+ ### BibTeX
401
+
402
+ #### Sentence Transformers
403
+ ```bibtex
404
+ @inproceedings{reimers-2019-sentence-bert,
405
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
406
+ author = "Reimers, Nils and Gurevych, Iryna",
407
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
408
+ month = "11",
409
+ year = "2019",
410
+ publisher = "Association for Computational Linguistics",
411
+ url = "https://arxiv.org/abs/1908.10084",
412
+ }
413
+ ```
414
+
415
+ #### MultipleNegativesRankingLoss
416
+ ```bibtex
417
+ @misc{oord2019representationlearningcontrastivepredictive,
418
+ title={Representation Learning with Contrastive Predictive Coding},
419
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
420
+ year={2019},
421
+ eprint={1807.03748},
422
+ archivePrefix={arXiv},
423
+ primaryClass={cs.LG},
424
+ url={https://arxiv.org/abs/1807.03748},
425
+ }
426
+ ```
427
+
428
+ <!--
429
+ ## Glossary
430
+
431
+ *Clearly define terms in order to be accessible across audiences.*
432
+ -->
433
+
434
+ <!--
435
+ ## Model Card Authors
436
+
437
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
438
+ -->
439
+
440
+ <!--
441
+ ## Model Card Contact
442
+
443
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
444
+ -->
sc40/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "is_decoder": false,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 12,
23
+ "pad_token_id": 0,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.7.0",
27
+ "type_vocab_size": 2,
28
+ "use_cache": false,
29
+ "vocab_size": 30000
30
+ }
sc40/config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.7.1+cu118",
4
+ "sentence_transformers": "5.5.1",
5
+ "transformers": "5.7.0"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "document": "",
11
+ "query": ""
12
+ },
13
+ "similarity_fn_name": "cosine"
14
+ }
sc40/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e90e602bb2564a90a29f266112ccbe0111011b64bfae89155688973da17566c2
3
+ size 436347736
sc40/modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
13
+ }
14
+ ]
sc40/sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "last_hidden_state"
7
+ }
8
+ },
9
+ "module_output_name": "token_embeddings"
10
+ }
sc40/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
sc40/tokenizer_config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": true,
5
+ "is_local": true,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "max_length": 128,
9
+ "model_max_length": 128,
10
+ "pad_to_multiple_of": null,
11
+ "pad_token": "[PAD]",
12
+ "pad_token_type_id": 0,
13
+ "padding_side": "right",
14
+ "sep_token": "[SEP]",
15
+ "stride": 0,
16
+ "strip_accents": null,
17
+ "tokenize_chinese_chars": true,
18
+ "tokenizer_class": "BertTokenizer",
19
+ "truncation_side": "right",
20
+ "truncation_strategy": "longest_first",
21
+ "unk_token": "[UNK]"
22
+ }