FritzStack commited on
Commit
4397262
·
verified ·
1 Parent(s): e8d1f79

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,456 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:157108
9
+ - loss:DenoisingAutoEncoderLoss
10
+ base_model: sentence-transformers/all-MiniLM-L6-v2
11
+ widget:
12
+ - source_sentence: you only going off me im saying is me person care they are getting
13
+ or therapy they get I will ive 20 different psychiatrists and all have disorders
14
+ for its we about managing.
15
+ sentences:
16
+ - Help So i've been together with my boyfriend for a month now and we we're gonna
17
+ hang out today but i'm not feeling well. I had a sweet sixteen party yesterday
18
+ and i don't have any energy left. This isn't the first time that i cancel on him
19
+ on the same day we meet up. I just feel guilty because I really do want to see
20
+ him but plans come up last minute. He's very patient with me but i feel like his
21
+ parents will start having a bad image of me and I don't want to lose him. It's
22
+ maybe the 3rd time i had to cancel on him. Any advice
23
+ - That’s pretty interesting I’ve always read that Bundy had a PCL-R score of 39
24
+ which is insane I guess it’s all speculation unless you can see the reports directly. I
25
+ tend to agree that there is usually something else going on but I would say that
26
+ you would have to either be psychotic and not know what you are doing or pretty
27
+ psychopathic to abduct torture rape and kill multiple people.
28
+ - I agree with you im only going off what's happened to me im not saying everyone
29
+ is like me it depends on the person the care they are getting the meds or therapy
30
+ they get. I will say ive seen over 20 different psychiatrists and they all say
31
+ you will have these disorders for life its just how we go about managing them.
32
+ - source_sentence: to the morning
33
+ sentences:
34
+ - 'Does my friends with benefits have feelings? Okay, so I did the classic: came
35
+ out of a relationship and started hooking up with a friend. We did the classic
36
+ tell each other and friendship wouldn’t be ruined etc and that we’d be open to
37
+ seeing where it went. I came out of a relationship that made me very anxious and
38
+ nervous, into a situation where I can be open and myself easily around a girl
39
+ that I get and can really enjoy the company of. It started off as a text after
40
+ going out to hook up at 1am the standard routine, but now i find myself staying
41
+ over for 4 days in a row. I didn’t think I would but I’m pretty keen on her, and
42
+ enjoy spending time with her. We’re in the same social circles and often end up
43
+ hanging out at parties together etc. We don’t just have sex, we get food, cook
44
+ for each other and it’s very couple-esque (a lot of holding hands, cuddling).
45
+ However she’ll always mention other girls we know, playfully saying I could hook
46
+ up with them and teasing about it. She remarks that I’m falling in love with her
47
+ and mentions about her birthday, but then when we talk about something that’s
48
+ happening in say 5 months, she asks will we still be friends then (referring to
49
+ will this have gone wrong by then and fallen out). I’m pretty keen on seeing where
50
+ this goes but obviously don’t want to lay it on the table and get shot down. I’m
51
+ a shit for reading into things heavily so just wanted a second opinion on whether
52
+ this does seem to be going somewhere or is this a standard fwb situation as I’ve
53
+ no experience.'
54
+ - How do I transfer a weapon to another person legally? So Im currently 18, and
55
+ its legal for me to own a rifle. However some of places I would like to buy one
56
+ like Dicks Sporting goods have that over 21 age restriction. Can I have my father
57
+ purchase the firearm and then somehow we could transfer it into my name? Just
58
+ need an answer I havent found anything too helpful.
59
+ - Wake up to that person in the morning
60
+ - source_sentence: and
61
+ sentences:
62
+ - '​'
63
+ - We live far apart I cannot give her a visit, with her kids she left em with their
64
+ dad, dog is already with someone, what can I do? I cannot stop her pain she is
65
+ suffering mentally and physically
66
+ - Seroquel and depakote
67
+ - source_sentence: For've been's USAWX for 12K, almost completely in green down .
68
+ looking at Fidelity too since USAWX 1.1 . is things are well international stocks,
69
+ be the index by a bit beats the index . that I it since winning" more the it expense
70
+ ratio?
71
+ sentences:
72
+ - 'loans:'
73
+ - Yeah this is true. I think the point of redefining autism stereotypes is fighting
74
+ bullying in highschool. I still get bullied tho, so it’s not just highschool.
75
+ - For international I've been in USAA's USAWX for forever, and am at 12K, almost
76
+ completely in the green except for some of last year's buy-in that's still upside
77
+ down. I'm looking at moving to the Fidelity index fund equivalent there too since
78
+ USAWX has a 1.1% exp ratio. Thing is, when things are going well for international
79
+ stocks, it seems to be outperforming the index funds by quite a bit. It beats
80
+ the index funds by 1.1%. Does that mean I should probably stick with it since
81
+ it's "winning" by more than the amount it costs me in expense ratio?
82
+ - source_sentence: //reddit.com/r/tressless/comments/140rdo4/i_lose_all_my_hair_in_the_winter_and_it_grows/
83
+ sentences:
84
+ - But yes, I like the was you put that the negative wouldn’t gain traction, I told
85
+ my therapist that (not in your words) and she thought it was very interesting.
86
+ - https://reddit.com/r/tressless/comments/140rdo4/i_lose_all_my_hair_in_the_winter_and_it_grows/
87
+ - I'm falling apart About 2 years back I was going to kill myself but my dad pulling
88
+ in the driveway prevented me from doing it. I was ready that day, I truly did
89
+ not want to live anymore. I continued pushing on but there hasn't been a day that
90
+ has passed where I haven't thought about killing myself. I feel so depressed and
91
+ out of touch with everyone. I'm 18 now and I go to school with a smile trying
92
+ to make everyone I see laugh. I'm so scared one day I'm gonna be overwhelmed with
93
+ that feeling I got 2 years ago and kill myself. I don't wanna tell my parents
94
+ because there struggling with there own problems. I never told anyone how I'm
95
+ really feeling. I don't wanna seem weak to my family because they have been through
96
+ more than me. I don't know what to do.
97
+ pipeline_tag: sentence-similarity
98
+ library_name: sentence-transformers
99
+ ---
100
+
101
+ # SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
102
+
103
+ 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.
104
+
105
+ ## Model Details
106
+
107
+ ### Model Description
108
+ - **Model Type:** Sentence Transformer
109
+ - **Base model:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
110
+ - **Maximum Sequence Length:** 256 tokens
111
+ - **Output Dimensionality:** 384 dimensions
112
+ - **Similarity Function:** Cosine Similarity
113
+ <!-- - **Training Dataset:** Unknown -->
114
+ <!-- - **Language:** Unknown -->
115
+ <!-- - **License:** Unknown -->
116
+
117
+ ### Model Sources
118
+
119
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
120
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
121
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
122
+
123
+ ### Full Model Architecture
124
+
125
+ ```
126
+ SentenceTransformer(
127
+ (0): Transformer({'max_seq_length': 256, 'do_lower_case': False, 'architecture': 'BertModel'})
128
+ (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})
129
+ (2): Normalize()
130
+ )
131
+ ```
132
+
133
+ ## Usage
134
+
135
+ ### Direct Usage (Sentence Transformers)
136
+
137
+ First install the Sentence Transformers library:
138
+
139
+ ```bash
140
+ pip install -U sentence-transformers
141
+ ```
142
+
143
+ Then you can load this model and run inference.
144
+ ```python
145
+ from sentence_transformers import SentenceTransformer
146
+
147
+ # Download from the 🤗 Hub
148
+ model = SentenceTransformer("FritzStack/tsdae-model")
149
+ # Run inference
150
+ sentences = [
151
+ '//reddit.com/r/tressless/comments/140rdo4/i_lose_all_my_hair_in_the_winter_and_it_grows/',
152
+ 'https://reddit.com/r/tressless/comments/140rdo4/i_lose_all_my_hair_in_the_winter_and_it_grows/',
153
+ "I'm falling apart About 2 years back I was going to kill myself but my dad pulling in the driveway prevented me from doing it. I was ready that day, I truly did not want to live anymore. I continued pushing on but there hasn't been a day that has passed where I haven't thought about killing myself. I feel so depressed and out of touch with everyone. I'm 18 now and I go to school with a smile trying to make everyone I see laugh. I'm so scared one day I'm gonna be overwhelmed with that feeling I got 2 years ago and kill myself. I don't wanna tell my parents because there struggling with there own problems. I never told anyone how I'm really feeling. I don't wanna seem weak to my family because they have been through more than me. I don't know what to do.",
154
+ ]
155
+ embeddings = model.encode(sentences)
156
+ print(embeddings.shape)
157
+ # [3, 384]
158
+
159
+ # Get the similarity scores for the embeddings
160
+ similarities = model.similarity(embeddings, embeddings)
161
+ print(similarities)
162
+ # tensor([[ 1.0000, 0.9741, -0.4935],
163
+ # [ 0.9741, 1.0000, -0.4393],
164
+ # [-0.4935, -0.4393, 1.0000]])
165
+ ```
166
+
167
+ <!--
168
+ ### Direct Usage (Transformers)
169
+
170
+ <details><summary>Click to see the direct usage in Transformers</summary>
171
+
172
+ </details>
173
+ -->
174
+
175
+ <!--
176
+ ### Downstream Usage (Sentence Transformers)
177
+
178
+ You can finetune this model on your own dataset.
179
+
180
+ <details><summary>Click to expand</summary>
181
+
182
+ </details>
183
+ -->
184
+
185
+ <!--
186
+ ### Out-of-Scope Use
187
+
188
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
189
+ -->
190
+
191
+ <!--
192
+ ## Bias, Risks and Limitations
193
+
194
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
195
+ -->
196
+
197
+ <!--
198
+ ### Recommendations
199
+
200
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
201
+ -->
202
+
203
+ ## Training Details
204
+
205
+ ### Training Dataset
206
+
207
+ #### Unnamed Dataset
208
+
209
+ * Size: 157,108 training samples
210
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
211
+ * Approximate statistics based on the first 1000 samples:
212
+ | | sentence_0 | sentence_1 |
213
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
214
+ | type | string | string |
215
+ | details | <ul><li>min: 3 tokens</li><li>mean: 24.65 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 56.22 tokens</li><li>max: 256 tokens</li></ul> |
216
+ * Samples:
217
+ | sentence_0 | sentence_1 |
218
+ |:---------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------|
219
+ | <code>pleased you hope your meds help you</code> | <code>Im pleased you reached out and I hope your meds will help you please take care and stay safe</code> |
220
+ | <code>google ”</code> | <code>Just google searched “mental illness”</code> |
221
+ | <code>ago stoping these substances take for brain back to “ normal.</code> | <code>I read somewhere years ago that when stoping these substances it can take up to 3 months for you brain to regulate, get back to “normal”.</code> |
222
+ * Loss: [<code>DenoisingAutoEncoderLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#denoisingautoencoderloss)
223
+
224
+ ### Training Hyperparameters
225
+ #### Non-Default Hyperparameters
226
+
227
+ - `num_train_epochs`: 1
228
+ - `multi_dataset_batch_sampler`: round_robin
229
+
230
+ #### All Hyperparameters
231
+ <details><summary>Click to expand</summary>
232
+
233
+ - `overwrite_output_dir`: False
234
+ - `do_predict`: False
235
+ - `eval_strategy`: no
236
+ - `prediction_loss_only`: True
237
+ - `per_device_train_batch_size`: 8
238
+ - `per_device_eval_batch_size`: 8
239
+ - `per_gpu_train_batch_size`: None
240
+ - `per_gpu_eval_batch_size`: None
241
+ - `gradient_accumulation_steps`: 1
242
+ - `eval_accumulation_steps`: None
243
+ - `torch_empty_cache_steps`: None
244
+ - `learning_rate`: 5e-05
245
+ - `weight_decay`: 0.0
246
+ - `adam_beta1`: 0.9
247
+ - `adam_beta2`: 0.999
248
+ - `adam_epsilon`: 1e-08
249
+ - `max_grad_norm`: 1
250
+ - `num_train_epochs`: 1
251
+ - `max_steps`: -1
252
+ - `lr_scheduler_type`: linear
253
+ - `lr_scheduler_kwargs`: {}
254
+ - `warmup_ratio`: 0.0
255
+ - `warmup_steps`: 0
256
+ - `log_level`: passive
257
+ - `log_level_replica`: warning
258
+ - `log_on_each_node`: True
259
+ - `logging_nan_inf_filter`: True
260
+ - `save_safetensors`: True
261
+ - `save_on_each_node`: False
262
+ - `save_only_model`: False
263
+ - `restore_callback_states_from_checkpoint`: False
264
+ - `no_cuda`: False
265
+ - `use_cpu`: False
266
+ - `use_mps_device`: False
267
+ - `seed`: 42
268
+ - `data_seed`: None
269
+ - `jit_mode_eval`: False
270
+ - `bf16`: False
271
+ - `fp16`: False
272
+ - `fp16_opt_level`: O1
273
+ - `half_precision_backend`: auto
274
+ - `bf16_full_eval`: False
275
+ - `fp16_full_eval`: False
276
+ - `tf32`: None
277
+ - `local_rank`: 0
278
+ - `ddp_backend`: None
279
+ - `tpu_num_cores`: None
280
+ - `tpu_metrics_debug`: False
281
+ - `debug`: []
282
+ - `dataloader_drop_last`: False
283
+ - `dataloader_num_workers`: 0
284
+ - `dataloader_prefetch_factor`: None
285
+ - `past_index`: -1
286
+ - `disable_tqdm`: False
287
+ - `remove_unused_columns`: True
288
+ - `label_names`: None
289
+ - `load_best_model_at_end`: False
290
+ - `ignore_data_skip`: False
291
+ - `fsdp`: []
292
+ - `fsdp_min_num_params`: 0
293
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
294
+ - `fsdp_transformer_layer_cls_to_wrap`: None
295
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
296
+ - `parallelism_config`: None
297
+ - `deepspeed`: None
298
+ - `label_smoothing_factor`: 0.0
299
+ - `optim`: adamw_torch_fused
300
+ - `optim_args`: None
301
+ - `adafactor`: False
302
+ - `group_by_length`: False
303
+ - `length_column_name`: length
304
+ - `project`: huggingface
305
+ - `trackio_space_id`: trackio
306
+ - `ddp_find_unused_parameters`: None
307
+ - `ddp_bucket_cap_mb`: None
308
+ - `ddp_broadcast_buffers`: False
309
+ - `dataloader_pin_memory`: True
310
+ - `dataloader_persistent_workers`: False
311
+ - `skip_memory_metrics`: True
312
+ - `use_legacy_prediction_loop`: False
313
+ - `push_to_hub`: False
314
+ - `resume_from_checkpoint`: None
315
+ - `hub_model_id`: None
316
+ - `hub_strategy`: every_save
317
+ - `hub_private_repo`: None
318
+ - `hub_always_push`: False
319
+ - `hub_revision`: None
320
+ - `gradient_checkpointing`: False
321
+ - `gradient_checkpointing_kwargs`: None
322
+ - `include_inputs_for_metrics`: False
323
+ - `include_for_metrics`: []
324
+ - `eval_do_concat_batches`: True
325
+ - `fp16_backend`: auto
326
+ - `push_to_hub_model_id`: None
327
+ - `push_to_hub_organization`: None
328
+ - `mp_parameters`:
329
+ - `auto_find_batch_size`: False
330
+ - `full_determinism`: False
331
+ - `torchdynamo`: None
332
+ - `ray_scope`: last
333
+ - `ddp_timeout`: 1800
334
+ - `torch_compile`: False
335
+ - `torch_compile_backend`: None
336
+ - `torch_compile_mode`: None
337
+ - `include_tokens_per_second`: False
338
+ - `include_num_input_tokens_seen`: no
339
+ - `neftune_noise_alpha`: None
340
+ - `optim_target_modules`: None
341
+ - `batch_eval_metrics`: False
342
+ - `eval_on_start`: False
343
+ - `use_liger_kernel`: False
344
+ - `liger_kernel_config`: None
345
+ - `eval_use_gather_object`: False
346
+ - `average_tokens_across_devices`: True
347
+ - `prompts`: None
348
+ - `batch_sampler`: batch_sampler
349
+ - `multi_dataset_batch_sampler`: round_robin
350
+ - `router_mapping`: {}
351
+ - `learning_rate_mapping`: {}
352
+
353
+ </details>
354
+
355
+ ### Training Logs
356
+ | Epoch | Step | Training Loss |
357
+ |:------:|:-----:|:-------------:|
358
+ | 0.0255 | 500 | 5.9336 |
359
+ | 0.0509 | 1000 | 5.1205 |
360
+ | 0.0764 | 1500 | 4.934 |
361
+ | 0.1018 | 2000 | 4.8384 |
362
+ | 0.1273 | 2500 | 4.7276 |
363
+ | 0.1528 | 3000 | 4.654 |
364
+ | 0.1782 | 3500 | 4.5868 |
365
+ | 0.2037 | 4000 | 4.5503 |
366
+ | 0.2291 | 4500 | 4.5123 |
367
+ | 0.2546 | 5000 | 4.4886 |
368
+ | 0.2801 | 5500 | 4.4341 |
369
+ | 0.3055 | 6000 | 4.4278 |
370
+ | 0.3310 | 6500 | 4.3816 |
371
+ | 0.3564 | 7000 | 4.3648 |
372
+ | 0.3819 | 7500 | 4.3486 |
373
+ | 0.4074 | 8000 | 4.3359 |
374
+ | 0.4328 | 8500 | 4.311 |
375
+ | 0.4583 | 9000 | 4.295 |
376
+ | 0.4837 | 9500 | 4.2785 |
377
+ | 0.5092 | 10000 | 4.2641 |
378
+ | 0.5347 | 10500 | 4.2305 |
379
+ | 0.5601 | 11000 | 4.2154 |
380
+ | 0.5856 | 11500 | 4.2179 |
381
+ | 0.6110 | 12000 | 4.1968 |
382
+ | 0.6365 | 12500 | 4.1837 |
383
+ | 0.6619 | 13000 | 4.1837 |
384
+ | 0.6874 | 13500 | 4.1697 |
385
+ | 0.7129 | 14000 | 4.1413 |
386
+ | 0.7383 | 14500 | 4.1228 |
387
+ | 0.7638 | 15000 | 4.1159 |
388
+ | 0.7892 | 15500 | 4.1147 |
389
+ | 0.8147 | 16000 | 4.1081 |
390
+ | 0.8402 | 16500 | 4.1114 |
391
+ | 0.8656 | 17000 | 4.1163 |
392
+ | 0.8911 | 17500 | 4.075 |
393
+ | 0.9165 | 18000 | 4.0956 |
394
+ | 0.9420 | 18500 | 4.0727 |
395
+ | 0.9675 | 19000 | 4.0739 |
396
+ | 0.9929 | 19500 | 4.0511 |
397
+
398
+
399
+ ### Framework Versions
400
+ - Python: 3.12.12
401
+ - Sentence Transformers: 5.1.2
402
+ - Transformers: 4.57.1
403
+ - PyTorch: 2.8.0+cu126
404
+ - Accelerate: 1.11.0
405
+ - Datasets: 4.0.0
406
+ - Tokenizers: 0.22.1
407
+
408
+ ## Citation
409
+
410
+ ### BibTeX
411
+
412
+ #### Sentence Transformers
413
+ ```bibtex
414
+ @inproceedings{reimers-2019-sentence-bert,
415
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
416
+ author = "Reimers, Nils and Gurevych, Iryna",
417
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
418
+ month = "11",
419
+ year = "2019",
420
+ publisher = "Association for Computational Linguistics",
421
+ url = "https://arxiv.org/abs/1908.10084",
422
+ }
423
+ ```
424
+
425
+ #### DenoisingAutoEncoderLoss
426
+ ```bibtex
427
+ @inproceedings{wang-2021-TSDAE,
428
+ title = "TSDAE: Using Transformer-based Sequential Denoising Auto-Encoderfor Unsupervised Sentence Embedding Learning",
429
+ author = "Wang, Kexin and Reimers, Nils and Gurevych, Iryna",
430
+ booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
431
+ month = nov,
432
+ year = "2021",
433
+ address = "Punta Cana, Dominican Republic",
434
+ publisher = "Association for Computational Linguistics",
435
+ pages = "671--688",
436
+ url = "https://arxiv.org/abs/2104.06979",
437
+ }
438
+ ```
439
+
440
+ <!--
441
+ ## Glossary
442
+
443
+ *Clearly define terms in order to be accessible across audiences.*
444
+ -->
445
+
446
+ <!--
447
+ ## Model Card Authors
448
+
449
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
450
+ -->
451
+
452
+ <!--
453
+ ## Model Card Contact
454
+
455
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
456
+ -->
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
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
+ "transformers_version": "4.57.1",
22
+ "type_vocab_size": 2,
23
+ "use_cache": true,
24
+ "vocab_size": 30522
25
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.2",
4
+ "transformers": "4.57.1",
5
+ "pytorch": "2.8.0+cu126"
6
+ },
7
+ "model_type": "SentenceTransformer",
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02502b07bb0afb3251b595a519e26d06a2aa4e13156c83a8fb10d97d504f1741
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