SentenceTransformer based on Shuu12121/CodeModernBERT-Owl
This is a
sentence-transformers
model finetuned from
Shuu12121/CodeModernBERT-Owl
. 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.
Model Details
Model Description
Model Type:
Sentence Transformer
Base model:
Shuu12121/CodeModernBERT-Owl
Maximum Sequence Length:
2048 tokens
Output Dimensionality:
768 dimensions
Similarity Function:
Cosine Similarity
Model Sources
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 2048, 'do_lower_case': False}) with Transformer model: ModernBertModel
(1): Pooling({'word_embedding_dimension': 768, '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})
)
Usage
Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id" )
# Run inference
sentences = [
'Lists all Module entities.\n\n@Route("/",defaults={"page"=1, "sort"="id", "direction"="asc"}, name="module")\n@Route("/page/{page}/sort/{sort}/direction/{direction}/", defaults={"page"=1, "sort"="id", "direction"="asc"}, name="module_pagination")\n@Method("GET")\n@Security("has_role(\'ROLE_ADMIN\')")\n@Template()' ,
"public function indexAction($page, $sort, $direction)\n {\n $acl = $this->get('bacon_acl.service.authorization');\n\n if (!$acl->authorize('module', 'INDEX')) {\n throw $this->createAccessDeniedException();\n }\n\n $breadcumbs = $this->container->get('bacon_breadcrumbs');\n\n $breadcumbs->addItem([\n 'title' => 'Module',\n 'route' => '',\n ]);\n\n $breadcumbs->addItem([\n 'title' => 'List',\n 'route' => '',\n ]);\n\n $entity = new Module();\n\n if ($this->get('session')->has('module_search_session')) {\n $objSerialize = $this->get('session')->get('module_search_session');\n $entity = unserialize($objSerialize);\n }\n\n $query = $this->getDoctrine()->getRepository('BaconAclBundle:Module')->getQueryPagination($entity, $sort, $direction);\n\n $paginator = $this->getPagination($query, $page, Module::PER_PAGE);\n $paginator->setUsedRoute('module_pagination');\n\n $form = $this->createForm(ModuleFormType::class, $entity, [\n 'search' => true,\n ]);\n\n return [\n 'pagination' => $paginator,\n 'form_search' => $form->createView(),\n 'form_delete' => $this->createDeleteForm()->createView(),\n ];\n }" ,
'func (fs *FileSorter) Less(i, j int) bool {\n\tl := fs.buf[i].key\n\tr := fs.buf[j].key\n\tret, err := lessThan(fs.sc, l, r, fs.byDesc)\n\tif fs.err == nil {\n\t\tfs.err = err\n\t}\n\treturn ret\n}' ,
]
embeddings = model.encode(sentences)
print (embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print (similarities.shape)
# [3, 3]
Evaluation
Metrics
Information Retrieval
Metric
Value
cosine_accuracy@1
0.7689
cosine_accuracy@3
0.8944
cosine_accuracy@5
0.9162
cosine_accuracy@10
0.9359
cosine_precision@1
0.7689
cosine_precision@3
0.2981
cosine_precision@5
0.1832
cosine_precision@10
0.0936
cosine_recall@1
0.7689
cosine_recall@3
0.8944
cosine_recall@5
0.9162
cosine_recall@10
0.9359
cosine_ndcg@10
0.8602
cosine_mrr@10
0.8351
cosine_map@100
0.8366
Training Details
Training Dataset
Unnamed Dataset
Training Hyperparameters
Non-Default Hyperparameters
eval_strategy
: steps
per_device_train_batch_size
: 32
per_device_eval_batch_size
: 32
num_train_epochs
: 5
fp16
: True
multi_dataset_batch_sampler
: round_robin
All Hyperparameters
Click to expand
overwrite_output_dir
: False
do_predict
: False
eval_strategy
: steps
prediction_loss_only
: True
per_device_train_batch_size
: 32
per_device_eval_batch_size
: 32
per_gpu_train_batch_size
: None
per_gpu_eval_batch_size
: None
gradient_accumulation_steps
: 1
eval_accumulation_steps
: None
torch_empty_cache_steps
: None
learning_rate
: 5e-05
weight_decay
: 0.0
adam_beta1
: 0.9
adam_beta2
: 0.999
adam_epsilon
: 1e-08
max_grad_norm
: 1
num_train_epochs
: 5
max_steps
: -1
lr_scheduler_type
: linear
lr_scheduler_kwargs
: {}
warmup_ratio
: 0.0
warmup_steps
: 0
log_level
: passive
log_level_replica
: warning
log_on_each_node
: True
logging_nan_inf_filter
: True
save_safetensors
: True
save_on_each_node
: False
save_only_model
: False
restore_callback_states_from_checkpoint
: False
no_cuda
: False
use_cpu
: False
use_mps_device
: False
seed
: 42
data_seed
: None
jit_mode_eval
: False
use_ipex
: False
bf16
: False
fp16
: True
fp16_opt_level
: O1
half_precision_backend
: auto
bf16_full_eval
: False
fp16_full_eval
: False
tf32
: None
local_rank
: 0
ddp_backend
: None
tpu_num_cores
: None
tpu_metrics_debug
: False
debug
: []
dataloader_drop_last
: False
dataloader_num_workers
: 0
dataloader_prefetch_factor
: None
past_index
: -1
disable_tqdm
: False
remove_unused_columns
: True
label_names
: None
load_best_model_at_end
: False
ignore_data_skip
: False
fsdp
: []
fsdp_min_num_params
: 0
fsdp_config
: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
tp_size
: 0
fsdp_transformer_layer_cls_to_wrap
: None
accelerator_config
: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
deepspeed
: None
label_smoothing_factor
: 0.0
optim
: adamw_torch
optim_args
: None
adafactor
: False
group_by_length
: False
length_column_name
: length
ddp_find_unused_parameters
: None
ddp_bucket_cap_mb
: None
ddp_broadcast_buffers
: False
dataloader_pin_memory
: True
dataloader_persistent_workers
: False
skip_memory_metrics
: True
use_legacy_prediction_loop
: False
push_to_hub
: False
resume_from_checkpoint
: None
hub_model_id
: None
hub_strategy
: every_save
hub_private_repo
: None
hub_always_push
: False
gradient_checkpointing
: False
gradient_checkpointing_kwargs
: None
include_inputs_for_metrics
: False
include_for_metrics
: []
eval_do_concat_batches
: True
fp16_backend
: auto
push_to_hub_model_id
: None
push_to_hub_organization
: None
mp_parameters
:
auto_find_batch_size
: False
full_determinism
: False
torchdynamo
: None
ray_scope
: last
ddp_timeout
: 1800
torch_compile
: False
torch_compile_backend
: None
torch_compile_mode
: None
dispatch_batches
: None
split_batches
: None
include_tokens_per_second
: False
include_num_input_tokens_seen
: False
neftune_noise_alpha
: None
optim_target_modules
: None
batch_eval_metrics
: False
eval_on_start
: False
use_liger_kernel
: False
eval_use_gather_object
: False
average_tokens_across_devices
: False
prompts
: None
batch_sampler
: batch_sampler
multi_dataset_batch_sampler
: round_robin
Training Logs
Click to expand
Epoch
Step
Training Loss
code-docstring-retrieval_cosine_ndcg@10
0.0097
500
1.4533
-
0.0194
1000
0.1301
-
0.0291
1500
0.111
-
0.0388
2000
0.099
-
0.0485
2500
0.0994
-
0.0582
3000
0.0855
-
0.0679
3500
0.0856
-
0.0776
4000
0.0869
-
0.0873
4500
0.0772
-
0.0971
5000
0.0723
0.8302
0.1068
5500
0.0723
-
0.1165
6000
0.0721
-
0.1262
6500
0.0666
-
0.1359
7000
0.0696
-
0.1456
7500
0.0677
-
0.1553
8000
0.0637
-
0.1650
8500
0.0626
-
0.1747
9000
0.067
-
0.1844
9500
0.0617
-
0.1941
10000
0.0669
0.8360
0.2038
10500
0.0586
-
0.2135
11000
0.0625
-
0.2232
11500
0.0662
-
0.2329
12000
0.0635
-
0.2426
12500
0.0558
-
0.2523
13000
0.0599
-
0.2620
13500
0.0603
-
0.2718
14000
0.0584
-
0.2815
14500
0.0598
-
0.2912
15000
0.0574
0.8412
0.3009
15500
0.0576
-
0.3106
16000
0.0527
-
0.3203
16500
0.0532
-
0.3300
17000
0.0506
-
0.3397
17500
0.0541
-
0.3494
18000
0.0565
-
0.3591
18500
0.0551
-
0.3688
19000
0.0477
-
0.3785
19500
0.0502
-
0.3882
20000
0.052
0.8437
0.3979
20500
0.0502
-
0.4076
21000
0.0565
-
0.4173
21500
0.0523
-
0.4270
22000
0.0571
-
0.4367
22500
0.0545
-
0.4465
23000
0.05
-
0.4562
23500
0.0509
-
0.4659
24000
0.051
-
0.4756
24500
0.0517
-
0.4853
25000
0.0487
0.8450
0.4950
25500
0.0459
-
0.5047
26000
0.0489
-
0.5144
26500
0.0437
-
0.5241
27000
0.0512
-
0.5338
27500
0.0438
-
0.5435
28000
0.046
-
0.5532
28500
0.0451
-
0.5629
29000
0.0492
-
0.5726
29500
0.05
-
0.5823
30000
0.0503
0.8470
0.5920
30500
0.0484
-
0.6017
31000
0.043
-
0.6114
31500
0.043
-
0.6212
32000
0.0461
-
0.6309
32500
0.0483
-
0.6406
33000
0.0429
-
0.6503
33500
0.042
-
0.6600
34000
0.0469
-
0.6697
34500
0.0447
-
0.6794
35000
0.0423
0.8487
0.6891
35500
0.0486
-
0.6988
36000
0.0357
-
0.7085
36500
0.044
-
0.7182
37000
0.0452
-
0.7279
37500
0.0427
-
0.7376
38000
0.0411
-
0.7473
38500
0.0382
-
0.7570
39000
0.0428
-
0.7667
39500
0.0383
-
0.7764
40000
0.0432
0.8472
0.7861
40500
0.0435
-
0.7959
41000
0.039
-
0.8056
41500
0.0378
-
0.8153
42000
0.0427
-
0.8250
42500
0.0434
-
0.8347
43000
0.0467
-
0.8444
43500
0.0413
-
0.8541
44000
0.0378
-
0.8638
44500
0.0403
-
0.8735
45000
0.0384
0.8494
0.8832
45500
0.04
-
0.8929
46000
0.0406
-
0.9026
46500
0.0428
-
0.9123
47000
0.0357
-
0.9220
47500
0.0385
-
0.9317
48000
0.0392
-
0.9414
48500
0.0436
-
0.9511
49000
0.0361
-
0.9608
49500
0.039
-
0.9706
50000
0.038
0.8516
0.9803
50500
0.0367
-
0.9900
51000
0.0372
-
0.9997
51500
0.0359
-
1.0
51517
-
0.8516
1.0094
52000
0.0217
-
1.0191
52500
0.018
-
1.0288
53000
0.0184
-
1.0385
53500
0.0164
-
1.0482
54000
0.0188
-
1.0579
54500
0.0179
-
1.0676
55000
0.0173
0.8523
1.0773
55500
0.0163
-
1.0870
56000
0.0213
-
1.0967
56500
0.0198
-
1.1064
57000
0.0186
-
1.1161
57500
0.017
-
1.1258
58000
0.0201
-
1.1355
58500
0.0194
-
1.1453
59000
0.0163
-
1.1550
59500
0.0192
-
1.1647
60000
0.0177
0.8486
1.1744
60500
0.0203
-
1.1841
61000
0.0189
-
1.1938
61500
0.0189
-
1.2035
62000
0.0204
-
1.2132
62500
0.0154
-
1.2229
63000
0.0171
-
1.2326
63500
0.0209
-
1.2423
64000
0.0171
-
1.2520
64500
0.0166
-
1.2617
65000
0.0193
0.8499
1.2714
65500
0.0175
-
1.2811
66000
0.0193
-
1.2908
66500
0.0171
-
1.3005
67000
0.019
-
1.3102
67500
0.0184
-
1.3200
68000
0.0188
-
1.3297
68500
0.016
-
1.3394
69000
0.0157
-
1.3491
69500
0.0185
-
1.3588
70000
0.0158
0.8504
1.3685
70500
0.0205
-
1.3782
71000
0.015
-
1.3879
71500
0.0196
-
1.3976
72000
0.0162
-
1.4073
72500
0.0174
-
1.4170
73000
0.0191
-
1.4267
73500
0.0188
-
1.4364
74000
0.0221
-
1.4461
74500
0.0187
-
1.4558
75000
0.0165
0.8489
1.4655
75500
0.0175
-
1.4752
76000
0.0196
-
1.4849
76500
0.0162
-
1.4947
77000
0.0188
-
1.5044
77500
0.0176
-
1.5141
78000
0.0181
-
1.5238
78500
0.0166
-
1.5335
79000
0.0179
-
1.5432
79500
0.0181
-
1.5529
80000
0.0196
0.8507
1.5626
80500
0.0163
-
1.5723
81000
0.0188
-
1.5820
81500
0.0162
-
1.5917
82000
0.0172
-
1.6014
82500
0.0202
-
1.6111
83000
0.0177
-
1.6208
83500
0.0174
-
1.6305
84000
0.0186
-
1.6402
84500
0.0163
-
1.6499
85000
0.0163
0.8537
1.6596
85500
0.0181
-
1.6694
86000
0.0171
-
1.6791
86500
0.0189
-
1.6888
87000
0.0192
-
1.6985
87500
0.0157
-
1.7082
88000
0.0181
-
1.7179
88500
0.0175
-
1.7276
89000
0.016
-
1.7373
89500
0.0185
-
1.7470
90000
0.0167
0.8529
1.7567
90500
0.0183
-
1.7664
91000
0.0166
-
1.7761
91500
0.0185
-
1.7858
92000
0.0179
-
1.7955
92500
0.0154
-
1.8052
93000
0.0187
-
1.8149
93500
0.0163
-
1.8246
94000
0.0171
-
1.8343
94500
0.0174
-
1.8441
95000
0.0174
0.8525
1.8538
95500
0.019
-
1.8635
96000
0.018
-
1.8732
96500
0.0163
-
1.8829
97000
0.0163
-
1.8926
97500
0.016
-
1.9023
98000
0.0154
-
1.9120
98500
0.0172
-
1.9217
99000
0.0176
-
1.9314
99500
0.0148
-
1.9411
100000
0.0151
0.8526
1.9508
100500
0.0171
-
1.9605
101000
0.0192
-
1.9702
101500
0.0152
-
1.9799
102000
0.0168
-
1.9896
102500
0.0155
-
1.9993
103000
0.017
-
2.0
103034
-
0.8530
2.0090
103500
0.0074
-
2.0188
104000
0.0077
-
2.0285
104500
0.0081
-
2.0382
105000
0.0085
0.8554
2.0479
105500
0.0071
-
2.0576
106000
0.0084
-
2.0673
106500
0.007
-
2.0770
107000
0.0085
-
2.0867
107500
0.0072
-
2.0964
108000
0.0084
-
2.1061
108500
0.007
-
2.1158
109000
0.0064
-
2.1255
109500
0.0073
-
2.1352
110000
0.0081
0.8533
2.1449
110500
0.0092
-
2.1546
111000
0.0084
-
2.1643
111500
0.0068
-
2.1740
112000
0.0094
-
2.1837
112500
0.0086
-
2.1935
113000
0.0075
-
2.2032
113500
0.0077
-
2.2129
114000
0.0078
-
2.2226
114500
0.0085
-
2.2323
115000
0.0075
0.8538
2.2420
115500
0.0076
-
2.2517
116000
0.0084
-
2.2614
116500
0.0065
-
2.2711
117000
0.007
-
2.2808
117500
0.0073
-
2.2905
118000
0.0074
-
2.3002
118500
0.007
-
2.3099
119000
0.0074
-
2.3196
119500
0.0082
-
2.3293
120000
0.0071
0.8537
2.3390
120500
0.0083
-
2.3487
121000
0.0081
-
2.3584
121500
0.0093
-
2.3682
122000
0.0087
-
2.3779
122500
0.0081
-
2.3876
123000
0.0085
-
2.3973
123500
0.007
-
2.4070
124000
0.0085
-
2.4167
124500
0.0079
-
2.4264
125000
0.0085
0.8560
2.4361
125500
0.0068
-
2.4458
126000
0.008
-
2.4555
126500
0.0086
-
2.4652
127000
0.0073
-
2.4749
127500
0.0081
-
2.4846
128000
0.0093
-
2.4943
128500
0.0072
-
2.5040
129000
0.0072
-
2.5137
129500
0.009
-
2.5234
130000
0.0086
0.8554
2.5331
130500
0.0073
-
2.5428
131000
0.0078
-
2.5526
131500
0.008
-
2.5623
132000
0.008
-
2.5720
132500
0.0089
-
2.5817
133000
0.0087
-
2.5914
133500
0.0092
-
2.6011
134000
0.0063
-
2.6108
134500
0.0081
-
2.6205
135000
0.0072
0.8568
2.6302
135500
0.007
-
2.6399
136000
0.0073
-
2.6496
136500
0.0087
-
2.6593
137000
0.0065
-
2.6690
137500
0.0076
-
2.6787
138000
0.0076
-
2.6884
138500
0.008
-
2.6981
139000
0.0059
-
2.7078
139500
0.0079
-
2.7175
140000
0.0077
0.8568
2.7273
140500
0.0076
-
2.7370
141000
0.0061
-
2.7467
141500
0.0087
-
2.7564
142000
0.0067
-
2.7661
142500
0.0077
-
2.7758
143000
0.0074
-
2.7855
143500
0.0086
-
2.7952
144000
0.0086
-
2.8049
144500
0.0076
-
2.8146
145000
0.0067
0.8564
2.8243
145500
0.0083
-
2.8340
146000
0.0069
-
2.8437
146500
0.0059
-
2.8534
147000
0.0068
-
2.8631
147500
0.0066
-
2.8728
148000
0.0076
-
2.8825
148500
0.0073
-
2.8922
149000
0.0061
-
2.9020
149500
0.0071
-
2.9117
150000
0.008
0.8574
2.9214
150500
0.0073
-
2.9311
151000
0.0065
-
2.9408
151500
0.0067
-
2.9505
152000
0.0078
-
2.9602
152500
0.0065
-
2.9699
153000
0.007
-
2.9796
153500
0.0091
-
2.9893
154000
0.0073
-
2.9990
154500
0.0074
-
3.0
154551
-
0.8569
3.0087
155000
0.0057
0.8579
3.0184
155500
0.0036
-
3.0281
156000
0.0041
-
3.0378
156500
0.0047
-
3.0475
157000
0.0033
-
3.0572
157500
0.0052
-
3.0669
158000
0.0048
-
3.0767
158500
0.0054
-
3.0864
159000
0.0039
-
3.0961
159500
0.0038
-
3.1058
160000
0.0044
0.8572
3.1155
160500
0.0045
-
3.1252
161000
0.0051
-
3.1349
161500
0.004
-
3.1446
162000
0.0048
-
3.1543
162500
0.0048
-
3.1640
163000
0.0056
-
3.1737
163500
0.0036
-
3.1834
164000
0.0051
-
3.1931
164500
0.0063
-
3.2028
165000
0.0046
0.8573
3.2125
165500
0.0048
-
3.2222
166000
0.0037
-
3.2319
166500
0.0056
-
3.2416
167000
0.005
-
3.2514
167500
0.0044
-
3.2611
168000
0.0048
-
3.2708
168500
0.0051
-
3.2805
169000
0.0042
-
3.2902
169500
0.0043
-
3.2999
170000
0.0046
0.8574
3.3096
170500
0.004
-
3.3193
171000
0.0055
-
3.3290
171500
0.0052
-
3.3387
172000
0.0042
-
3.3484
172500
0.0048
-
3.3581
173000
0.0043
-
3.3678
173500
0.0047
-
3.3775
174000
0.0042
-
3.3872
174500
0.0047
-
3.3969
175000
0.0057
0.8582
3.4066
175500
0.0052
-
3.4163
176000
0.0046
-
3.4261
176500
0.0047
-
3.4358
177000
0.0048
-
3.4455
177500
0.0056
-
3.4552
178000
0.0046
-
3.4649
178500
0.0044
-
3.4746
179000
0.005
-
3.4843
179500
0.0035
-
3.4940
180000
0.0045
0.8572
3.5037
180500
0.0047
-
3.5134
181000
0.004
-
3.5231
181500
0.0045
-
3.5328
182000
0.0055
-
3.5425
182500
0.0039
-
3.5522
183000
0.0059
-
3.5619
183500
0.0053
-
3.5716
184000
0.0057
-
3.5813
184500
0.005
-
3.5910
185000
0.0041
0.8580
3.6008
185500
0.0038
-
3.6105
186000
0.0026
-
3.6202
186500
0.005
-
3.6299
187000
0.0057
-
3.6396
187500
0.0044
-
3.6493
188000
0.005
-
3.6590
188500
0.004
-
3.6687
189000
0.0046
-
3.6784
189500
0.005
-
3.6881
190000
0.0045
0.8581
3.6978
190500
0.0043
-
3.7075
191000
0.0031
-
3.7172
191500
0.0049
-
3.7269
192000
0.0049
-
3.7366
192500
0.0049
-
3.7463
193000
0.0052
-
3.7560
193500
0.0043
-
3.7657
194000
0.0045
-
3.7755
194500
0.005
-
3.7852
195000
0.0044
0.8588
3.7949
195500
0.0044
-
3.8046
196000
0.0045
-
3.8143
196500
0.0042
-
3.8240
197000
0.0044
-
3.8337
197500
0.0047
-
3.8434
198000
0.0035
-
3.8531
198500
0.0055
-
3.8628
199000
0.0039
-
3.8725
199500
0.0043
-
3.8822
200000
0.0044
0.8587
3.8919
200500
0.0047
-
3.9016
201000
0.0036
-
3.9113
201500
0.0031
-
3.9210
202000
0.0047
-
3.9307
202500
0.0047
-
3.9404
203000
0.0041
-
3.9502
203500
0.0033
-
3.9599
204000
0.0043
-
3.9696
204500
0.004
-
3.9793
205000
0.0047
0.8596
3.9890
205500
0.0033
-
3.9987
206000
0.0055
-
4.0
206068
-
0.8601
4.0084
206500
0.004
-
4.0181
207000
0.0027
-
4.0278
207500
0.0035
-
4.0375
208000
0.0032
-
4.0472
208500
0.0039
-
4.0569
209000
0.0035
-
4.0666
209500
0.0037
-
4.0763
210000
0.0033
0.8587
4.0860
210500
0.0029
-
4.0957
211000
0.0037
-
4.1054
211500
0.0042
-
4.1151
212000
0.0033
-
4.1249
212500
0.0036
-
4.1346
213000
0.0027
-
4.1443
213500
0.0034
-
4.1540
214000
0.0038
-
4.1637
214500
0.0039
-
4.1734
215000
0.0038
0.8591
4.1831
215500
0.0047
-
4.1928
216000
0.0043
-
4.2025
216500
0.0038
-
4.2122
217000
0.0036
-
4.2219
217500
0.0035
-
4.2316
218000
0.0039
-
4.2413
218500
0.0035
-
4.2510
219000
0.0029
-
4.2607
219500
0.0032
-
4.2704
220000
0.003
0.8599
4.2801
220500
0.004
-
4.2898
221000
0.004
-
4.2996
221500
0.003
-
4.3093
222000
0.003
-
4.3190
222500
0.0036
-
4.3287
223000
0.0029
-
4.3384
223500
0.0023
-
4.3481
224000
0.0044
-
4.3578
224500
0.0037
-
4.3675
225000
0.0031
0.8590
4.3772
225500
0.004
-
4.3869
226000
0.0032
-
4.3966
226500
0.0036
-
4.4063
227000
0.003
-
4.4160
227500
0.0033
-
4.4257
228000
0.0034
-
4.4354
228500
0.0039
-
4.4451
229000
0.003
-
4.4548
229500
0.0035
-
4.4645
230000
0.0035
0.8594
4.4743
230500
0.0038
-
4.4840
231000
0.0043
-
4.4937
231500
0.0039
-
4.5034
232000
0.0032
-
4.5131
232500
0.0036
-
4.5228
233000
0.0034
-
4.5325
233500
0.0028
-
4.5422
234000
0.0043
-
4.5519
234500
0.0037
-
4.5616
235000
0.003
0.8599
4.5713
235500
0.0038
-
4.5810
236000
0.0033
-
4.5907
236500
0.0037
-
4.6004
237000
0.0028
-
4.6101
237500
0.0038
-
4.6198
238000
0.0019
-
4.6295
238500
0.0036
-
4.6392
239000
0.0033
-
4.6490
239500
0.0033
-
4.6587
240000
0.0045
0.8599
4.6684
240500
0.0047
-
4.6781
241000
0.0033
-
4.6878
241500
0.0026
-
4.6975
242000
0.0037
-
4.7072
242500
0.0039
-
4.7169
243000
0.0035
-
4.7266
243500
0.003
-
4.7363
244000
0.0028
-
4.7460
244500
0.0028
-
4.7557
245000
0.0039
0.8603
4.7654
245500
0.0036
-
4.7751
246000
0.0026
-
4.7848
246500
0.0031
-
4.7945
247000
0.0026
-
4.8042
247500
0.0029
-
4.8139
248000
0.0034
-
4.8237
248500
0.0036
-
4.8334
249000
0.003
-
4.8431
249500
0.0027
-
4.8528
250000
0.003
0.8600
4.8625
250500
0.0028
-
4.8722
251000
0.0029
-
4.8819
251500
0.003
-
4.8916
252000
0.0037
-
4.9013
252500
0.0036
-
4.9110
253000
0.0045
-
4.9207
253500
0.0021
-
4.9304
254000
0.0033
-
4.9401
254500
0.0033
-
4.9498
255000
0.0028
0.8601
4.9595
255500
0.0029
-
4.9692
256000
0.0047
-
4.9789
256500
0.0032
-
4.9886
257000
0.0033
-
4.9984
257500
0.0038
-
5.0
257585
-
0.8602
Framework Versions
Python: 3.11.11
Sentence Transformers: 3.4.1
Transformers: 4.50.3
PyTorch: 2.6.0+cu124
Accelerate: 1.5.2
Datasets: 3.5.0
Tokenizers: 0.21.1
Citation
BibTeX
Sentence Transformers
@inproceedings{reimers-2019-sentence-bert,
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
author = "Reimers, Nils and Gurevych, Iryna",
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
month = "11",
year = "2019",
publisher = "Association for Computational Linguistics",
url = "https://arxiv.org/abs/1908.10084",
}
MultipleNegativesRankingLoss
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}