asaakyan commited on
Commit
0c7d862
·
verified ·
1 Parent(s): 9d884e1

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +438 -7
README.md CHANGED
@@ -1,13 +1,444 @@
1
- "---
2
- language: en
3
  tags:
4
  - sentence-transformers
5
- - text-embedding
6
- pipeline_tag: sentence-similarity
7
- license: mit
 
 
8
  base_model: FacebookAI/roberta-base
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  ---
10
 
11
- # Gutenberg Authorship Embeddings
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
 
13
- This model is trained with TripleLoss on English Gutenberg to generate embeddings for authorship attribution.
 
 
1
+ ---
 
2
  tags:
3
  - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:4415131
8
+ - loss:TripletLoss
9
  base_model: FacebookAI/roberta-base
10
+ pipeline_tag: sentence-similarity
11
+ library_name: sentence-transformers
12
+ metrics:
13
+ - cosine_accuracy
14
+ - cosine_accuracy_threshold
15
+ - cosine_f1
16
+ - cosine_f1_threshold
17
+ - cosine_precision
18
+ - cosine_recall
19
+ - cosine_ap
20
+ - cosine_mcc
21
+ model-index:
22
+ - name: SentenceTransformer based on FacebookAI/roberta-base
23
+ results:
24
+ - task:
25
+ type: binary-classification
26
+ name: Binary Classification
27
+ dataset:
28
+ name: litemb dev
29
+ type: litemb-dev
30
+ metrics:
31
+ - type: cosine_accuracy
32
+ value: 0.833
33
+ name: Cosine Accuracy
34
+ - type: cosine_accuracy_threshold
35
+ value: 0.799780011177063
36
+ name: Cosine Accuracy Threshold
37
+ - type: cosine_f1
38
+ value: 0.8324429334628461
39
+ name: Cosine F1
40
+ - type: cosine_f1_threshold
41
+ value: 0.7916845083236694
42
+ name: Cosine F1 Threshold
43
+ - type: cosine_precision
44
+ value: 0.8092540132200189
45
+ name: Cosine Precision
46
+ - type: cosine_recall
47
+ value: 0.857
48
+ name: Cosine Recall
49
+ - type: cosine_ap
50
+ value: 0.9126964494743037
51
+ name: Cosine Ap
52
+ - type: cosine_mcc
53
+ value: 0.6561430124870038
54
+ name: Cosine Mcc
55
+ - task:
56
+ type: binary-classification
57
+ name: Binary Classification
58
+ dataset:
59
+ name: litemb test
60
+ type: litemb-test
61
+ metrics:
62
+ - type: cosine_accuracy
63
+ value: 0.8371
64
+ name: Cosine Accuracy
65
+ - type: cosine_accuracy_threshold
66
+ value: 0.9183984994888306
67
+ name: Cosine Accuracy Threshold
68
+ - type: cosine_f1
69
+ value: 0.8420254124786649
70
+ name: Cosine F1
71
+ - type: cosine_f1_threshold
72
+ value: 0.9132623076438904
73
+ name: Cosine F1 Threshold
74
+ - type: cosine_precision
75
+ value: 0.8005769924269744
76
+ name: Cosine Precision
77
+ - type: cosine_recall
78
+ value: 0.888
79
+ name: Cosine Recall
80
+ - type: cosine_ap
81
+ value: 0.9163489411155188
82
+ name: Cosine Ap
83
+ - type: cosine_mcc
84
+ value: 0.6708115884030683
85
+ name: Cosine Mcc
86
  ---
87
 
