jarredparrett commited on
Commit
9ea7bb5
1 Parent(s): 41dd645

Add new SentenceTransformer model.

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md ADDED
@@ -0,0 +1,531 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: llmrails/ember-v1
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ metrics:
7
+ - pearson_cosine
8
+ - spearman_cosine
9
+ - pearson_manhattan
10
+ - spearman_manhattan
11
+ - pearson_euclidean
12
+ - spearman_euclidean
13
+ - pearson_dot
14
+ - spearman_dot
15
+ - pearson_max
16
+ - spearman_max
17
+ pipeline_tag: sentence-similarity
18
+ tags:
19
+ - sentence-transformers
20
+ - sentence-similarity
21
+ - feature-extraction
22
+ - generated_from_trainer
23
+ - dataset_size:17500
24
+ - loss:ContrastiveLoss
25
+ widget:
26
+ - source_sentence: 260 Mount Prospect Apt A4
27
+ sentences:
28
+ - 254 Mount Apt 304
29
+ - '110 Nightin - Gale #10'
30
+ - 3100 35 Apt 2
31
+ - source_sentence: '20 Harding #2'
32
+ sentences:
33
+ - '1208 Barclay #2'
34
+ - '65 Chestnut # 72'
35
+ - '20 Harding # 2'
36
+ - source_sentence: 396 Manila Apt 2B
37
+ sentences:
38
+ - 108 Gaston 1
39
+ - '175 2nd #710'
40
+ - '1 - 02 Virginia #102B'
41
+ - source_sentence: '210 Gordon Fl #1'
42
+ sentences:
43
+ - 450 Raritan Ste C
44
+ - '19 Edsall #1'
45
+ - '210 Gordon # 1'
46
+ - source_sentence: '148 1 / 2 Mill #B'
47
+ sentences:
48
+ - '7918 Pershing #'
49
+ - '91 5th #1'
50
+ - 148 1 / 2 Mill Apt B
51
+ model-index:
52
+ - name: SentenceTransformer based on llmrails/ember-v1
53
+ results:
54
+ - task:
55
+ type: semantic-similarity
56
+ name: Semantic Similarity
57
+ dataset:
58
+ name: test
59
+ type: test
60
+ metrics:
61
+ - type: pearson_cosine
62
+ value: 0.7022202945624949
63
+ name: Pearson Cosine
64
+ - type: spearman_cosine
65
+ value: 0.5521115900667813
66
+ name: Spearman Cosine
67
+ - type: pearson_manhattan
68
+ value: 0.5902198760799219
69
+ name: Pearson Manhattan
70
+ - type: spearman_manhattan
71
+ value: 0.5601831188247873
72
+ name: Spearman Manhattan
73
+ - type: pearson_euclidean
74
+ value: 0.5899864734850421
75
+ name: Pearson Euclidean
76
+ - type: spearman_euclidean
77
+ value: 0.5598213668477258
78
+ name: Spearman Euclidean
79
+ - type: pearson_dot
80
+ value: 0.5811885721377421
81
+ name: Pearson Dot
82
+ - type: spearman_dot
83
+ value: 0.45745466821334696
84
+ name: Spearman Dot
85
+ - type: pearson_max
86
+ value: 0.7022202945624949
87
+ name: Pearson Max
88
+ - type: spearman_max
89
+ value: 0.5601831188247873
90
+ name: Spearman Max
91
+ - task:
92
+ type: semantic-similarity
93
+ name: Semantic Similarity
94
+ dataset:
95
+ name: validation
96
+ type: validation
97
+ metrics:
98
+ - type: pearson_cosine
99
+ value: 0.9438614062035536
100
+ name: Pearson Cosine
101
+ - type: spearman_cosine
102
+ value: 0.6566095423715015
103
+ name: Spearman Cosine
104
+ - type: pearson_manhattan
105
+ value: 0.9661648909940331
106
+ name: Pearson Manhattan
107
+ - type: spearman_manhattan
108
+ value: 0.6545897461863388
109
+ name: Spearman Manhattan
110
+ - type: pearson_euclidean
111
+ value: 0.9662831349240031
112
+ name: Pearson Euclidean
113
+ - type: spearman_euclidean
114
+ value: 0.6545799233453334
115
+ name: Spearman Euclidean
116
+ - type: pearson_dot
117
+ value: 0.7832494697144132
118
+ name: Pearson Dot
119
+ - type: spearman_dot
120
+ value: 0.6240051940767
121
+ name: Spearman Dot
122
+ - type: pearson_max
123
+ value: 0.9662831349240031
124
+ name: Pearson Max
125
+ - type: spearman_max
126
+ value: 0.6566095423715015
127
+ name: Spearman Max
128
+ ---
129
+
130
+ # SentenceTransformer based on llmrails/ember-v1
131
+
132
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [llmrails/ember-v1](https://huggingface.co/llmrails/ember-v1). It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
133
+
134
+ ## Model Details
135
+
136
+ ### Model Description
137
+ - **Model Type:** Sentence Transformer
138
+ - **Base model:** [llmrails/ember-v1](https://huggingface.co/llmrails/ember-v1) <!-- at revision 5e5ce5904901f6ce1c353a95020f17f09e5d021d -->
139
+ - **Maximum Sequence Length:** 512 tokens
140
+ - **Output Dimensionality:** 1024 tokens
141
+ - **Similarity Function:** Cosine Similarity
142
+ <!-- - **Training Dataset:** Unknown -->
143
+ <!-- - **Language:** Unknown -->
144
+ <!-- - **License:** Unknown -->
145
+
146
+ ### Model Sources
147
+
148
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
149
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
150
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
151
+
152
+ ### Full Model Architecture
153
+
154
+ ```
155
+ SentenceTransformer(
156
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
157
+ (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
158
+ )
159
+ ```
160
+
161
+ ## Usage
162
+
163
+ ### Direct Usage (Sentence Transformers)
164
+
165
+ First install the Sentence Transformers library:
166
+
167
+ ```bash
168
+ pip install -U sentence-transformers
169
+ ```
170
+
171
+ Then you can load this model and run inference.
172
+ ```python
173
+ from sentence_transformers import SentenceTransformer
174
+
175
+ # Download from the 🤗 Hub
176
+ model = SentenceTransformer("jarredparrett/fine-tuned-address-model-ember-v1")
177
+ # Run inference
178
+ sentences = [
179
+ '148 1 / 2 Mill #B',
180
+ '148 1 / 2 Mill Apt B',
181
+ '7918 Pershing #',
182
+ ]
183
+ embeddings = model.encode(sentences)
184
+ print(embeddings.shape)
185
+ # [3, 1024]
186
+
187
+ # Get the similarity scores for the embeddings
188
+ similarities = model.similarity(embeddings, embeddings)
189
+ print(similarities.shape)
190
+ # [3, 3]
191
+ ```
192
+
193
+ <!--
194
+ ### Direct Usage (Transformers)
195
+
196
+ <details><summary>Click to see the direct usage in Transformers</summary>
197
+
198
+ </details>
199
+ -->
200
+
201
+ <!--
202
+ ### Downstream Usage (Sentence Transformers)
203
+
204
+ You can finetune this model on your own dataset.
205
+
206
+ <details><summary>Click to expand</summary>
207
+
208
+ </details>
209
+ -->
210
+
211
+ <!--
212
+ ### Out-of-Scope Use
213
+
214
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
215
+ -->
216
+
217
+ ## Evaluation
218
+
219
+ ### Metrics
220
+
221
+ #### Semantic Similarity
222
+ * Dataset: `test`
223
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
224
+
225
+ | Metric | Value |
226
+ |:-------------------|:-----------|
227
+ | pearson_cosine | 0.7022 |
228
+ | spearman_cosine | 0.5521 |
229
+ | pearson_manhattan | 0.5902 |
230
+ | spearman_manhattan | 0.5602 |
231
+ | pearson_euclidean | 0.59 |
232
+ | spearman_euclidean | 0.5598 |
233
+ | pearson_dot | 0.5812 |
234
+ | spearman_dot | 0.4575 |
235
+ | pearson_max | 0.7022 |
236
+ | **spearman_max** | **0.5602** |
237
+
238
+ #### Semantic Similarity
239
+ * Dataset: `validation`
240
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
241
+
242
+ | Metric | Value |
243
+ |:-------------------|:-----------|
244
+ | pearson_cosine | 0.9439 |
245
+ | spearman_cosine | 0.6566 |
246
+ | pearson_manhattan | 0.9662 |
247
+ | spearman_manhattan | 0.6546 |
248
+ | pearson_euclidean | 0.9663 |
249
+ | spearman_euclidean | 0.6546 |
250
+ | pearson_dot | 0.7832 |
251
+ | spearman_dot | 0.624 |
252
+ | pearson_max | 0.9663 |
253
+ | **spearman_max** | **0.6566** |
254
+
255
+ <!--
256
+ ## Bias, Risks and Limitations
257
+
258
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
259
+ -->
260
+
261
+ <!--
262
+ ### Recommendations
263
+
264
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
265
+ -->
266
+
267
+ ## Training Details
268
+
269
+ ### Training Dataset
270
+
271
+ #### Unnamed Dataset
272
+
273
+
274
+ * Size: 17,500 training samples
275
+ * Columns: <code>sentence_0</code>, <code>sentence_1</code>, and <code>label</code>
276
+ * Approximate statistics based on the first 1000 samples:
277
+ | | sentence_0 | sentence_1 | label |
278
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:------------------------------------------------|
279
+ | type | string | string | int |
280
+ | details | <ul><li>min: 5 tokens</li><li>mean: 6.97 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 6.96 tokens</li><li>max: 12 tokens</li></ul> | <ul><li>0: ~17.80%</li><li>1: ~82.20%</li></ul> |
281
+ * Samples:
282
+ | sentence_0 | sentence_1 | label |
283
+ |:--------------------------------|:------------------------------------|:---------------|
284
+ | <code>94 Liberty 1</code> | <code>94 Liberty Flr 1</code> | <code>1</code> |
285
+ | <code>166 Randolph Apt 1</code> | <code>166 Randolph Flr 1</code> | <code>1</code> |
286
+ | <code>400 Dutch Apt E12</code> | <code>400 Dutch Neck Apt E12</code> | <code>1</code> |
287
+ * Loss: [<code>ContrastiveLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#contrastiveloss) with these parameters:
288
+ ```json
289
+ {
290
+ "distance_metric": "SiameseDistanceMetric.COSINE_DISTANCE",
291
+ "margin": 0.5,
292
+ "size_average": true
293
+ }
294
+ ```
295
+
296
+ ### Training Hyperparameters
297
+ #### Non-Default Hyperparameters
298
+
299
+ - `eval_strategy`: steps
300
+ - `per_device_train_batch_size`: 16
301
+ - `per_device_eval_batch_size`: 16
302
+ - `num_train_epochs`: 4
303
+ - `multi_dataset_batch_sampler`: round_robin
304
+
305
+ #### All Hyperparameters
306
+ <details><summary>Click to expand</summary>
307
+
308
+ - `overwrite_output_dir`: False
309
+ - `do_predict`: False
310
+ - `eval_strategy`: steps
311
+ - `prediction_loss_only`: True
312
+ - `per_device_train_batch_size`: 16
313
+ - `per_device_eval_batch_size`: 16
314
+ - `per_gpu_train_batch_size`: None
315
+ - `per_gpu_eval_batch_size`: None
316
+ - `gradient_accumulation_steps`: 1
317
+ - `eval_accumulation_steps`: None
318
+ - `torch_empty_cache_steps`: None
319
+ - `learning_rate`: 5e-05
320
+ - `weight_decay`: 0.0
321
+ - `adam_beta1`: 0.9
322
+ - `adam_beta2`: 0.999
323
+ - `adam_epsilon`: 1e-08
324
+ - `max_grad_norm`: 1
325
+ - `num_train_epochs`: 4
326
+ - `max_steps`: -1
327
+ - `lr_scheduler_type`: linear
328
+ - `lr_scheduler_kwargs`: {}
329
+ - `warmup_ratio`: 0.0
330
+ - `warmup_steps`: 0
331
+ - `log_level`: passive
332
+ - `log_level_replica`: warning
333
+ - `log_on_each_node`: True
334
+ - `logging_nan_inf_filter`: True
335
+ - `save_safetensors`: True
336
+ - `save_on_each_node`: False
337
+ - `save_only_model`: False
338
+ - `restore_callback_states_from_checkpoint`: False
339
+ - `no_cuda`: False
340
+ - `use_cpu`: False
341
+ - `use_mps_device`: False
342
+ - `seed`: 42
343
+ - `data_seed`: None
344
+ - `jit_mode_eval`: False
345
+ - `use_ipex`: False
346
+ - `bf16`: False
347
+ - `fp16`: False
348
+ - `fp16_opt_level`: O1
349
+ - `half_precision_backend`: auto
350
+ - `bf16_full_eval`: False
351
+ - `fp16_full_eval`: False
352
+ - `tf32`: None
353
+ - `local_rank`: 0
354
+ - `ddp_backend`: None
355
+ - `tpu_num_cores`: None
356
+ - `tpu_metrics_debug`: False
357
+ - `debug`: []
358
+ - `dataloader_drop_last`: False
359
+ - `dataloader_num_workers`: 0
360
+ - `dataloader_prefetch_factor`: None
361
+ - `past_index`: -1
362
+ - `disable_tqdm`: False
363
+ - `remove_unused_columns`: True
364
+ - `label_names`: None
365
+ - `load_best_model_at_end`: False
366
+ - `ignore_data_skip`: False
367
+ - `fsdp`: []
368
+ - `fsdp_min_num_params`: 0
369
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
370
+ - `fsdp_transformer_layer_cls_to_wrap`: None
371
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
372
+ - `deepspeed`: None
373
+ - `label_smoothing_factor`: 0.0
374
+ - `optim`: adamw_torch
375
+ - `optim_args`: None
376
+ - `adafactor`: False
377
+ - `group_by_length`: False
378
+ - `length_column_name`: length
379
+ - `ddp_find_unused_parameters`: None
380
+ - `ddp_bucket_cap_mb`: None
381
+ - `ddp_broadcast_buffers`: False
382
+ - `dataloader_pin_memory`: True
383
+ - `dataloader_persistent_workers`: False
384
+ - `skip_memory_metrics`: True
385
+ - `use_legacy_prediction_loop`: False
386
+ - `push_to_hub`: False
387
+ - `resume_from_checkpoint`: None
388
+ - `hub_model_id`: None
389
+ - `hub_strategy`: every_save
390
+ - `hub_private_repo`: False
391
+ - `hub_always_push`: False
392
+ - `gradient_checkpointing`: False
393
+ - `gradient_checkpointing_kwargs`: None
394
+ - `include_inputs_for_metrics`: False
395
+ - `eval_do_concat_batches`: True
396
+ - `fp16_backend`: auto
397
+ - `push_to_hub_model_id`: None
398
+ - `push_to_hub_organization`: None
399
+ - `mp_parameters`:
400
+ - `auto_find_batch_size`: False
401
+ - `full_determinism`: False
402
+ - `torchdynamo`: None
403
+ - `ray_scope`: last
404
+ - `ddp_timeout`: 1800
405
+ - `torch_compile`: False
406
+ - `torch_compile_backend`: None
407
+ - `torch_compile_mode`: None
408
+ - `dispatch_batches`: None
409
+ - `split_batches`: None
410
+ - `include_tokens_per_second`: False
411
+ - `include_num_input_tokens_seen`: False
412
+ - `neftune_noise_alpha`: None
413
+ - `optim_target_modules`: None
414
+ - `batch_eval_metrics`: False
415
+ - `eval_on_start`: False
416
+ - `eval_use_gather_object`: False
417
+ - `batch_sampler`: batch_sampler
418
+ - `multi_dataset_batch_sampler`: round_robin
419
+
420
+ </details>
421
+
422
+ ### Training Logs
423
+ | Epoch | Step | Training Loss | test_spearman_max | validation_spearman_max |
424
+ |:------:|:----:|:-------------:|:-----------------:|:-----------------------:|
425
+ | 0 | 0 | - | 0.5602 | - |
426
+ | 0.0914 | 100 | - | - | 0.6565 |
427
+ | 0.1828 | 200 | - | - | 0.6567 |
428
+ | 0.2742 | 300 | - | - | 0.6558 |
429
+ | 0.3656 | 400 | - | - | 0.6560 |
430
+ | 0.4570 | 500 | 0.0039 | - | 0.6560 |
431
+ | 0.5484 | 600 | - | - | 0.6555 |
432
+ | 0.6399 | 700 | - | - | 0.6559 |
433
+ | 0.7313 | 800 | - | - | 0.6561 |
434
+ | 0.8227 | 900 | - | - | 0.6555 |
435
+ | 0.9141 | 1000 | 0.0019 | - | 0.6558 |
436
+ | 1.0 | 1094 | - | - | 0.6560 |
437
+ | 1.0055 | 1100 | - | - | 0.6561 |
438
+ | 1.0969 | 1200 | - | - | 0.6560 |
439
+ | 1.1883 | 1300 | - | - | 0.6559 |
440
+ | 1.2797 | 1400 | - | - | 0.6555 |
441
+ | 1.3711 | 1500 | 0.0014 | - | 0.6558 |
442
+ | 1.4625 | 1600 | - | - | 0.6560 |
443
+ | 1.5539 | 1700 | - | - | 0.6557 |
444
+ | 1.6453 | 1800 | - | - | 0.6561 |
445
+ | 1.7367 | 1900 | - | - | 0.6561 |
446
+ | 1.8282 | 2000 | 0.001 | - | 0.6562 |
447
+ | 1.9196 | 2100 | - | - | 0.6563 |
448
+ | 2.0 | 2188 | - | - | 0.6564 |
449
+ | 2.0110 | 2200 | - | - | 0.6565 |
450
+ | 2.1024 | 2300 | - | - | 0.6565 |
451
+ | 2.1938 | 2400 | - | - | 0.6560 |
452
+ | 2.2852 | 2500 | 0.0009 | - | 0.6557 |
453
+ | 2.3766 | 2600 | - | - | 0.6559 |
454
+ | 2.4680 | 2700 | - | - | 0.6560 |
455
+ | 2.5594 | 2800 | - | - | 0.6560 |
456
+ | 2.6508 | 2900 | - | - | 0.6564 |
457
+ | 2.7422 | 3000 | 0.0007 | - | 0.6565 |
458
+ | 2.8336 | 3100 | - | - | 0.6565 |
459
+ | 2.9250 | 3200 | - | - | 0.6564 |
460
+ | 3.0 | 3282 | - | - | 0.6565 |
461
+ | 3.0165 | 3300 | - | - | 0.6566 |
462
+ | 3.1079 | 3400 | - | - | 0.6568 |
463
+ | 3.1993 | 3500 | 0.0007 | - | 0.6565 |
464
+ | 3.2907 | 3600 | - | - | 0.6563 |
465
+ | 3.3821 | 3700 | - | - | 0.6564 |
466
+ | 3.4735 | 3800 | - | - | 0.6565 |
467
+ | 3.5649 | 3900 | - | - | 0.6565 |
468
+ | 3.6563 | 4000 | 0.0005 | - | 0.6566 |
469
+ | 3.7477 | 4100 | - | - | 0.6566 |
470
+ | 3.8391 | 4200 | - | - | 0.6566 |
471
+ | 3.9305 | 4300 | - | - | 0.6566 |
472
+ | 4.0 | 4376 | - | - | 0.6566 |
473
+
474
+
475
+ ### Framework Versions
476
+ - Python: 3.10.12
477
+ - Sentence Transformers: 3.0.1
478
+ - Transformers: 4.44.2
479
+ - PyTorch: 2.4.0+cu121
480
+ - Accelerate: 0.33.0
481
+ - Datasets: 2.21.0
482
+ - Tokenizers: 0.19.1
483
+
484
+ ## Citation
485
+
486
+ ### BibTeX
487
+
488
+ #### Sentence Transformers
489
+ ```bibtex
490
+ @inproceedings{reimers-2019-sentence-bert,
491
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
492
+ author = "Reimers, Nils and Gurevych, Iryna",
493
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
494
+ month = "11",
495
+ year = "2019",
496
+ publisher = "Association for Computational Linguistics",
497
+ url = "https://arxiv.org/abs/1908.10084",
498
+ }
499
+ ```
500
+
501
+ #### ContrastiveLoss
502
+ ```bibtex
503
+ @inproceedings{hadsell2006dimensionality,
504
+ author={Hadsell, R. and Chopra, S. and LeCun, Y.},
505
+ booktitle={2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06)},
506
+ title={Dimensionality Reduction by Learning an Invariant Mapping},
507
+ year={2006},
508
+ volume={2},
509
+ number={},
510
+ pages={1735-1742},
511
+ doi={10.1109/CVPR.2006.100}
512
+ }
513
+ ```
514
+
515
+ <!--
516
+ ## Glossary
517
+
518
+ *Clearly define terms in order to be accessible across audiences.*
519
+ -->
520
+
521
+ <!--
522
+ ## Model Card Authors
523
+
524
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
525
+ -->
526
+
527
+ <!--
528
+ ## Model Card Contact
529
+
530
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
531
+ -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "llmrails/ember-v1",
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": 1024,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 4096,
17
+ "label2id": {
18
+ "LABEL_0": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.44.2",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 30522
32
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.44.2",
5
+ "pytorch": "2.4.0+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ae8985e4d849f850ac8b62bccca94c2de3626635daa446053ead54708fdea3a
3
+ size 1340612432
modules.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": true
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "max_length": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff