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': False, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': True, '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 = [
'Copy entities from one workspace to another.' ,
'def entity_copy(args):\n \n if not args.to_workspace:\n args.to_workspace = args.workspace\n if not args.to_project:\n args.to_project = args.project\n if (args.project == args.to_project\n and args.workspace == args.to_workspace):\n eprint("destination project and namespace must differ from"\n " source workspace")\n return 1\n\n if not args.entities:\n # get a list of entities from source workspace matching entity_type\n ents = _entity_paginator(args.project, args.workspace, args.entity_type,\n page_size=500, filter_terms=None,\n sort_direction=\'asc\')\n args.entities = [e[\'name\'] for e in ents]\n\n prompt = "Copy {0} {1}(s) from {2}/{3} to {4}/{5}?\\n[Y\\\\n]: "\n prompt = prompt.format(len(args.entities), args.entity_type, args.project,\n args.workspace, args.to_project, args.to_workspace)\n\n if not args.yes and not _confirm_prompt("", prompt):\n return\n\n r = fapi.copy_entities(args.project, args.workspace, args.to_project,\n args.to_workspace, args.entity_type, args.entities,\n link_existing_entities=args.link)\n fapi._check_response_code(r, 201)\n return 0' ,
'public Set<K> getUnavailableNodes() {\n final Set<K> result = new HashSet<K>();\n for ( final Map.Entry<K, ManagedItem<Boolean>> entry : _map.entrySet() ) {\n if ( !entry.getValue()._value.booleanValue() && !isExpired( entry.getValue() ) ) {\n result.add( entry.getKey() );\n }\n }\n return result;\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
Datasets:
code-docstring-retrieval-python
,
code-docstring-retrieval-java
,
code-docstring-retrieval-javascript
,
code-docstring-retrieval-php
,
code-docstring-retrieval-ruby
,
code-docstring-retrieval-go
,
code-docstring-retrieval-rust
and
code-docstring-retrieval-all
Evaluated with
InformationRetrievalEvaluator
Metric
code-docstring-retrieval-python
code-docstring-retrieval-java
code-docstring-retrieval-javascript
code-docstring-retrieval-php
code-docstring-retrieval-ruby
code-docstring-retrieval-go
code-docstring-retrieval-rust
code-docstring-retrieval-all
cosine_accuracy@1
0.8955
0.836
0.6863
0.8555
0.587
0.883
0.796
0.7669
cosine_accuracy@3
0.963
0.932
0.833
0.923
0.8645
0.9735
0.9
0.8908
cosine_accuracy@5
0.9735
0.944
0.8653
0.935
0.9055
0.9825
0.926
0.9119
cosine_accuracy@10
0.983
0.95
0.895
0.9475
0.9345
0.9915
0.951
0.9322
cosine_precision@1
0.8955
0.836
0.6863
0.8555
0.587
0.883
0.796
0.7669
cosine_precision@3
0.321
0.3107
0.2777
0.3077
0.2882
0.3245
0.3
0.2969
cosine_precision@5
0.1947
0.1888
0.1731
0.187
0.1811
0.1965
0.1852
0.1824
cosine_precision@10
0.0983
0.095
0.0895
0.0948
0.0935
0.0992
0.0951
0.0932
cosine_recall@1
0.8955
0.836
0.6863
0.8555
0.587
0.883
0.796
0.7669
cosine_recall@3
0.963
0.932
0.833
0.923
0.8645
0.9735
0.9
0.8908
cosine_recall@5
0.9735
0.944
0.8653
0.935
0.9055
0.9825
0.926
0.9119
cosine_recall@10
0.983
0.95
0.895
0.9475
0.9345
0.9915
0.951
0.9322
cosine_ndcg@10
0.9436
0.9013
0.7972
0.9053
0.7819
0.9452
0.8773
0.8571
cosine_mrr@10
0.9305
0.8848
0.7651
0.8914
0.7307
0.9295
0.8533
0.8323
cosine_map@100
0.931
0.8855
0.768
0.8923
0.7326
0.9298
0.8552
0.8339
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-python_cosine_ndcg@10
code-docstring-retrieval-java_cosine_ndcg@10
code-docstring-retrieval-javascript_cosine_ndcg@10
code-docstring-retrieval-php_cosine_ndcg@10
code-docstring-retrieval-ruby_cosine_ndcg@10
code-docstring-retrieval-go_cosine_ndcg@10
code-docstring-retrieval-rust_cosine_ndcg@10
code-docstring-retrieval-all_cosine_ndcg@10
0.0097
500
1.0478
-
-
-
-
-
-
-
-
0.0194
1000
0.1328
-
-
-
-
-
-
-
-
0.0291
1500
0.1101
-
-
-
-
-
-
-
-
0.0388
2000
0.0983
-
-
-
-
-
-
-
-
0.0485
2500
0.0945
-
-
-
-
-
-
-
-
0.0582
3000
0.0823
-
-
-
-
-
-
-
-
0.0679
3500
0.0797
-
-
-
-
-
-
-
-
0.0776
4000
0.0766
-
-
-
-
-
-
-
-
0.0873
4500
0.0814
-
-
-
-
-
-
-
-
0.0971
5000
0.0725
0.9255
0.8953
0.7551
0.8845
0.7659
0.9408
0.8626
0.8299
0.1068
5500
0.0736
-
-
-
-
-
-
-
-
0.1165
6000
0.0719
-
-
-
-
-
-
-
-
0.1262
6500
0.0664
-
-
-
-
-
-
-
-
0.1359
7000
0.072
-
-
-
-
-
-
-
-
0.1456
7500
0.0687
-
-
-
-
-
-
-
-
0.1553
8000
0.0678
-
-
-
-
-
-
-
-
0.1650
8500
0.0657
-
-
-
-
-
-
-
-
0.1747
9000
0.0623
-
-
-
-
-
-
-
-
0.1844
9500
0.0642
-
-
-
-
-
-
-
-
0.1941
10000
0.0676
0.9268
0.8953
0.7581
0.8868
0.7680
0.9401
0.8680
0.8335
0.2038
10500
0.0586
-
-
-
-
-
-
-
-
0.2135
11000
0.0614
-
-
-
-
-
-
-
-
0.2232
11500
0.0577
-
-
-
-
-
-
-
-
0.2329
12000
0.0585
-
-
-
-
-
-
-
-
0.2426
12500
0.059
-
-
-
-
-
-
-
-
0.2523
13000
0.0611
-
-
-
-
-
-
-
-
0.2620
13500
0.0552
-
-
-
-
-
-
-
-
0.2718
14000
0.0595
-
-
-
-
-
-
-
-
0.2815
14500
0.0589
-
-
-
-
-
-
-
-
0.2912
15000
0.0592
0.9339
0.8961
0.7700
0.8933
0.7769
0.9407
0.8749
0.8416
0.3009
15500
0.0529
-
-
-
-
-
-
-
-
0.3106
16000
0.0532
-
-
-
-
-
-
-
-
0.3203
16500
0.0509
-
-
-
-
-
-
-
-
0.3300
17000
0.0582
-
-
-
-
-
-
-
-
0.3397
17500
0.0567
-
-
-
-
-
-
-
-
0.3494
18000
0.0552
-
-
-
-
-
-
-
-
0.3591
18500
0.0542
-
-
-
-
-
-
-
-
0.3688
19000
0.0538
-
-
-
-
-
-
-
-
0.3785
19500
0.0504
-
-
-
-
-
-
-
-
0.3882
20000
0.0511
0.9352
0.8969
0.7665
0.8913
0.7780
0.9419
0.8732
0.8423
0.3979
20500
0.0496
-
-
-
-
-
-
-
-
0.4076
21000
0.0524
-
-
-
-
-
-
-
-
0.4173
21500
0.0486
-
-
-
-
-
-
-
-
0.4270
22000
0.0546
-
-
-
-
-
-
-
-
0.4367
22500
0.0523
-
-
-
-
-
-
-
-
0.4465
23000
0.0473
-
-
-
-
-
-
-
-
0.4562
23500
0.0515
-
-
-
-
-
-
-
-
0.4659
24000
0.0478
-
-
-
-
-
-
-
-
0.4756
24500
0.0531
-
-
-
-
-
-
-
-
0.4853
25000
0.0494
0.9373
0.8986
0.7721
0.8983
0.7811
0.9422
0.8764
0.8452
0.4950
25500
0.0471
-
-
-
-
-
-
-
-
0.5047
26000
0.047
-
-
-
-
-
-
-
-
0.5144
26500
0.0486
-
-
-
-
-
-
-
-
0.5241
27000
0.0462
-
-
-
-
-
-
-
-
0.5338
27500
0.0463
-
-
-
-
-
-
-
-
0.5435
28000
0.0468
-
-
-
-
-
-
-
-
0.5532
28500
0.0459
-
-
-
-
-
-
-
-
0.5629
29000
0.0435
-
-
-
-
-
-
-
-
0.5726
29500
0.0508
-
-
-
-
-
-
-
-
0.5823
30000
0.0465
0.9392
0.9023
0.7780
0.8942
0.7753
0.9427
0.8651
0.8456
0.5920
30500
0.0496
-
-
-
-
-
-
-
-
0.6017
31000
0.0484
-
-
-
-
-
-
-
-
0.6114
31500
0.0429
-
-
-
-
-
-
-
-
0.6212
32000
0.0465
-
-
-
-
-
-
-
-
0.6309
32500
0.0427
-
-
-
-
-
-
-
-
0.6406
33000
0.0443
-
-
-
-
-
-
-
-
0.6503
33500
0.0456
-
-
-
-
-
-
-
-
0.6600
34000
0.0466
-
-
-
-
-
-
-
-
0.6697
34500
0.0419
-
-
-
-
-
-
-
-
0.6794
35000
0.0435
0.9363
0.8999
0.7800
0.8961
0.7763
0.9441
0.8725
0.8473
0.6891
35500
0.0408
-
-
-
-
-
-
-
-
0.6988
36000
0.0386
-
-
-
-
-
-
-
-
0.7085
36500
0.0483
-
-
-
-
-
-
-
-
0.7182
37000
0.0445
-
-
-
-
-
-
-
-
0.7279
37500
0.0418
-
-
-
-
-
-
-
-
0.7376
38000
0.0419
-
-
-
-
-
-
-
-
0.7473
38500
0.0428
-
-
-
-
-
-
-
-
0.7570
39000
0.0417
-
-
-
-
-
-
-
-
0.7667
39500
0.0373
-
-
-
-
-
-
-
-
0.7764
40000
0.0426
0.9372
0.9012
0.7794
0.8980
0.7778
0.9415
0.8694
0.8486
0.7861
40500
0.0507
-
-
-
-
-
-
-
-
0.7959
41000
0.0425
-
-
-
-
-
-
-
-
0.8056
41500
0.0363
-
-
-
-
-
-
-
-
0.8153
42000
0.0398
-
-
-
-
-
-
-
-
0.8250
42500
0.0426
-
-
-
-
-
-
-
-
0.8347
43000
0.0409
-
-
-
-
-
-
-
-
0.8444
43500
0.0404
-
-
-
-
-
-
-
-
0.8541
44000
0.0415
-
-
-
-
-
-
-
-
0.8638
44500
0.0396
-
-
-
-
-
-
-
-
0.8735
45000
0.04
0.9341
0.9016
0.7767
0.8998
0.7785
0.9448
0.8751
0.8484
0.8832
45500
0.039
-
-
-
-
-
-
-
-
0.8929
46000
0.041
-
-
-
-
-
-
-
-
0.9026
46500
0.0379
-
-
-
-
-
-
-
-
0.9123
47000
0.037
-
-
-
-
-
-
-
-
0.9220
47500
0.038
-
-
-
-
-
-
-
-
0.9317
48000
0.0388
-
-
-
-
-
-
-
-
0.9414
48500
0.0413
-
-
-
-
-
-
-
-
0.9511
49000
0.0405
-
-
-
-
-
-
-
-
0.9608
49500
0.0372
-
-
-
-
-
-
-
-
0.9706
50000
0.0371
0.9379
0.9041
0.7824
0.9004
0.7772
0.9449
0.8715
0.8487
0.9803
50500
0.0388
-
-
-
-
-
-
-
-
0.9900
51000
0.0369
-
-
-
-
-
-
-
-
0.9997
51500
0.0398
-
-
-
-
-
-
-
-
1.0
51517
-
0.9382
0.9033
0.7830
0.9008
0.7800
0.9435
0.8746
0.8507
1.0094
52000
0.0188
-
-
-
-
-
-
-
-
1.0191
52500
0.0176
-
-
-
-
-
-
-
-
1.0288
53000
0.0169
-
-
-
-
-
-
-
-
1.0385
53500
0.0198
-
-
-
-
-
-
-
-
1.0482
54000
0.0165
-
-
-
-
-
-
-
-
1.0579
54500
0.0148
-
-
-
-
-
-
-
-
1.0676
55000
0.0199
0.9391
0.9017
0.7830
0.9011
0.7787
0.9439
0.8750
0.8510
1.0773
55500
0.0182
-
-
-
-
-
-
-
-
1.0870
56000
0.0178
-
-
-
-
-
-
-
-
1.0967
56500
0.0185
-
-
-
-
-
-
-
-
1.1064
57000
0.0153
-
-
-
-
-
-
-
-
1.1161
57500
0.0198
-
-
-
-
-
-
-
-
1.1258
58000
0.0197
-
-
-
-
-
-
-
-
1.1355
58500
0.0156
-
-
-
-
-
-
-
-
1.1453
59000
0.0194
-
-
-
-
-
-
-
-
1.1550
59500
0.0183
-
-
-
-
-
-
-
-
1.1647
60000
0.0184
0.9351
0.9010
0.7835
0.9006
0.7749
0.9423
0.8745
0.8491
1.1744
60500
0.0195
-
-
-
-
-
-
-
-
1.1841
61000
0.0173
-
-
-
-
-
-
-
-
1.1938
61500
0.02
-
-
-
-
-
-
-
-
1.2035
62000
0.0184
-
-
-
-
-
-
-
-
1.2132
62500
0.0205
-
-
-
-
-
-
-
-
1.2229
63000
0.0168
-
-
-
-
-
-
-
-
1.2326
63500
0.0177
-
-
-
-
-
-
-
-
1.2423
64000
0.0199
-
-
-
-
-
-
-
-
1.2520
64500
0.0183
-
-
-
-
-
-
-
-
1.2617
65000
0.0176
0.9384
0.9040
0.7870
0.9031
0.7810
0.9426
0.8692
0.8521
1.2714
65500
0.019
-
-
-
-
-
-
-
-
1.2811
66000
0.0182
-
-
-
-
-
-
-
-
1.2908
66500
0.0197
-
-
-
-
-
-
-
-
1.3005
67000
0.0192
-
-
-
-
-
-
-
-
1.3102
67500
0.0166
-
-
-
-
-
-
-
-
1.3200
68000
0.0201
-
-
-
-
-
-
-
-
1.3297
68500
0.017
-
-
-
-
-
-
-
-
1.3394
69000
0.0157
-
-
-
-
-
-
-
-
1.3491
69500
0.0177
-
-
-
-
-
-
-
-
1.3588
70000
0.0182
0.9401
0.9019
0.7827
0.9033
0.7775
0.9432
0.8705
0.8507
1.3685
70500
0.0192
-
-
-
-
-
-
-
-
1.3782
71000
0.0187
-
-
-
-
-
-
-
-
1.3879
71500
0.018
-
-
-
-
-
-
-
-
1.3976
72000
0.0191
-
-
-
-
-
-
-
-
1.4073
72500
0.0181
-
-
-
-
-
-
-
-
1.4170
73000
0.0181
-
-
-
-
-
-
-
-
1.4267
73500
0.0205
-
-
-
-
-
-
-
-
1.4364
74000
0.0165
-
-
-
-
-
-
-
-
1.4461
74500
0.0174
-
-
-
-
-
-
-
-
1.4558
75000
0.018
0.9396
0.9006
0.7825
0.9063
0.7773
0.9450
0.8631
0.8506
1.4655
75500
0.0156
-
-
-
-
-
-
-
-
1.4752
76000
0.0168
-
-
-
-
-
-
-
-
1.4849
76500
0.0182
-
-
-
-
-
-
-
-
1.4947
77000
0.0177
-
-
-
-
-
-
-
-
1.5044
77500
0.0161
-
-
-
-
-
-
-
-
1.5141
78000
0.0196
-
-
-
-
-
-
-
-
1.5238
78500
0.0188
-
-
-
-
-
-
-
-
1.5335
79000
0.0175
-
-
-
-
-
-
-
-
1.5432
79500
0.0183
-
-
-
-
-
-
-
-
1.5529
80000
0.0161
0.9367
0.9010
0.7834
0.9048
0.7797
0.9418
0.8716
0.8501
1.5626
80500
0.0194
-
-
-
-
-
-
-
-
1.5723
81000
0.0184
-
-
-
-
-
-
-
-
1.5820
81500
0.0184
-
-
-
-
-
-
-
-
1.5917
82000
0.0153
-
-
-
-
-
-
-
-
1.6014
82500
0.0173
-
-
-
-
-
-
-
-
1.6111
83000
0.0201
-
-
-
-
-
-
-
-
1.6208
83500
0.0177
-
-
-
-
-
-
-
-
1.6305
84000
0.0189
-
-
-
-
-
-
-
-
1.6402
84500
0.0183
-
-
-
-
-
-
-
-
1.6499
85000
0.0172
0.9380
0.9013
0.7859
0.9079
0.7794
0.9419
0.8764
0.8516
1.6596
85500
0.0164
-
-
-
-
-
-
-
-
1.6694
86000
0.0187
-
-
-
-
-
-
-
-
1.6791
86500
0.0184
-
-
-
-
-
-
-
-
1.6888
87000
0.018
-
-
-
-
-
-
-
-
1.6985
87500
0.0176
-
-
-
-
-
-
-
-
1.7082
88000
0.0156
-
-
-
-
-
-
-
-
1.7179
88500
0.017
-
-
-
-
-
-
-
-
1.7276
89000
0.016
-
-
-
-
-
-
-
-
1.7373
89500
0.0172
-
-
-
-
-
-
-
-
1.7470
90000
0.0161
0.9397
0.9004
0.7829
0.9037
0.7818
0.9461
0.8744
0.8505
1.7567
90500
0.0189
-
-
-
-
-
-
-
-
1.7664
91000
0.0162
-
-
-
-
-
-
-
-
1.7761
91500
0.0174
-
-
-
-
-
-
-
-
1.7858
92000
0.0157
-
-
-
-
-
-
-
-
1.7955
92500
0.0159
-
-
-
-
-
-
-
-
1.8052
93000
0.018
-
-
-
-
-
-
-
-
1.8149
93500
0.0156
-
-
-
-
-
-
-
-
1.8246
94000
0.0153
-
-
-
-
-
-
-
-
1.8343
94500
0.0193
-
-
-
-
-
-
-
-
1.8441
95000
0.0162
0.9401
0.9007
0.7870
0.9032
0.7773
0.9425
0.8734
0.8516
1.8538
95500
0.0182
-
-
-
-
-
-
-
-
1.8635
96000
0.0179
-
-
-
-
-
-
-
-
1.8732
96500
0.0158
-
-
-
-
-
-
-
-
1.8829
97000
0.0166
-
-
-
-
-
-
-
-
1.8926
97500
0.0183
-
-
-
-
-
-
-
-
1.9023
98000
0.0166
-
-
-
-
-
-
-
-
1.9120
98500
0.0162
-
-
-
-
-
-
-
-
1.9217
99000
0.0173
-
-
-
-
-
-
-
-
1.9314
99500
0.0176
-
-
-
-
-
-
-
-
1.9411
100000
0.0168
0.9390
0.8994
0.7828
0.9053
0.7767
0.9444
0.8709
0.8503
1.9508
100500
0.0143
-
-
-
-
-
-
-
-
1.9605
101000
0.0163
-
-
-
-
-
-
-
-
1.9702
101500
0.0175
-
-
-
-
-
-
-
-
1.9799
102000
0.0188
-
-
-
-
-
-
-
-
1.9896
102500
0.019
-
-
-
-
-
-
-
-
1.9993
103000
0.0174
-
-
-
-
-
-
-
-
2.0
103034
-
0.9403
0.9021
0.7860
0.9035
0.7805
0.9448
0.8719
0.8514
2.0090
103500
0.0072
-
-
-
-
-
-
-
-
2.0188
104000
0.0069
-
-
-
-
-
-
-
-
2.0285
104500
0.0072
-
-
-
-
-
-
-
-
2.0382
105000
0.0081
0.9379
0.9012
0.7860
0.9048
0.7776
0.9446
0.8703
0.8521
2.0479
105500
0.0079
-
-
-
-
-
-
-
-
2.0576
106000
0.0076
-
-
-
-
-
-
-
-
2.0673
106500
0.0063
-
-
-
-
-
-
-
-
2.0770
107000
0.0082
-
-
-
-
-
-
-
-
2.0867
107500
0.0077
-
-
-
-
-
-
-
-
2.0964
108000
0.0067
-
-
-
-
-
-
-
-
2.1061
108500
0.0088
-
-
-
-
-
-
-
-
2.1158
109000
0.0074
-
-
-
-
-
-
-
-
2.1255
109500
0.0087
-
-
-
-
-
-
-
-
2.1352
110000
0.0072
0.9366
0.9021
0.7885
0.9023
0.7797
0.9468
0.8703
0.8522
2.1449
110500
0.0083
-
-
-
-
-
-
-
-
2.1546
111000
0.0079
-
-
-
-
-
-
-
-
2.1643
111500
0.0081
-
-
-
-
-
-
-
-
2.1740
112000
0.0078
-
-
-
-
-
-
-
-
2.1837
112500
0.0081
-
-
-
-
-
-
-
-
2.1935
113000
0.0082
-
-
-
-
-
-
-
-
2.2032
113500
0.0087
-
-
-
-
-
-
-
-
2.2129
114000
0.0071
-
-
-
-
-
-
-
-
2.2226
114500
0.0068
-
-
-
-
-
-
-
-
2.2323
115000
0.0085
0.9384
0.9022
0.7874
0.9048
0.7811
0.9480
0.8703
0.8531
2.2420
115500
0.0082
-
-
-
-
-
-
-
-
2.2517
116000
0.0078
-
-
-
-
-
-
-
-
2.2614
116500
0.0075
-
-
-
-
-
-
-
-
2.2711
117000
0.0092
-
-
-
-
-
-
-
-
2.2808
117500
0.008
-
-
-
-
-
-
-
-
2.2905
118000
0.0083
-
-
-
-
-
-
-
-
2.3002
118500
0.008
-
-
-
-
-
-
-
-
2.3099
119000
0.0064
-
-
-
-
-
-
-
-
2.3196
119500
0.0071
-
-
-
-
-
-
-
-
2.3293
120000
0.008
0.9412
0.8993
0.7906
0.9014
0.7781
0.9464
0.8755
0.8527
2.3390
120500
0.0087
-
-
-
-
-
-
-
-
2.3487
121000
0.0093
-
-
-
-
-
-
-
-
2.3584
121500
0.0069
-
-
-
-
-
-
-
-
2.3682
122000
0.006
-
-
-
-
-
-
-
-
2.3779
122500
0.0086
-
-
-
-
-
-
-
-
2.3876
123000
0.0078
-
-
-
-
-
-
-
-
2.3973
123500
0.0096
-
-
-
-
-
-
-
-
2.4070
124000
0.007
-
-
-
-
-
-
-
-
2.4167
124500
0.0085
-
-
-
-
-
-
-
-
2.4264
125000
0.007
0.9390
0.9025
0.7869
0.9015
0.7778
0.9459
0.8751
0.8531
2.4361
125500
0.0088
-
-
-
-
-
-
-
-
2.4458
126000
0.0083
-
-
-
-
-
-
-
-
2.4555
126500
0.0071
-
-
-
-
-
-
-
-
2.4652
127000
0.0069
-
-
-
-
-
-
-
-
2.4749
127500
0.0066
-
-
-
-
-
-
-
-
2.4846
128000
0.0086
-
-
-
-
-
-
-
-
2.4943
128500
0.008
-
-
-
-
-
-
-
-
2.5040
129000
0.0076
-
-
-
-
-
-
-
-
2.5137
129500
0.005
-
-
-
-
-
-
-
-
2.5234
130000
0.0096
0.9352
0.9001
0.7866
0.9020
0.7789
0.9458
0.8704
0.8512
2.5331
130500
0.0075
-
-
-
-
-
-
-
-
2.5428
131000
0.0086
-
-
-
-
-
-
-
-
2.5526
131500
0.0084
-
-
-
-
-
-
-
-
2.5623
132000
0.0074
-
-
-
-
-
-
-
-
2.5720
132500
0.0069
-
-
-
-
-
-
-
-
2.5817
133000
0.0073
-
-
-
-
-
-
-
-
2.5914
133500
0.0074
-
-
-
-
-
-
-
-
2.6011
134000
0.0073
-
-
-
-
-
-
-
-
2.6108
134500
0.0078
-
-
-
-
-
-
-
-
2.6205
135000
0.0078
0.9398
0.9016
0.7874
0.9038
0.7756
0.9468
0.8726
0.8529
2.6302
135500
0.0078
-
-
-
-
-
-
-
-
2.6399
136000
0.0063
-
-
-
-
-
-
-
-
2.6496
136500
0.0072
-
-
-
-
-
-
-
-
2.6593
137000
0.0086
-
-
-
-
-
-
-
-
2.6690
137500
0.0077
-
-
-
-
-
-
-
-
2.6787
138000
0.0082
-
-
-
-
-
-
-
-
2.6884
138500
0.0081
-
-
-
-
-
-
-
-
2.6981
139000
0.0079
-
-
-
-
-
-
-
-
2.7078
139500
0.0075
-
-
-
-
-
-
-
-
2.7175
140000
0.0079
0.9406
0.8988
0.7882
0.9052
0.7820
0.9455
0.8772
0.8543
2.7273
140500
0.0081
-
-
-
-
-
-
-
-
2.7370
141000
0.0073
-
-
-
-
-
-
-
-
2.7467
141500
0.0074
-
-
-
-
-
-
-
-
2.7564
142000
0.0084
-
-
-
-
-
-
-
-
2.7661
142500
0.0074
-
-
-
-
-
-
-
-
2.7758
143000
0.0076
-
-
-
-
-
-
-
-
2.7855
143500
0.0082
-
-
-
-
-
-
-
-
2.7952
144000
0.0073
-
-
-
-
-
-
-
-
2.8049
144500
0.0088
-
-
-
-
-
-
-
-
2.8146
145000
0.0091
0.9419
0.9015
0.7908
0.9045
0.7795
0.9433
0.8769
0.8535
2.8243
145500
0.0081
-
-
-
-
-
-
-
-
2.8340
146000
0.0079
-
-
-
-
-
-
-
-
2.8437
146500
0.0083
-
-
-
-
-
-
-
-
2.8534
147000
0.0084
-
-
-
-
-
-
-
-
2.8631
147500
0.0076
-
-
-
-
-
-
-
-
2.8728
148000
0.0069
-
-
-
-
-
-
-
-
2.8825
148500
0.0076
-
-
-
-
-
-
-
-
2.8922
149000
0.0077
-
-
-
-
-
-
-
-
2.9020
149500
0.0087
-
-
-
-
-
-
-
-
2.9117
150000
0.0066
0.9416
0.9024
0.7933
0.9041
0.7811
0.9458
0.8713
0.8547
2.9214
150500
0.0054
-
-
-
-
-
-
-
-
2.9311
151000
0.0087
-
-
-
-
-
-
-
-
2.9408
151500
0.0072
-
-
-
-
-
-
-
-
2.9505
152000
0.0071
-
-
-
-
-
-
-
-
2.9602
152500
0.0067
-
-
-
-
-
-
-
-
2.9699
153000
0.009
-
-
-
-
-
-
-
-
2.9796
153500
0.0072
-
-
-
-
-
-
-
-
2.9893
154000
0.0078
-
-
-
-
-
-
-
-
2.9990
154500
0.0075
-
-
-
-
-
-
-
-
3.0
154551
-
0.9407
0.8999
0.7918
0.9027
0.7807
0.9455
0.8730
0.8542
3.0087
155000
0.0068
0.9412
0.8998
0.7911
0.9045
0.7784
0.9459
0.8748
0.8542
3.0184
155500
0.0037
-
-
-
-
-
-
-
-
3.0281
156000
0.0045
-
-
-
-
-
-
-
-
3.0378
156500
0.0061
-
-
-
-
-
-
-
-
3.0475
157000
0.004
-
-
-
-
-
-
-
-
3.0572
157500
0.0052
-
-
-
-
-
-
-
-
3.0669
158000
0.0052
-
-
-
-
-
-
-
-
3.0767
158500
0.0041
-
-
-
-
-
-
-
-
3.0864
159000
0.005
-
-
-
-
-
-
-
-
3.0961
159500
0.0046
-
-
-
-
-
-
-
-
3.1058
160000
0.0051
0.9425
0.9013
0.7930
0.9023
0.7801
0.9446
0.8721
0.8547
3.1155
160500
0.0045
-
-
-
-
-
-
-
-
3.1252
161000
0.0052
-
-
-
-
-
-
-
-
3.1349
161500
0.0048
-
-
-
-
-
-
-
-
3.1446
162000
0.0054
-
-
-
-
-
-
-
-
3.1543
162500
0.0049
-
-
-
-
-
-
-
-
3.1640
163000
0.0041
-
-
-
-
-
-
-
-
3.1737
163500
0.0048
-
-
-
-
-
-
-
-
3.1834
164000
0.0041
-
-
-
-
-
-
-
-
3.1931
164500
0.0051
-
-
-
-
-
-
-
-
3.2028
165000
0.0062
0.9418
0.8995
0.7911
0.9027
0.7804
0.9445
0.8762
0.8546
3.2125
165500
0.0046
-
-
-
-
-
-
-
-
3.2222
166000
0.0047
-
-
-
-
-
-
-
-
3.2319
166500
0.0044
-
-
-
-
-
-
-
-
3.2416
167000
0.0047
-
-
-
-
-
-
-
-
3.2514
167500
0.0047
-
-
-
-
-
-
-
-
3.2611
168000
0.0052
-
-
-
-
-
-
-
-
3.2708
168500
0.0053
-
-
-
-
-
-
-
-
3.2805
169000
0.0044
-
-
-
-
-
-
-
-
3.2902
169500
0.006
-
-
-
-
-
-
-
-
3.2999
170000
0.0035
0.9427
0.9005
0.7955
0.9043
0.7840
0.9443
0.8776
0.8560
3.3096
170500
0.005
-
-
-
-
-
-
-
-
3.3193
171000
0.004
-
-
-
-
-
-
-
-
3.3290
171500
0.0044
-
-
-
-
-
-
-
-
3.3387
172000
0.0044
-
-
-
-
-
-
-
-
3.3484
172500
0.0055
-
-
-
-
-
-
-
-
3.3581
173000
0.0058
-
-
-
-
-
-
-
-
3.3678
173500
0.0042
-
-
-
-
-
-
-
-
3.3775
174000
0.0053
-
-
-
-
-
-
-
-
3.3872
174500
0.0049
-
-
-
-
-
-
-
-
3.3969
175000
0.006
0.9407
0.9013
0.7947
0.9023
0.7835
0.9441
0.8736
0.8554
3.4066
175500
0.0057
-
-
-
-
-
-
-
-
3.4163
176000
0.0039
-
-
-
-
-
-
-
-
3.4261
176500
0.0036
-
-
-
-
-
-
-
-
3.4358
177000
0.0047
-
-
-
-
-
-
-
-
3.4455
177500
0.0044
-
-
-
-
-
-
-
-
3.4552
178000
0.004
-
-
-
-
-
-
-
-
3.4649
178500
0.0052
-
-
-
-
-
-
-
-
3.4746
179000
0.0045
-
-
-
-
-
-
-
-
3.4843
179500
0.0042
-
-
-
-
-
-
-
-
3.4940
180000
0.0045
0.9433
0.9024
0.7936
0.9060
0.7845
0.9442
0.8703
0.8563
3.5037
180500
0.0043
-
-
-
-
-
-
-
-
3.5134
181000
0.0053
-
-
-
-
-
-
-
-
3.5231
181500
0.0051
-
-
-
-
-
-
-
-
3.5328
182000
0.0044
-
-
-
-
-
-
-
-
3.5425
182500
0.0047
-
-
-
-
-
-
-
-
3.5522
183000
0.0053
-
-
-
-
-
-
-
-
3.5619
183500
0.0048
-
-
-
-
-
-
-
-
3.5716
184000
0.0034
-
-
-
-
-
-
-
-
3.5813
184500
0.0048
-
-
-
-
-
-
-
-
3.5910
185000
0.0036
0.9435
0.9009
0.7942
0.9036
0.7835
0.9448
0.8721
0.8553
3.6008
185500
0.0051
-
-
-
-
-
-
-
-
3.6105
186000
0.0044
-
-
-
-
-
-
-
-
3.6202
186500
0.0055
-
-
-
-
-
-
-
-
3.6299
187000
0.0046
-
-
-
-
-
-
-
-
3.6396
187500
0.0047
-
-
-
-
-
-
-
-
3.6493
188000
0.0051
-
-
-
-
-
-
-
-
3.6590
188500
0.0054
-
-
-
-
-
-
-
-
3.6687
189000
0.0053
-
-
-
-
-
-
-
-
3.6784
189500
0.003
-
-
-
-
-
-
-
-
3.6881
190000
0.0042
0.9423
0.9009
0.7940
0.9048
0.7829
0.9456
0.8759
0.8560
3.6978
190500
0.0041
-
-
-
-
-
-
-
-
3.7075
191000
0.0044
-
-
-
-
-
-
-
-
3.7172
191500
0.005
-
-
-
-
-
-
-
-
3.7269
192000
0.0052
-
-
-
-
-
-
-
-
3.7366
192500
0.0035
-
-
-
-
-
-
-
-
3.7463
193000
0.0043
-
-
-
-
-
-
-
-
3.7560
193500
0.0043
-
-
-
-
-
-
-
-
3.7657
194000
0.0051
-
-
-
-
-
-
-
-
3.7755
194500
0.0044
-
-
-
-
-
-
-
-
3.7852
195000
0.0044
0.9421
0.9013
0.7963
0.9067
0.7822
0.9443
0.8798
0.8571
3.7949
195500
0.0045
-
-
-
-
-
-
-
-
3.8046
196000
0.0045
-
-
-
-
-
-
-
-
3.8143
196500
0.0043
-
-
-
-
-
-
-
-
3.8240
197000
0.0038
-
-
-
-
-
-
-
-
3.8337
197500
0.0051
-
-
-
-
-
-
-
-
3.8434
198000
0.0045
-
-
-
-
-
-
-
-
3.8531
198500
0.0046
-
-
-
-
-
-
-
-
3.8628
199000
0.0059
-
-
-
-
-
-
-
-
3.8725
199500
0.0036
-
-
-
-
-
-
-
-
3.8822
200000
0.0036
0.9430
0.9008
0.7956
0.9061
0.7817
0.9446
0.8785
0.8567
3.8919
200500
0.0051
-
-
-
-
-
-
-
-
3.9016
201000
0.0038
-
-
-
-
-
-
-
-
3.9113
201500
0.0044
-
-
-
-
-
-
-
-
3.9210
202000
0.0051
-
-
-
-
-
-
-
-
3.9307
202500
0.0038
-
-
-
-
-
-
-
-
3.9404
203000
0.0036
-
-
-
-
-
-
-
-
3.9502
203500
0.0043
-
-
-
-
-
-
-
-
3.9599
204000
0.0048
-
-
-
-
-
-
-
-
3.9696
204500
0.0045
-
-
-
-
-
-
-
-
3.9793
205000
0.0045
0.9441
0.9008
0.7962
0.9059
0.7807
0.9457
0.8779
0.8565
3.9890
205500
0.0042
-
-
-
-
-
-
-
-
3.9987
206000
0.0061
-
-
-
-
-
-
-
-
4.0
206068
-
0.9452
0.9018
0.7968
0.9054
0.7799
0.9462
0.8776
0.8567
4.0084
206500
0.0045
-
-
-
-
-
-
-
-
4.0181
207000
0.0032
-
-
-
-
-
-
-
-
4.0278
207500
0.0035
-
-
-
-
-
-
-
-
4.0375
208000
0.0032
-
-
-
-
-
-
-
-
4.0472
208500
0.0032
-
-
-
-
-
-
-
-
4.0569
209000
0.0036
-
-
-
-
-
-
-
-
4.0666
209500
0.0031
-
-
-
-
-
-
-
-
4.0763
210000
0.0033
0.9436
0.9013
0.7972
0.9053
0.7819
0.9452
0.8773
0.8571
4.0860
210500
0.0026
-
-
-
-
-
-
-
-
4.0957
211000
0.003
-
-
-
-
-
-
-
-
4.1054
211500
0.0028
-
-
-
-
-
-
-
-
4.1151
212000
0.0034
-
-
-
-
-
-
-
-
4.1249
212500
0.0046
-
-
-
-
-
-
-
-
4.1346
213000
0.0037
-
-
-
-
-
-
-
-
4.1443
213500
0.004
-
-
-
-
-
-
-
-
4.1540
214000
0.0024
-
-
-
-
-
-
-
-
4.1637
214500
0.0027
-
-
-
-
-
-
-
-
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}
}