88
+ # SentenceTransformer based on FacebookAI/roberta-base
89
+
90
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) on the csv dataset. It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
91
+
92
+ ## Model Details
93
+
94
+ ### Model Description
95
+ - **Model Type:** Sentence Transformer
96
+ - **Base model:** [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base) <!-- at revision e2da8e2f811d1448a5b465c236feacd80ffbac7b -->
97
+ - **Maximum Sequence Length:** 512 tokens
98
+ - **Output Dimensionality:** 768 dimensions
99
+ - **Similarity Function:** Cosine Similarity
100
+ - **Training Dataset:**
101
+ - csv
102
+ <!-- - **Language:** Unknown -->
103
+ <!-- - **License:** Unknown -->
104
+
105
+ ### Model Sources
106
+
107
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
108
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
109
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
110
+
111
+ ### Full Model Architecture
112
+
113
+ ```
114
+ SentenceTransformer(
115
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: RobertaModel
116
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
117
+ )
118
+ ```
119
+
120
+ ## Usage
121
+
122
+ ### Direct Usage (Sentence Transformers)
123
+
124
+ First install the Sentence Transformers library:
125
+
126
+ ```bash
127
+ pip install -U sentence-transformers
128
+ ```
129
+
130
+ Then you can load this model and run inference.
131
+ ```python
132
+ from sentence_transformers import SentenceTransformer
133
+
134
+ # Download from the 🤗 Hub
135
+ model = SentenceTransformer("sentence_transformers_model_id")
136
+ # Run inference
137
+ sentences = [
138
+ "The account of an expedition against Fort Christina deserves to be\nquoted in full, for it is an example of what war might be, full of\nexcitement, and exercise, and heroism, without danger to life. We take\nup the narrative at the moment when the Dutch host...',
139
+ '"He stood by me all these years," he thought, "he taught me all I know,\nthough I fear I am still very young and an ignoramus. But he\'s tried\nhard I know to impart all his own special knowledge to me, and he\'s\ngiven me chances that many a young officer would give his ears for.\nRight!...',
140
+ ]
141
+ embeddings = model.encode(sentences)
142
+ print(embeddings.shape)
143
+ # [3, 768]
144
+
145
+ # Get the similarity scores for the embeddings
146
+ similarities = model.similarity(embeddings, embeddings)
147
+ print(similarities.shape)
148
+ # [3, 3]
149
+ ```
150
+
151
+ <!--
152
+ ### Direct Usage (Transformers)
153
+
154
+ <details><summary>Click to see the direct usage in Transformers</summary>
155
+
156
+ </details>
157
+ -->
158
+
159
+ <!--
160
+ ### Downstream Usage (Sentence Transformers)
161
+
162
+ You can finetune this model on your own dataset.
163
+
164
+ <details><summary>Click to expand</summary>
165
+
166
+ </details>
167
+ -->
168
+
169
+ <!--
170
+ ### Out-of-Scope Use
171
+
172
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
173
+ -->
174
+
175
+ ## Evaluation
176
+
177
+ ### Metrics
178
+
179
+ #### Binary Classification
180
+
181
+ * Datasets: `litemb-dev` and `litemb-test`
182
+ * Evaluated with [<code>BinaryClassificationEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.BinaryClassificationEvaluator)
183
+
184
+ | Metric | litemb-dev | litemb-test |
185
+ |:--------------------------|:-----------|:------------|
186
+ | cosine_accuracy | 0.833 | 0.8371 |
187
+ | cosine_accuracy_threshold | 0.7998 | 0.9184 |
188
+ | cosine_f1 | 0.8324 | 0.842 |
189
+ | cosine_f1_threshold | 0.7917 | 0.9133 |
190
+ | cosine_precision | 0.8093 | 0.8006 |
191
+ | cosine_recall | 0.857 | 0.888 |
192
+ | **cosine_ap** | **0.9127** | **0.9163** |
193
+ | cosine_mcc | 0.6561 | 0.6708 |
194
+
195
+ <!--
196
+ ## Bias, Risks and Limitations
197
+
198
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
199
+ -->
200
+
201
+ <!--
202
+ ### Recommendations
203
+
204
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
205
+ -->
206
+
207
+ ## Training Details
208
+
209
+ ### Training Dataset
210
+
211
+ #### csv
212
+
213
+ * Dataset: csv
214
+ * Size: 4,415,131 training samples
215
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
216
+ * Approximate statistics based on the first 1000 samples:
217
+ | | anchor | positive | negative |
218
+ |:--------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
219
+ | type | string | string | string |
220
+ | details | <ul><li>min: 447 tokens</li><li>mean: 510.65 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 450 tokens</li><li>mean: 510.71 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 455 tokens</li><li>mean: 510.83 tokens</li><li>max: 512 tokens</li></ul> |
221
+ * Samples:
222
+ | anchor | positive | negative |
223
+ |:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
224
+ | <code>"That was curious," remarked Trent.<br>"I thought so, sir. But I recollected what I had heard about 'not a word<br>to a soul,' and I concluded that this about a moonlight drive was<br>intended to mislead."<br>"What time was this?"<br>"It would be about ten, sir, I should say. After speaking to me, Mr.<br>Manderson waited until Mr. Marlowe had come down and brought round the<br>car. He then went into the drawing-room, where Mrs. Manderson was."<br>"Did that strike you as curious?"<br>Martin looked down his nose. "If you ask me the question, sir," he said<br>with reserve, "I had not known him enter that room since we came here<br>this year. He preferred to sit in the library in the evenings. That<br>evening he only remained with Mrs. Manderson for a few minutes. Then he<br>and Mr. Marlowe started immediately."<br>"You saw them start?"<br>"Yes, sir. They took the direction of Bishopsbridge."<br>"And you saw Mr. Manderson again later?"<br>"After an hour or thereabouts, sir, in the library. That would have been<br>about a quarter past eleven, ...</code> | <code>Sir James turned instantly to Mr. Figgis, whose pencil was poised over<br>the paper. “Sigsbee Manderson has been murdered,” he began quickly and<br>clearly, pacing the floor with his hands behind him. Mr. Figgis<br>scratched down a line of shorthand with as much emotion as if he had<br>been told that the day was fine—the pose of his craft. “He and his wife<br>and two secretaries have been for the past fortnight at the house<br>called White Gables, at Marlstone, near Bishopsbridge. He bought it<br>four years ago. He and Mrs. Manderson have since spent a part of each<br>summer there. Last night he went to bed about half-past eleven, just as<br>usual. No one knows when he got up and left the house. He was not<br>missed until this morning. About ten o’clock his body was found by a<br>gardener. It was lying by a shed in the grounds. He was shot in the<br>head, through the left eye. Death must have been instantaneous. The<br>body was not robbed, but there were marks on the wrists which pointed<br>to a struggle having taken place. Dr...</code> | <code>Holmes shook his head like a man who is far from being satisfied.<br>“These are very deep waters,” said he; “pray go on with your narrative.”<br>“Two years have passed since then, and my life has been until lately<br>lonelier than ever. A month ago, however, a dear friend, whom I have<br>known for many years, has done me the honor to ask my hand in marriage.<br>His name is Armitage—Percy Armitage—the second son of Mr. Armitage,<br>of Crane Water, near Reading. My step-father has offered no opposition<br>to the match, and we are to be married in the course of the spring. Two<br>days ago some repairs were started in the west wing of the building,<br>and my bedroom wall has been pierced, so that I have had to move into<br>the chamber in which my sister died, and to sleep in the very bed in<br>which she slept. Imagine, then, my thrill of terror when last night,<br>as I lay awake, thinking over her terrible fate, I suddenly heard in<br>the silence of the night the low whistle which had been the herald of<br>her own death. I sprang ...</code> |
225
+ | <code>'The condition of those blacks is assuredly better than that of the<br> agricultural laborers in many parts of Europe. Their morality is far<br> superior to that of the free negroes of the North; the planters<br> encourage marriage, and thus endeavor to develop among them a sense<br> of the family relation, with a view of attaching them to the<br> domestic hearth, consequently to the family of the master. It will<br> be then observed that in such a state of things the interests of the<br> planter, in default of any other motive, promotes the advancement<br> and well-being of the slave. Certainly, we believe it possible still<br> to ameliorate their condition. It is with that view, even, that the<br> South has labored for so long a time to prepare them for a higher<br> civilization.<br> 'In no part, perhaps, of the continent, regard being had to the<br> population, do there exist men more eminent and gifted, with nobler<br> or more generous sentiments, than in the Southern States. No co...</code> | <code>If we had clear and strong faith, our joy at the thought of a glorified<br>spirit, however necessary its presence to us here, would transcend all<br>our sorrows; the streaming beams of sunshine would irradiate our<br>weeping; we should think more of his happiness than of our discomfort.<br>Instead of departed spirits falling asleep, it is we who have a spirit<br>of slumber. O that we might walk by faith with glorified spirits before<br>the throne, instead of remanding them,--as it seems we sometimes would<br>do, if we could,--to the ignorance and infirmity of our condition.<br>Our feelings towards the departed are the same as towards other<br>prohibited things. Many are continually seeking for pleasures which God<br>has taken away, or is purposely withholding from them. Let any one look<br>at the history of his feelings, and see if his state of mind be not one<br>of perpetual expectation of some form of happiness yet to arrive; an<br>ideal of bliss, some prefigured condition, in which contentment and<br>peace are to abide; whi...</code> | <code>“And we? Now that we've fought and lied and sweated and stolen, and<br>hated as only the disappointed strugglers in a bitter, dead little<br>Western town know how to do, what have we got to show for it? Harvey<br>Merrick wouldn't have given one sunset over your marshes for all you've<br>got put together, and you know it. It's not for me to say why, in the<br>inscrutable wisdom of God, a genius should ever have been called from<br>this place of hatred and bitter waters; but I want this Boston man to<br>know that the drivel he's been hearing here tonight is the only<br>tribute any truly great man could ever have from such a lot of sick,<br>side-tracked, burnt-dog, land-poor sharks as the here-present financiers<br>of Sand City--upon which town may God have mercy!”<br>The lawyer thrust out his hand to Steavens as he passed him, caught up<br>his overcoat in the hall, and had left the house before the Grand Army<br>man had had time to lift his ducked head and crane his long neck about<br>at his fellows.<br><br>Next day Jim Laird was drun...</code> |
226
+ | <code>When Cowper became an author he paid the highest respect to Mrs. Unwin<br>as an instinctive critic, and called her his Lord Chamberlain, whose<br>approbation was his sufficient licence for publication.<br>Life in the Unwin family is thus described by the new inmate;--"As to<br>amusements, I mean what the world calls such, we have none. The place<br>indeed swarms with them; and cards and dancing are the professed<br>business of almost all the gentle inhabitants of Huntingdon. We refuse<br>to take part in them, or to be accessories to this way of murdering our<br>time, and by so doing have acquired the name of Methodists. Having<br>told you how we do not spend our time, I will next say how we do. We<br>breakfast commonly between eight and nine; till eleven, we read either<br>the scripture, or the sermons of some faithful preacher of those holy<br>mysteries; at eleven we attend divine service, which is performed here<br>twice every day, and from twelve to three we separate, and amuse<br>ourselves as we please. During that in...</code> | <code>Peel’s Government having been overthrown on the question of the Corn<br>Laws by a combination which the Duke of Wellington characterized with<br>military frankness, of Tory Protectionists, Whigs, Radicals, and Irish<br>Nationalists, the whole under Semitic influence, its chief, for the<br>short remainder of his life, held himself aloof from the party fray,<br>encouraging no new combination, and content with watching over the safety<br>of his great fiscal reform; though, as Greville says, had the Premiership<br>been put to the vote, Peel would have been elected by an overwhelming<br>majority. His personal following, Peelites as they were called, Graham,<br>Gladstone, Lincoln, Cardwell, Sidney Herbert, and the rest, remained<br>suspended between the two great parties. When Disraeli had thrown over<br>protection, as he meant from the beginning to do, the only barrier<br>of principle between the Peelites and the Conservatives was removed.<br>Overtures were made by the Conservative leader, Lord Derby, to Gladstone,<br>whose immense...</code> | <code>"If you take my advice," said Stanley who was fighting his way towards<br>some remote goal or other, "you'll take a little flyer on Dr. Rice.<br>That's what I'm going to do. There's a fellow on the other side of the<br>ring has him a point higher than anyone else."<br>Dick, without having made up his mind as to his own betting or not<br>betting, helped his companion in his struggle to get through the crowd.<br>Desperate energy was necessary. There was never any time for apologies;<br>elbows were pushed into sides, toes were trodden on, scarfs twisted and<br>sleeve-links broken; no matter, there was money to be won and there was<br>no time either to consider passing annoyances or the possibility of<br>loss.<br>"Ah," said Stanley, finally, as they found themselves in front of a<br>black-board that had a figure "7" chalked to the left of the name Dr.<br>Rice and a "3" to the right. "Here we are! Now then, what are you going<br>to do?" He whipped out a twenty dollar bill and crumpled it carefully<br>into the palm of his hand.<br>Dick th...</code> |
227
+ * Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
228
+ ```json
229
+ {
230
+ "distance_metric": "TripletDistanceMetric.EUCLIDEAN",
231
+ "triplet_margin": 0.5
232
+ }
233
+ ```
234
+
235
+ ### Evaluation Dataset
236
+
237
+ #### csv
238
+
239
+ * Dataset: csv
240
+ * Size: 944,948 evaluation samples
241
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
242
+ * Approximate statistics based on the first 1000 samples:
243
+ | | anchor | positive | negative |
244
+ |:--------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
245
+ | type | string | string | string |
246
+ | details | <ul><li>min: 420 tokens</li><li>mean: 510.66 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 432 tokens</li><li>mean: 510.77 tokens</li><li>max: 512 tokens</li></ul> | <ul><li>min: 424 tokens</li><li>mean: 510.38 tokens</li><li>max: 512 tokens</li></ul> |
247
+ * Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
248
+ ```json
249
+ {
250
+ "distance_metric": "TripletDistanceMetric.EUCLIDEAN",
251
+ "triplet_margin": 0.5
252
+ }
253
+ ```
254
+
255
+ ### Training Hyperparameters
256
+ #### Non-Default Hyperparameters
257
+
258
+ - `eval_strategy`: steps
259
+ - `per_device_train_batch_size`: 35
260
+ - `per_device_eval_batch_size`: 35
261
+ - `warmup_ratio`: 0.1
262
+ - `fp16`: True
263
+ - `load_best_model_at_end`: True
264
+ - `batch_sampler`: no_duplicates
265
+
266
+ #### All Hyperparameters
267
+ <details><summary>Click to expand</summary>
268
+
269
+ - `overwrite_output_dir`: False
270
+ - `do_predict`: False
271
+ - `eval_strategy`: steps
272
+ - `prediction_loss_only`: True
273
+ - `per_device_train_batch_size`: 35
274
+ - `per_device_eval_batch_size`: 35
275
+ - `per_gpu_train_batch_size`: None
276
+ - `per_gpu_eval_batch_size`: None
277
+ - `gradient_accumulation_steps`: 1
278
+ - `eval_accumulation_steps`: None
279
+ - `torch_empty_cache_steps`: None
280
+ - `learning_rate`: 5e-05
281
+ - `weight_decay`: 0.0
282
+ - `adam_beta1`: 0.9
283
+ - `adam_beta2`: 0.999
284
+ - `adam_epsilon`: 1e-08
285
+ - `max_grad_norm`: 1.0
286
+ - `num_train_epochs`: 3
287
+ - `max_steps`: -1
288
+ - `lr_scheduler_type`: linear
289
+ - `lr_scheduler_kwargs`: {}
290
+ - `warmup_ratio`: 0.1
291
+ - `warmup_steps`: 0
292
+ - `log_level`: passive
293
+ - `log_level_replica`: warning
294
+ - `log_on_each_node`: True
295
+ - `logging_nan_inf_filter`: True
296
+ - `save_safetensors`: True
297
+ - `save_on_each_node`: False
298
+ - `save_only_model`: False
299
+ - `restore_callback_states_from_checkpoint`: False
300
+ - `no_cuda`: False
301
+ - `use_cpu`: False
302
+ - `use_mps_device`: False
303
+ - `seed`: 42
304
+ - `data_seed`: None
305
+ - `jit_mode_eval`: False
306
+ - `use_ipex`: False
307
+ - `bf16`: False
308
+ - `fp16`: True
309
+ - `fp16_opt_level`: O1
310
+ - `half_precision_backend`: auto
311
+ - `bf16_full_eval`: False
312
+ - `fp16_full_eval`: False
313
+ - `tf32`: None
314
+ - `local_rank`: 0
315
+ - `ddp_backend`: None
316
+ - `tpu_num_cores`: None
317
+ - `tpu_metrics_debug`: False
318
+ - `debug`: []
319
+ - `dataloader_drop_last`: False
320
+ - `dataloader_num_workers`: 0
321
+ - `dataloader_prefetch_factor`: None
322
+ - `past_index`: -1
323
+ - `disable_tqdm`: False
324
+ - `remove_unused_columns`: True
325
+ - `label_names`: None
326
+ - `load_best_model_at_end`: True
327
+ - `ignore_data_skip`: False
328
+ - `fsdp`: []
329
+ - `fsdp_min_num_params`: 0
330
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
331
+ - `fsdp_transformer_layer_cls_to_wrap`: None
332
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
333
+ - `deepspeed`: None
334
+ - `label_smoothing_factor`: 0.0
335
+ - `optim`: adamw_torch
336
+ - `optim_args`: None
337
+ - `adafactor`: False
338
+ - `group_by_length`: False
339
+ - `length_column_name`: length
340
+ - `ddp_find_unused_parameters`: None
341
+ - `ddp_bucket_cap_mb`: None
342
+ - `ddp_broadcast_buffers`: False
343
+ - `dataloader_pin_memory`: True
344
+ - `dataloader_persistent_workers`: False
345
+ - `skip_memory_metrics`: True
346
+ - `use_legacy_prediction_loop`: False
347
+ - `push_to_hub`: False
348
+ - `resume_from_checkpoint`: None
349
+ - `hub_model_id`: None
350
+ - `hub_strategy`: every_save
351
+ - `hub_private_repo`: False
352
+ - `hub_always_push`: False
353
+ - `gradient_checkpointing`: False
354
+ - `gradient_checkpointing_kwargs`: None
355
+ - `include_inputs_for_metrics`: False
356
+ - `include_for_metrics`: []
357
+ - `eval_do_concat_batches`: True
358
+ - `fp16_backend`: auto
359
+ - `push_to_hub_model_id`: None
360
+ - `push_to_hub_organization`: None
361
+ - `mp_parameters`:
362
+ - `auto_find_batch_size`: False
363
+ - `full_determinism`: False
364
+ - `torchdynamo`: None
365
+ - `ray_scope`: last
366
+ - `ddp_timeout`: 1800
367
+ - `torch_compile`: False
368
+ - `torch_compile_backend`: None
369
+ - `torch_compile_mode`: None
370
+ - `dispatch_batches`: None
371
+ - `split_batches`: None
372
+ - `include_tokens_per_second`: False
373
+ - `include_num_input_tokens_seen`: False
374
+ - `neftune_noise_alpha`: None
375
+ - `optim_target_modules`: None
376
+ - `batch_eval_metrics`: False
377
+ - `eval_on_start`: False
378
+ - `use_liger_kernel`: False
379
+ - `eval_use_gather_object`: False
380
+ - `average_tokens_across_devices`: False
381
+ - `prompts`: None
382
+ - `batch_sampler`: no_duplicates
383
+ - `multi_dataset_batch_sampler`: proportional
384
+
385
+ </details>
386
+
387
+ * The bold row denotes the saved checkpoint.
388
+ </details>
389
+
390
+ ### Framework Versions
391
+ - Python: 3.12.0
392
+ - Sentence Transformers: 3.4.0.dev0
393
+ - Transformers: 4.46.3
394
+ - PyTorch: 2.5.1+cu121
395
+ - Accelerate: 1.1.1
396
+ - Datasets: 3.1.0
397
+ - Tokenizers: 0.20.3
398
+
399
+ ## Citation
400
+
401
+ ### BibTeX
402
+
403
+ #### Sentence Transformers
404
+ ```bibtex
405
+ @inproceedings{reimers-2019-sentence-bert,
406
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
407
+ author = "Reimers, Nils and Gurevych, Iryna",
408
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
409
+ month = "11",
410
+ year = "2019",
411
+ publisher = "Association for Computational Linguistics",
412
+ url = "https://arxiv.org/abs/1908.10084",
413
+ }
414
+ ```
415
+
416
+ #### TripletLoss
417
+ ```bibtex
418
+ @misc{hermans2017defense,
419
+ title={In Defense of the Triplet Loss for Person Re-Identification},
420
+ author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
421
+ year={2017},
422
+ eprint={1703.07737},
423
+ archivePrefix={arXiv},
424
+ primaryClass={cs.CV}
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
+ -->