CrossEncoder based on microsoft/MiniLM-L12-H384-uncased
This is a Cross Encoder model finetuned from microsoft/MiniLM-L12-H384-uncased using the sentence-transformers library. It computes scores for pairs of texts, which can be used for text reranking and semantic search.
Model Details
Model Description
- Model Type: Cross Encoder
- Base model: microsoft/MiniLM-L12-H384-uncased
- Maximum Sequence Length: 512 tokens
- Number of Output Labels: 1 label
- Supported Modality: Text
Model Sources
- Documentation: Sentence Transformers Documentation
- Documentation: Cross Encoder Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Cross Encoders on Hugging Face
Full Model Architecture
CrossEncoder(
(0): Transformer({'transformer_task': 'sequence-classification', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'logits'}}, 'module_output_name': 'scores', 'architecture': 'BertForSequenceClassification'})
)
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 CrossEncoder
# Download from the 🤗 Hub
model = CrossEncoder("kwondw/reranker-msmarco-v1.1-MiniLM-L12-H384-uncased-lambdaloss-hard-neg")
# Get scores for pairs of inputs
pairs = [
['what is the medicine called for tonsillitis', 'Tonsillitis is usually caused by a virus and does not require prescription medicine. For information on over-the-counter pain medicine and other self-care options, see Home Treatment. An antibiotic, usually amoxicillin or penicillin, is used to treat tonsillitis caused by strep bacteria. Although tonsillitis caused by strep bacteria usually will go away on its own, antibiotics are used to prevent the complications, such as rheumatic fever, that can result from untreated strep throat. '],
['what is the medicine called for tonsillitis', 'You have two tonsils, one on either side at the back of the mouth. The picture below shows large non-infected tonsils (no redness or pus). Tonsillitis is an infection of the tonsils. A sore throat is the most common of all tonsillitis symptoms. In addition, you may also have a cough, high temperature (fever), headache, feel sick, feel tired, find swallowing painful, and have swollen neck glands. '],
['what is the medicine called for tonsillitis', 'Tonsillitis (/ˌtɒnsɪˈlaɪtɪs/ TON-si-LEYE-tis) is inflammation of the tonsils most commonly caused by viral or bacterial infection. Symptoms may include sore throat and fever. When caused by a bacterium belonging to the group A streptococcus, it is typically referred to as strep throat. When tonsillitis is caused by a virus, the length of illness depends on which virus is involved. Usually, a complete recovery is made within one week; however, symptoms may last for up to two weeks. Chronic cases may be treated with tonsillectomy (surgical removal of tonsils) as a choice for treatment.'],
['what is the medicine called for tonsillitis', 'Tonsillitis is when your tonsils become inflamed, infected and swollen. Tonsils are glands that lie in two bands on either side of the back of your throat. They play an important part in helping to protect your body against infection. Tonsillitis is common in children but anyone can catch it no matter what their age. Regardless of whether tonsillitis is caused by a virus or by bacteria, the symptoms are very similar and include: 1 a sore throat; 2 fever; 3 difficulty swallowing; 4 headache;'],
['what is the medicine called for tonsillitis', 'At the back of your throat, two masses of tissue called tonsils help the body to fight infection. However, sometimes the tonsils themselves become infected. Overwhelmed by bacteria or viruses, they swell and become inflamed, a condition known as tonsillitis. Tonsillitis is common, especially in children. '],
]
scores = model.predict(pairs)
print(scores)
# [0.2856 0.1668 0.2954 0.2175 0.2316]
# Or rank different texts based on similarity to a single text
ranks = model.rank(
'what is the medicine called for tonsillitis',
[
'Tonsillitis is usually caused by a virus and does not require prescription medicine. For information on over-the-counter pain medicine and other self-care options, see Home Treatment. An antibiotic, usually amoxicillin or penicillin, is used to treat tonsillitis caused by strep bacteria. Although tonsillitis caused by strep bacteria usually will go away on its own, antibiotics are used to prevent the complications, such as rheumatic fever, that can result from untreated strep throat. ',
'You have two tonsils, one on either side at the back of the mouth. The picture below shows large non-infected tonsils (no redness or pus). Tonsillitis is an infection of the tonsils. A sore throat is the most common of all tonsillitis symptoms. In addition, you may also have a cough, high temperature (fever), headache, feel sick, feel tired, find swallowing painful, and have swollen neck glands. ',
'Tonsillitis (/ˌtɒnsɪˈlaɪtɪs/ TON-si-LEYE-tis) is inflammation of the tonsils most commonly caused by viral or bacterial infection. Symptoms may include sore throat and fever. When caused by a bacterium belonging to the group A streptococcus, it is typically referred to as strep throat. When tonsillitis is caused by a virus, the length of illness depends on which virus is involved. Usually, a complete recovery is made within one week; however, symptoms may last for up to two weeks. Chronic cases may be treated with tonsillectomy (surgical removal of tonsils) as a choice for treatment.',
'Tonsillitis is when your tonsils become inflamed, infected and swollen. Tonsils are glands that lie in two bands on either side of the back of your throat. They play an important part in helping to protect your body against infection. Tonsillitis is common in children but anyone can catch it no matter what their age. Regardless of whether tonsillitis is caused by a virus or by bacteria, the symptoms are very similar and include: 1 a sore throat; 2 fever; 3 difficulty swallowing; 4 headache;',
'At the back of your throat, two masses of tissue called tonsils help the body to fight infection. However, sometimes the tonsils themselves become infected. Overwhelmed by bacteria or viruses, they swell and become inflamed, a condition known as tonsillitis. Tonsillitis is common, especially in children. ',
]
)
# [{'corpus_id': ..., 'score': ...}, {'corpus_id': ..., 'score': ...}, ...]
Evaluation
Metrics
Cross Encoder Reranking
- Datasets:
NanoMSMARCO_R100,NanoNFCorpus_R100andNanoNQ_R100 - Evaluated with CrossEncoderRerankingEvaluator with these parameters:
{ "at_k": 10, "always_rerank_positives": true }
| Metric | NanoMSMARCO_R100 | NanoNFCorpus_R100 | NanoNQ_R100 |
|---|---|---|---|
| map | 0.2574 (-0.2322) | 0.3000 (+0.0390) | 0.3013 (-0.1183) |
| mrr@10 | 0.2449 (-0.2326) | 0.4670 (-0.0329) | 0.2839 (-0.1428) |
| ndcg@10 | 0.3240 (-0.2164) | 0.3059 (-0.0191) | 0.3513 (-0.1494) |
Cross Encoder Nano BEIR
- Dataset:
NanoBEIR_R100_mean - Evaluated with CrossEncoderNanoBEIREvaluator with these parameters:
{ "dataset_names": [ "msmarco", "nfcorpus", "nq" ], "dataset_id": "sentence-transformers/NanoBEIR-en", "rerank_k": 100, "at_k": 10, "always_rerank_positives": true }
| Metric | Value |
|---|---|
| map | 0.2862 (-0.1038) |
| mrr@10 | 0.3319 (-0.1361) |
| ndcg@10 | 0.3271 (-0.1283) |
Training Details
Training Dataset
Unnamed Dataset
- Size: 167,224 training samples
- Columns: query, docs, and labels
- Approximate statistics based on the first 1000 samples:
query docs labels type string list list details min: 4 tokensmean: 9.07 tokensmax: 20 tokens min: 3 elementsmean: 6.50 elementsmax: 10 elements min: 3 elementsmean: 6.50 elementsmax: 10 elements - Samples:
query docs labels where is narbonne gaul located ['Narbonne was established in Gaul in 118 BC, as Colonia Narbo Martius, colloquially Narbo. It was located on the Via Domitia, the first Roman road in Gaul, built at the time of the foundation of the colony, and connecting Italy to Spain. It was subsequently the capital of the Visigothic province of Septimania, the only territory from Gaul to fend off the Frankish thrust after the Battle of Vouille (507). For 40 years, from 719, Narbonne was part of the Emirate of Cordoba with a strong Gothic presence.', 'Among the amenities of Narbonne, its rosemary-flower honey was famous among Romans. Later, the province of Transalpine Gaul was renamed Gallia Narbonensis after the city, which became its capital. Seat of a powerful administration, the city enjoyed economic and architectural expansion. It was subsequently the capital of the Visigothic province of Septimania, the only territory from Gaul to fend off the Frankish thrust after the Battle of Vouille (507). For 40 years, from 719, Narbonne was part of the Emirate of Cordoba with a strong Gothic presence.', 'It was from the capital of Narbonne that Julius Caesar began his Gallic Wars. The area became a Roman province in 121 BCE, originally under the name of Gallia Transalpina (Transalpine Gaul). This name was chosen to distinguish it from Cisalpine Gaul, the part of Gaul on the near side of the Alps to Rome. Its boundaries were roughly defined by the Mediterranean Sea to the south and the C vennes and Alps and north and west. Names. The province of Gallia Transalpina (Transalpine Gaul) was later renamed Gallia Narbonensis, after its capital the Roman colony of Narbo Martius (Narbonne), founded on the coast in 118 BCE.', 'The city of Narbonne is a big french city located south of France. The city of Narbonne is located in the department of Aude of the french region Languedoc-Roussillon. The city of Narbonne is located in the district of Narbonne. The area code for Narbonne is 11262 (also known as code INSEE), and the Narbonne zip code is 11100. The altitude of the city hall of Narbonne is approximately 13 meters. The Narbonne surface is 172.96 km ²', 'The province of Gallia Transalpina (Transalpine Gaul) was later renamed Gallia Narbonensis, after its newly established capital of Colonia Narbo Martius (Narbonne), a Roman colony founded on the coast in 118 BC. The Romans had called it Provincia Nostra (our province) or simply Provincia (the province). The name distinguished it from Cisalpine Gaul on the near side of the Alps to Rome. In 40 BC, during the Second Triumvirate, Lepidus was given responsibility for Narbonese Gaul (along with Hispania and Africa), while Mark Antony was given the balance of Gaul.', ...] [1, 0, 0, 0, 0, ...] what is an HMI ['HMI. HMI (Human Machine Interface) is a User Interface where interaction between a human and a manufacturing or process control system occurs. The HMI provides graphics-based visualization of a control system. The outcome of interaction with an HMI is effective operation and control of a process.', "HMI stands for H uman M achine I nterface. This is the interface between the operator and the controller. The HMI is the controller operating panel. The panel comprises a numeric keypad and a LCD screen that displays text. The keypad is used to input data into the application, such as Timer values. The PLC's Display screen can show operator messages, variable information from the program and system information. HMI messages are created in the Display Editor.", "HMI stands for H uman M achine I nterface. This is the interface between the operator and the controller. The HMI is the controller operating panel. The panel comprises a numeric keypad and a LCD screen that displays text. The keypad is used to input data into the application, such as Timer values. The PLC's Display screen can show operator messages, variable information from the program and system information. HMI messages are created in the Display Edito", "A Human-Machine Interface or HMI is the apparatus which presents process data to a human operator, and through which the human operator controls the process. An HMI is usually linked to the SCADA system's databases and software programs, to provide trending, diagnostic data, and management information such as scheduled maintenance procedures, logistic information, detailed schematics for a particular sensor or machine, and expert-system troubleshooting guides.", '» Sign-up for News. The Human Machine Interface (HMI) includes the electronics required to signal and control the state of industrial automation equipment. These interface products can range from a basic LED status indicator to a 20-inch TFT panel with touchscreen interface', ...] [1, 0, 0, 0, 0, ...] does laila engaged to meera's brother ['Laila Got Engaged To Meera Brother Ahsan. admin April 9, 2015 Laila Got Engaged To Meera Brother Ahsan 2015-04-10T03:50:40+00:00 Latest Happning No Comment. After the late buildup on media about Laila discovering her life accomplice through a network show, Laila has at long last discovered her “To-Be” Ahson. Kaun Bane Ga Laila Ka Dulha was a quite discussed fragment where youthful men contended to be Laila’s husband to be on APlus Morning Show, facilitated by Noor', 'Kaun Bane Ga Laila Ka Dulha was a much talked about segment where young men competed to be Laila’s groom on APlus Morning Show, hosted by Noor. Ahson, surprisingly happens to be the brother of film actress Meera and it has been revealed by sources that Laila and Ahson have been in a relationship for some time.', 'As we all be acquainted with that Laila was in look for of her life colleague. The beat show Kaun Banega “ Laila Ka Dulha ” was aired on A plus. In this part, men from special places take part and compete every other to become Laila’s Dulha.', 'Pinterest0. As we all know that Laila was in search of her life partner. The hit show Kaun Banega Laila Ka Dulha was aired on Aplus. In this segment, men from different places took part and competed each other to become Laila’s groom. The show was hosted by Noor and Saim.After waiting for a long period, Ahsan was finally announced the groom of Laila. According to sources, Laila and Ahsan were in a relationship for a long time.', 'Mohsin Abbas got married. As we all know that Laila was in search of her life partner. The hit show Kaun Banega Laila Ka Dulha was aired on Aplus. In this segment, men from different places took part and competed each other to become Laila’s groom. The show was hosted by Noor and Saim.After waiting for a long period, Ahsan was finally announced the groom of Laila. According to sources, Laila and Ahsan were in a relationship for a long time.', ...] [1, 0, 0, 0, 0, ...] - Loss: LambdaLoss with these parameters:
{ "weighting_scheme": "sentence_transformers.cross_encoder.losses.lambda_loss.NDCGLoss2PPScheme", "k": null, "sigma": 1.0, "eps": 1e-10, "reduction_log": "binary", "activation_fn": "torch.nn.modules.linear.Identity", "mini_batch_size": 16 }
Evaluation Dataset
Unnamed Dataset
- Size: 1,000 evaluation samples
- Columns: query, docs, and labels
- Approximate statistics based on the first 1000 samples:
query docs labels type string list list details min: 4 tokensmean: 9.2 tokensmax: 22 tokens min: 3 elementsmean: 6.50 elementsmax: 10 elements min: 3 elementsmean: 6.50 elementsmax: 10 elements - Samples:
query docs labels what is the medicine called for tonsillitis ['Tonsillitis is usually caused by a virus and does not require prescription medicine. For information on over-the-counter pain medicine and other self-care options, see Home Treatment. An antibiotic, usually amoxicillin or penicillin, is used to treat tonsillitis caused by strep bacteria. Although tonsillitis caused by strep bacteria usually will go away on its own, antibiotics are used to prevent the complications, such as rheumatic fever, that can result from untreated strep throat. ', 'You have two tonsils, one on either side at the back of the mouth. The picture below shows large non-infected tonsils (no redness or pus). Tonsillitis is an infection of the tonsils. A sore throat is the most common of all tonsillitis symptoms. In addition, you may also have a cough, high temperature (fever), headache, feel sick, feel tired, find swallowing painful, and have swollen neck glands. ', 'Tonsillitis (/ˌtɒnsɪˈlaɪtɪs/ TON-si-LEYE-tis) is inflammation of the tonsils most commonly caused by viral or bacterial infection. Symptoms may include sore throat and fever. When caused by a bacterium belonging to the group A streptococcus, it is typically referred to as strep throat. When tonsillitis is caused by a virus, the length of illness depends on which virus is involved. Usually, a complete recovery is made within one week; however, symptoms may last for up to two weeks. Chronic cases may be treated with tonsillectomy (surgical removal of tonsils) as a choice for treatment.', 'Tonsillitis is when your tonsils become inflamed, infected and swollen. Tonsils are glands that lie in two bands on either side of the back of your throat. They play an important part in helping to protect your body against infection. Tonsillitis is common in children but anyone can catch it no matter what their age. Regardless of whether tonsillitis is caused by a virus or by bacteria, the symptoms are very similar and include: 1 a sore throat; 2 fever; 3 difficulty swallowing; 4 headache;', 'At the back of your throat, two masses of tissue called tonsils help the body to fight infection. However, sometimes the tonsils themselves become infected. Overwhelmed by bacteria or viruses, they swell and become inflamed, a condition known as tonsillitis. Tonsillitis is common, especially in children. ', ...] [1, 0, 0, 0, 0, ...] what properties distinguish pyrite from gold? ['To tell the difference between pyrite and real gold, you can check the color and shape of the ore. Gold and pyrite have a yellowish color but pyrite has a pale and brassy … color compared to gold. Pyrites are shaped more like crystals while gold tends to form as a nugget. Another difference between the two is that gold can be scratched with a pocketknife while pyrite cannot be scratched.', 'Pyrite is harder than gold. While Pyrite’s hardness is 6 to 6.5, gold has hardness around 2 to 3. Pyrite also contains high amount of iron. There is also a big difference in the specific gravity between gold and pyrite. While gold has a specific gravity of 15.6/19.3, pyrite has 5.0. Gold vs Pyrite. It is easy to make out the difference between Gold and pyrite. They have much difference in their structure, colour, hardness and specific gravity. When comparing gold and pyrite with regard to their colour, both have a metallic lustre but have different yellow tones.', "Pyrite is usually found associated with other sulfides or oxides in quartz veins, sedimentary rock, and metamorphic rock, as well as in coal beds and as a replacement mineral in fossils. Despite being nicknamed fool's gold, pyrite is sometimes found in association with small quantities of gold. Gold and arsenic occur as a coupled substitution in the pyrite structure. In the Carlin–type gold deposits, arsenian pyrite contains up to 0.37 wt% gold.", 'Pyrite and chalcopyrite can be notoriously hard to distinguish between. There are several mineral properties that can be used to tell the difference, however. First, chalcopyr … ite is slightly softer than pyrite (Chalcopyrite has a hardness of 4.0 on the Mohs hardness scale, whereas pyrite has a hardness of 6.0.-6.5). Gold and pyrite have a yellowish color but pyrite has a pale and brassy … color compared to gold. Pyrites are shaped more like crystals while gold tends to form as a nugget. Another difference between the two is that gold can be scratched with a pocketknife while pyrite cannot be scratched.', 'Pyrite and chalcopyrite can be notoriously hard to distinguish between. There are several mineral properties that can be used to tell the difference, however. First, chalcopyr … ite is slightly softer than pyrite (Chalcopyrite has a hardness of 4.0 on the Mohs hardness scale, whereas pyrite has a hardness of 6.0.-6.5). To tell the difference between pyrite and real gold, you can check the color and shape of the ore. Gold and pyrite have a yellowish color but pyrite has a pale and brassy … color compared to gold.', ...] [1, 1, 0, 0, 0, ...] how long does a turkey live in captivity ['The maximum recorded lifespan for a turkey in captivity is twelve years and four months. For turkeys living in the wild, the maximum is less than ten years, but the average life expectancy of a male turkey is just over 2 years and just over 3 years for females. If you have turkeys that can fly, their enclosed cage should have chicken wire surrounding it on all sides and top with a wood frame with a stiff metal dog wire of about 3-4 feet tall along the bottom to keep out other animals and to keep the turkeys in.', 'HowStuffWorks Turkey . The wild turkey has the potential to live as long as thirteen years or so, They can (and do) run fast with their long legs, and will take wing and fly. wild turkey. The maximum recorded lifespan for a turkey in captivity is twelve years and four months. ChaCha Answers. Male wild Turkeys grow to about four feet long, including the tail. If you own wild turkeys and do not wish for them to fly away, their wings need Domestic turkeys bred for food consumption were not bred to live over one year.', 'If turkeys survive the first two weeks of its life, then it is expected to live 1-3 years. There have been trukeys that live 10 years or longer. Most domestic turkeys live 26 weeks (thanksgiving turkeys) :) Hope this helps. ', 'The average life expectancy of a poult is about 1 ½ years. Turkeys that survive their first year, though, have little to fear from any predator (except humans) and can live up to 15 years in their natural habitats. In the fall, young gobblers will leave the hen flocks and form or join gobbler flocks. ', "0. Turkeys are rather moderately-lived birds compared to long-lived species such as some hawks, gulls, and waterfowl. Overall, the mortality rate of turkeys during the first 2 weeks of life is about 70%, though longevity increases after this critical time period. The average turkey probably lives to about 11/2 years of age. Individuals may live longer, but any turkey over 6 years old is definitely an old-timer. Based on a banded bird, the oldest known eastern turkey (coincidentally from Massachusetts) was at least 15 years old at death. Rio Grande turkeys have lived to 14, Florida turkeys to 13, and Merriam's turkeys to 91/2 years of age.", ...] - Loss: LambdaLoss with these parameters:
{ "weighting_scheme": "sentence_transformers.cross_encoder.losses.lambda_loss.NDCGLoss2PPScheme", "k": null, "sigma": 1.0, "eps": 1e-10, "reduction_log": "binary", "activation_fn": "torch.nn.modules.linear.Identity", "mini_batch_size": 16 }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 16per_device_eval_batch_size: 16learning_rate: 2e-05num_train_epochs: 1warmup_steps: 0.1seed: 12fp16: Trueload_best_model_at_end: True
All Hyperparameters
do_predict: Falseprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 16gradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 1max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_ratio: Nonewarmup_steps: 0.1log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Trueenable_jit_checkpoint: Falsesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseuse_cpu: Falseseed: 12data_seed: Nonebf16: Falsefp16: Truebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: -1ddp_backend: Nonedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonedisable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Trueignore_data_skip: Falsefsdp: []fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}accelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_args: Nonegroup_by_length: Falselength_column_name: lengthproject: huggingfacetrackio_space_id: trackioddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Truepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsehub_revision: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_for_metrics: []eval_do_concat_batches: Trueauto_find_batch_size: Falsefull_determinism: Falseddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_num_input_tokens_seen: noneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Trueuse_cache: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_R100_ndcg@10 | NanoNFCorpus_R100_ndcg@10 | NanoNQ_R100_ndcg@10 | NanoBEIR_R100_mean_ndcg@10 |
|---|---|---|---|---|---|---|---|
| -1 | -1 | - | - | 0.0779 (-0.4625) | 0.2522 (-0.0728) | 0.0193 (-0.4814) | 0.1165 (-0.3389) |
| 0.0001 | 1 | 1.4955 | - | - | - | - | - |
| 0.0239 | 250 | 1.4767 | - | - | - | - | - |
| 0.0478 | 500 | 1.4534 | - | - | - | - | - |
| 0.0718 | 750 | 1.3787 | - | - | - | - | - |
| 0.0957 | 1000 | 1.3501 | - | - | - | - | - |
| 0.1001 | 1046 | - | 1.2836 | 0.3240 (-0.2164) | 0.3059 (-0.0191) | 0.3513 (-0.1494) | 0.3271 (-0.1283) |
| 0.1196 | 1250 | 1.3220 | - | - | - | - | - |
| 0.1435 | 1500 | 1.3060 | - | - | - | - | - |
| 0.1674 | 1750 | 1.2858 | - | - | - | - | - |
| 0.1914 | 2000 | 1.2861 | - | - | - | - | - |
| 0.2002 | 2092 | - | 1.2453 | 0.3152 (-0.2252) | 0.3192 (-0.0058) | 0.2910 (-0.2096) | 0.3085 (-0.1469) |
| 0.2153 | 2250 | 1.2850 | - | - | - | - | - |
| 0.2392 | 2500 | 1.2633 | - | - | - | - | - |
| 0.2631 | 2750 | 1.2646 | - | - | - | - | - |
| 0.2870 | 3000 | 1.2577 | - | - | - | - | - |
| 0.3002 | 3138 | - | 1.2175 | 0.3269 (-0.2135) | 0.2968 (-0.0283) | 0.2976 (-0.2031) | 0.3071 (-0.1483) |
| 0.3109 | 3250 | 1.2493 | - | - | - | - | - |
| 0.3349 | 3500 | 1.2382 | - | - | - | - | - |
| 0.3588 | 3750 | 1.2449 | - | - | - | - | - |
| 0.3827 | 4000 | 1.2407 | - | - | - | - | - |
| 0.4003 | 4184 | - | 1.1893 | 0.3028 (-0.2376) | 0.2910 (-0.0340) | 0.3027 (-0.1979) | 0.2989 (-0.1565) |
| 0.4066 | 4250 | 1.2296 | - | - | - | - | - |
| 0.4305 | 4500 | 1.2180 | - | - | - | - | - |
| 0.4545 | 4750 | 1.2261 | - | - | - | - | - |
| 0.4784 | 5000 | 1.2172 | - | - | - | - | - |
| 0.5004 | 5230 | - | 1.1849 | 0.3588 (-0.1816) | 0.3060 (-0.0190) | 0.2925 (-0.2081) | 0.3191 (-0.1363) |
| 0.5023 | 5250 | 1.2091 | - | - | - | - | - |
| 0.5262 | 5500 | 1.2250 | - | - | - | - | - |
| 0.5501 | 5750 | 1.1990 | - | - | - | - | - |
| 0.5741 | 6000 | 1.2056 | - | - | - | - | - |
| 0.5980 | 6250 | 1.2148 | - | - | - | - | - |
| 0.6005 | 6276 | - | 1.1778 | 0.3288 (-0.2116) | 0.3274 (+0.0024) | 0.3197 (-0.1810) | 0.3253 (-0.1301) |
| 0.6219 | 6500 | 1.1986 | - | - | - | - | - |
| 0.6458 | 6750 | 1.1963 | - | - | - | - | - |
| 0.6697 | 7000 | 1.1919 | - | - | - | - | - |
| 0.6936 | 7250 | 1.1920 | - | - | - | - | - |
| 0.7005 | 7322 | - | 1.1755 | 0.3136 (-0.2268) | 0.3129 (-0.0122) | 0.3041 (-0.1965) | 0.3102 (-0.1452) |
| 0.7176 | 7500 | 1.1986 | - | - | - | - | - |
| 0.7415 | 7750 | 1.1850 | - | - | - | - | - |
| 0.7654 | 8000 | 1.1969 | - | - | - | - | - |
| 0.7893 | 8250 | 1.1720 | - | - | - | - | - |
| 0.8006 | 8368 | - | 1.1682 | 0.3483 (-0.1921) | 0.3128 (-0.0122) | 0.2994 (-0.2012) | 0.3202 (-0.1352) |
| 0.8132 | 8500 | 1.1861 | - | - | - | - | - |
| 0.8372 | 8750 | 1.1834 | - | - | - | - | - |
| 0.8611 | 9000 | 1.1935 | - | - | - | - | - |
| 0.8850 | 9250 | 1.1788 | - | - | - | - | - |
| 0.9007 | 9414 | - | 1.1629 | 0.3435 (-0.1970) | 0.3089 (-0.0161) | 0.3142 (-0.1865) | 0.3222 (-0.1332) |
| 0.9089 | 9500 | 1.1655 | - | - | - | - | - |
| 0.9328 | 9750 | 1.2063 | - | - | - | - | - |
| 0.9568 | 10000 | 1.1740 | - | - | - | - | - |
| 0.9807 | 10250 | 1.1859 | - | - | - | - | - |
| -1 | -1 | - | - | 0.3240 (-0.2164) | 0.3059 (-0.0191) | 0.3513 (-0.1494) | 0.3271 (-0.1283) |
- The bold row denotes the saved checkpoint.
Training Time
- Training: 1.5 hours
- Evaluation: 6.0 minutes
- Total: 1.6 hours
Framework Versions
- Python: 3.12.13
- Sentence Transformers: 5.4.1
- Transformers: 5.0.0
- PyTorch: 2.10.0+cu128
- Accelerate: 1.13.0
- Datasets: 5.0.0
- Tokenizers: 0.22.2
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",
}
LambdaLoss
@inproceedings{wang2018lambdaloss,
title={The LambdaLoss Framework for Ranking Metric Optimization},
author={Wang, Xuanhui and Li, Cheng and Golbandi, Nadav and Bendersky, Michael and Najork, Marc},
booktitle={Proceedings of the 27th ACM international conference on information and knowledge management},
pages={1313--1322},
year={2018}
}