Feature Extraction
sentence-transformers
Safetensors
English
bert
sparse-encoder
sparse
splade
Generated from Trainer
dataset_size:99000
loss:SpladeLoss
loss:SparseDistillKLDivLoss
loss:FlopsLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/splade-cocondenser-msmarco-kldiv-minilm-temp-4-4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/splade-cocondenser-msmarco-kldiv-minilm-temp-4-4 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/splade-cocondenser-msmarco-kldiv-minilm-temp-4-4") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
metadata
language:
- en
license: apache-2.0
tags:
- sentence-transformers
- sparse-encoder
- sparse
- splade
- generated_from_trainer
- dataset_size:99000
- loss:SpladeLoss
- loss:SparseDistillKLDivLoss
- loss:FlopsLoss
base_model: Luyu/co-condenser-marco
widget:
- text: >-
The ejection fraction may decrease if: 1 You have weakness of your heart
muscle, such as dilated cardiomyopathy, which can be caused by a heart
muscle problem, familial (genetic) cardiomyopathy, or systemic illnesses.
2 A heart attack has damaged your heart. You have problems with your
heart's valves.
- text: "One thing we avoided: Lots of alternative slime recipes swap Borax for liquid starch, shampoo, body wash, hand soap, contact lens solution, or laundry detergent. Those may seem benign â\x80\x94 and they might be â\x80\x94 but many of them contain derivatives or relatives of sodium borate too."
- text: how do i get my mvr in pa
- text: >-
English is a language whose vocabulary is the composite of a surprising
range of influences. We have pillaged words from Latin, Greek, Dutch,
Arabic, Old Norse, Spanish, Italian, Hindi, and more besides to make
English what it is today.
- text: >-
Weed Eater was a string trimmer company founded in 1971 in Houston, Texas
by George C. Ballas, Sr. , the inventor of the device. The idea for the
Weed Eater trimmer came to him from the spinning nylon bristles of an
automatic car wash.He thought that he could come up with a similar
technique to protect the bark on trees that he was trimming around. His
company was eventually bought by Emerson Electric and merged with
Poulan.Poulan/Weed Eater was later purchased by Electrolux, which spun off
the outdoors division as Husqvarna AB in 2006.Inventor Ballas was the
father of champion ballroom dancer Corky Ballas and the grandfather of
Dancing with the Stars dancer Mark Ballas.George Ballas died on June 25,
2011.he idea for the Weed Eater trimmer came to him from the spinning
nylon bristles of an automatic car wash. He thought that he could come up
with a similar technique to protect the bark on trees that he was trimming
around. His company was eventually bought by Emerson Electric and merged
with Poulan.
pipeline_tag: feature-extraction
library_name: sentence-transformers
metrics:
- dot_accuracy@1
- dot_accuracy@3
- dot_accuracy@5
- dot_accuracy@10
- dot_precision@1
- dot_precision@3
- dot_precision@5
- dot_precision@10
- dot_recall@1
- dot_recall@3
- dot_recall@5
- dot_recall@10
- dot_ndcg@10
- dot_mrr@10
- dot_map@100
- query_active_dims
- query_sparsity_ratio
- corpus_active_dims
- corpus_sparsity_ratio
co2_eq_emissions:
emissions: 84.59075991049266
energy_consumed: 0.21762368063578955
source: codecarbon
training_type: fine-tuning
on_cloud: false
cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
ram_total_size: 31.777088165283203
hours_used: 0.604
hardware_used: 1 x NVIDIA GeForce RTX 3090
model-index:
- name: CoCondenser finetuned on MS MARCO
results:
- task:
type: sparse-information-retrieval
name: Sparse Information Retrieval
dataset:
name: NanoMSMARCO
type: NanoMSMARCO
metrics:
- type: dot_accuracy@1
value: 0.44
name: Dot Accuracy@1
- type: dot_accuracy@3
value: 0.66
name: Dot Accuracy@3
- type: dot_accuracy@5
value: 0.74
name: Dot Accuracy@5
- type: dot_accuracy@10
value: 0.84
name: Dot Accuracy@10
- type: dot_precision@1
value: 0.44
name: Dot Precision@1
- type: dot_precision@3
value: 0.22
name: Dot Precision@3
- type: dot_precision@5
value: 0.14800000000000002
name: Dot Precision@5
- type: dot_precision@10
value: 0.08399999999999999
name: Dot Precision@10
- type: dot_recall@1
value: 0.44
name: Dot Recall@1
- type: dot_recall@3
value: 0.66
name: Dot Recall@3
- type: dot_recall@5
value: 0.74
name: Dot Recall@5
- type: dot_recall@10
value: 0.84
name: Dot Recall@10
- type: dot_ndcg@10
value: 0.63362678550763
name: Dot Ndcg@10
- type: dot_mrr@10
value: 0.5680238095238095
name: Dot Mrr@10
- type: dot_map@100
value: 0.5766838178161707
name: Dot Map@100
- type: query_active_dims
value: 22.760000228881836
name: Query Active Dims
- type: query_sparsity_ratio
value: 0.9992543083602359
name: Query Sparsity Ratio
- type: corpus_active_dims
value: 272.80706787109375
name: Corpus Active Dims
- type: corpus_sparsity_ratio
value: 0.9910619530872454
name: Corpus Sparsity Ratio
- task:
type: sparse-information-retrieval
name: Sparse Information Retrieval
dataset:
name: NanoNFCorpus
type: NanoNFCorpus
metrics:
- type: dot_accuracy@1
value: 0.46
name: Dot Accuracy@1
- type: dot_accuracy@3
value: 0.6
name: Dot Accuracy@3
- type: dot_accuracy@5
value: 0.64
name: Dot Accuracy@5
- type: dot_accuracy@10
value: 0.68
name: Dot Accuracy@10
- type: dot_precision@1
value: 0.46
name: Dot Precision@1
- type: dot_precision@3
value: 0.3933333333333333
name: Dot Precision@3
- type: dot_precision@5
value: 0.3440000000000001
name: Dot Precision@5
- type: dot_precision@10
value: 0.282
name: Dot Precision@10
- type: dot_recall@1
value: 0.04221166591589208
name: Dot Recall@1
- type: dot_recall@3
value: 0.07719378894418584
name: Dot Recall@3
- type: dot_recall@5
value: 0.09684108169610303
name: Dot Recall@5
- type: dot_recall@10
value: 0.1427058103213476
name: Dot Recall@10
- type: dot_ndcg@10
value: 0.3502842525878076
name: Dot Ndcg@10
- type: dot_mrr@10
value: 0.5328571428571429
name: Dot Mrr@10
- type: dot_map@100
value: 0.1536038321685343
name: Dot Map@100
- type: query_active_dims
value: 19.299999237060547
name: Query Active Dims
- type: query_sparsity_ratio
value: 0.9993676692471968
name: Query Sparsity Ratio
- type: corpus_active_dims
value: 540.7974853515625
name: Corpus Active Dims
- type: corpus_sparsity_ratio
value: 0.9822817153085787
name: Corpus Sparsity Ratio
- task:
type: sparse-information-retrieval
name: Sparse Information Retrieval
dataset:
name: NanoNQ
type: NanoNQ
metrics:
- type: dot_accuracy@1
value: 0.46
name: Dot Accuracy@1
- type: dot_accuracy@3
value: 0.78
name: Dot Accuracy@3
- type: dot_accuracy@5
value: 0.78
name: Dot Accuracy@5
- type: dot_accuracy@10
value: 0.86
name: Dot Accuracy@10
- type: dot_precision@1
value: 0.46
name: Dot Precision@1
- type: dot_precision@3
value: 0.2733333333333333
name: Dot Precision@3
- type: dot_precision@5
value: 0.16399999999999998
name: Dot Precision@5
- type: dot_precision@10
value: 0.092
name: Dot Precision@10
- type: dot_recall@1
value: 0.43
name: Dot Recall@1
- type: dot_recall@3
value: 0.74
name: Dot Recall@3
- type: dot_recall@5
value: 0.74
name: Dot Recall@5
- type: dot_recall@10
value: 0.82
name: Dot Recall@10
- type: dot_ndcg@10
value: 0.6473909452701805
name: Dot Ndcg@10
- type: dot_mrr@10
value: 0.6065
name: Dot Mrr@10
- type: dot_map@100
value: 0.5881698592291996
name: Dot Map@100
- type: query_active_dims
value: 26.540000915527344
name: Query Active Dims
- type: query_sparsity_ratio
value: 0.9991304632423981
name: Query Sparsity Ratio
- type: corpus_active_dims
value: 305.70428466796875
name: Corpus Active Dims
- type: corpus_sparsity_ratio
value: 0.9899841332590273
name: Corpus Sparsity Ratio
- task:
type: sparse-nano-beir
name: Sparse Nano BEIR
dataset:
name: NanoBEIR mean
type: NanoBEIR_mean
metrics:
- type: dot_accuracy@1
value: 0.45333333333333337
name: Dot Accuracy@1
- type: dot_accuracy@3
value: 0.68
name: Dot Accuracy@3
- type: dot_accuracy@5
value: 0.7200000000000001
name: Dot Accuracy@5
- type: dot_accuracy@10
value: 0.7933333333333333
name: Dot Accuracy@10
- type: dot_precision@1
value: 0.45333333333333337
name: Dot Precision@1
- type: dot_precision@3
value: 0.2955555555555555
name: Dot Precision@3
- type: dot_precision@5
value: 0.2186666666666667
name: Dot Precision@5
- type: dot_precision@10
value: 0.15266666666666664
name: Dot Precision@10
- type: dot_recall@1
value: 0.30407055530529736
name: Dot Recall@1
- type: dot_recall@3
value: 0.4923979296480619
name: Dot Recall@3
- type: dot_recall@5
value: 0.525613693898701
name: Dot Recall@5
- type: dot_recall@10
value: 0.6009019367737825
name: Dot Recall@10
- type: dot_ndcg@10
value: 0.5437673277885393
name: Dot Ndcg@10
- type: dot_mrr@10
value: 0.5691269841269841
name: Dot Mrr@10
- type: dot_map@100
value: 0.43948583640463496
name: Dot Map@100
- type: query_active_dims
value: 22.866666793823242
name: Query Active Dims
- type: query_sparsity_ratio
value: 0.9992508136166102
name: Query Sparsity Ratio
- type: corpus_active_dims
value: 346.2483378727889
name: Corpus Active Dims
- type: corpus_sparsity_ratio
value: 0.9886557781969467
name: Corpus Sparsity Ratio
CoCondenser finetuned on MS MARCO
This is a SPLADE Sparse Encoder model finetuned from Luyu/co-condenser-marco using the sentence-transformers library. It maps sentences & paragraphs to a 30522-dimensional sparse vector space and can be used for semantic search and sparse retrieval.
Model Details
Model Description
- Model Type: SPLADE Sparse Encoder
- Base model: Luyu/co-condenser-marco
- Maximum Sequence Length: 512 tokens
- Output Dimensionality: 30522 dimensions
- Similarity Function: Dot Product
- Language: en
- License: apache-2.0
Model Sources
- Documentation: Sentence Transformers Documentation
- Documentation: Sparse Encoder Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sparse Encoders on Hugging Face
Full Model Architecture
SparseEncoder(
(0): MLMTransformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertForMaskedLM'})
(1): SpladePooling({'pooling_strategy': 'max', 'activation_function': 'relu', 'word_embedding_dimension': 30522})
)
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 SparseEncoder
# Download from the 🤗 Hub
model = SparseEncoder("tomaarsen/splade-cocondenser-msmarco-kldiv-minilm-temp-4-4")
# Run inference
queries = [
"who started gladiator lacrosse",
]
documents = [
'Weed Eater was a string trimmer company founded in 1971 in Houston, Texas by George C. Ballas, Sr. , the inventor of the device. The idea for the Weed Eater trimmer came to him from the spinning nylon bristles of an automatic car wash.He thought that he could come up with a similar technique to protect the bark on trees that he was trimming around. His company was eventually bought by Emerson Electric and merged with Poulan.Poulan/Weed Eater was later purchased by Electrolux, which spun off the outdoors division as Husqvarna AB in 2006.Inventor Ballas was the father of champion ballroom dancer Corky Ballas and the grandfather of Dancing with the Stars dancer Mark Ballas.George Ballas died on June 25, 2011.he idea for the Weed Eater trimmer came to him from the spinning nylon bristles of an automatic car wash. He thought that he could come up with a similar technique to protect the bark on trees that he was trimming around. His company was eventually bought by Emerson Electric and merged with Poulan.',
"The earliest types of gladiator were named after Rome's enemies of that time: the Samnite, Thracian and Gaul. The Samnite, heavily armed, elegantly helmed and probably the most popular type, was renamed Secutor and the Gaul renamed Murmillo, once these former enemies had been conquered then absorbed into Rome's Empire.",
'Summit Hill, PA. Sponsored Topics. Summit Hill is a borough in Carbon County, Pennsylvania, United States. The population was 2,974 at the 2000 census. Summit Hill is located at 40°49â\x80²39â\x80³N 75°51â\x80²57â\x80³W / 40.8275°N 75.86583°W / 40.8275; -75.86583 (40.827420, -75.865892).',
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 30522] [3, 30522]
# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[16.7809, 27.8161, 12.2887]])
Evaluation
Metrics
Sparse Information Retrieval
- Datasets:
NanoMSMARCO,NanoNFCorpusandNanoNQ - Evaluated with
SparseInformationRetrievalEvaluator
| Metric | NanoMSMARCO | NanoNFCorpus | NanoNQ |
|---|---|---|---|
| dot_accuracy@1 | 0.44 | 0.46 | 0.46 |
| dot_accuracy@3 | 0.66 | 0.6 | 0.78 |
| dot_accuracy@5 | 0.74 | 0.64 | 0.78 |
| dot_accuracy@10 | 0.84 | 0.68 | 0.86 |
| dot_precision@1 | 0.44 | 0.46 | 0.46 |
| dot_precision@3 | 0.22 | 0.3933 | 0.2733 |
| dot_precision@5 | 0.148 | 0.344 | 0.164 |
| dot_precision@10 | 0.084 | 0.282 | 0.092 |
| dot_recall@1 | 0.44 | 0.0422 | 0.43 |
| dot_recall@3 | 0.66 | 0.0772 | 0.74 |
| dot_recall@5 | 0.74 | 0.0968 | 0.74 |
| dot_recall@10 | 0.84 | 0.1427 | 0.82 |
| dot_ndcg@10 | 0.6336 | 0.3503 | 0.6474 |
| dot_mrr@10 | 0.568 | 0.5329 | 0.6065 |
| dot_map@100 | 0.5767 | 0.1536 | 0.5882 |
| query_active_dims | 22.76 | 19.3 | 26.54 |
| query_sparsity_ratio | 0.9993 | 0.9994 | 0.9991 |
| corpus_active_dims | 272.8071 | 540.7975 | 305.7043 |
| corpus_sparsity_ratio | 0.9911 | 0.9823 | 0.99 |
Sparse Nano BEIR
- Dataset:
NanoBEIR_mean - Evaluated with
SparseNanoBEIREvaluatorwith these parameters:{ "dataset_names": [ "msmarco", "nfcorpus", "nq" ] }
| Metric | Value |
|---|---|
| dot_accuracy@1 | 0.4533 |
| dot_accuracy@3 | 0.68 |
| dot_accuracy@5 | 0.72 |
| dot_accuracy@10 | 0.7933 |
| dot_precision@1 | 0.4533 |
| dot_precision@3 | 0.2956 |
| dot_precision@5 | 0.2187 |
| dot_precision@10 | 0.1527 |
| dot_recall@1 | 0.3041 |
| dot_recall@3 | 0.4924 |
| dot_recall@5 | 0.5256 |
| dot_recall@10 | 0.6009 |
| dot_ndcg@10 | 0.5438 |
| dot_mrr@10 | 0.5691 |
| dot_map@100 | 0.4395 |
| query_active_dims | 22.8667 |
| query_sparsity_ratio | 0.9993 |
| corpus_active_dims | 346.2483 |
| corpus_sparsity_ratio | 0.9887 |
Training Details
Training Dataset
Unnamed Dataset
- Size: 99,000 training samples
- Columns:
query,positive,negative, andlabel - Approximate statistics based on the first 1000 samples:
query positive negative label type string string string list details - min: 4 tokens
- mean: 9.2 tokens
- max: 34 tokens
- min: 18 tokens
- mean: 79.86 tokens
- max: 219 tokens
- min: 18 tokens
- mean: 79.96 tokens
- max: 270 tokens
- size: 2 elements
- Samples:
query positive negative label rtn tv networkHome Shopping Network. Home Shopping Network (HSN) is an American broadcast, basic cable and satellite television network that is owned by HSN, Inc. (NASDAQ: HSNI), which also owns catalog company Cornerstone Brands. Based in St. Petersburg, Florida, United States, the home shopping channel has former and current sister channels in several other countries.The Public Switched Telephone Network - The public switched telephone network (PSTN) is the international network of circuit-switched telephones. Learn more about PSTN at HowStuffWorks. x[-1.0804121494293213, -5.908488750457764]how did president nixon react to the watergate investigation?The Watergate scandal was a major political scandal that occurred in the United States during the early 1970s, following a break-in by five men at the Democratic National Committee headquarters at the Watergate office complex in Washington, D.C. on June 17, 1972, and President Richard Nixon's administration's subsequent attempt to cover up its involvement. After the five burglars were caught and the conspiracy was discovered, Watergate was investigated by the United States Congress. Meanwhile, NThe release of the tape was ordered by the Supreme Court on July 24, 1974, in a case known as United States v. Nixon. The courtâs decision was unanimous. President Nixon released the tape on August 5. It was one of three conversations he had with Haldeman six days after the Watergate break-in. The tapes prove that he ordered a cover-up of the Watergate burglary. The Smoking Gun tape reveals that Nixon ordered the FBI to abandon its investigation of the break-in. [Read moreâ¦][4.117279052734375, 3.191757917404175]what is a summary offense in pennsylvaniaWe provide cost effective house arrest and electronic monitoring services to magisterial district court systems throughout Pennsylvania including York, Harrisburg, Philadelphia and Allentown.In addition, we also serve the York County, Lancaster County and Chester County.e provide cost effective house arrest and electronic monitoring services to magisterial district court systems throughout Pennsylvania including York, Harrisburg, Philadelphia and Allentown.In order to be convicted of Simple Assault, one must cause bodily injury. To be convicted of Aggravated Assault, one must cause serious bodily injury. From my research, Pennsylvania law defines bodily injury as the impairment of physical condition or substantial pain.[-8.954689025878906, -1.3361705541610718] - Loss:
SpladeLosswith these parameters:{ "loss": "SparseDistillKLDivLoss", "lambda_corpus": 0.0005, "lambda_query": 0.0005 }
Evaluation Dataset
Unnamed Dataset
- Size: 1,000 evaluation samples
- Columns:
query,positive,negative, andlabel - Approximate statistics based on the first 1000 samples:
query positive negative label type string string string list details - min: 4 tokens
- mean: 9.12 tokens
- max: 37 tokens
- min: 17 tokens
- mean: 78.91 tokens
- max: 239 tokens
- min: 25 tokens
- mean: 81.25 tokens
- max: 239 tokens
- size: 2 elements
- Samples:
query positive negative label how long to cook roast beef forRoasting times for beef. Preheat your oven to 160°C (325°F) and use these cooking times to prepare a roast that's moist, tender and delicious. Your roast should be covered with foil for the first half of the roasting time to prevent drying the outer layer.3 to 5lb Joint 1½ to 2 hours.reheat your oven to 160°C (325°F) and use these cooking times to prepare a roast that's moist, tender and delicious. Your roast should be covered with foil for the first half of the roasting time to prevent drying the outer layer.Estimating Cooking Time for Large Beef Roasts. If you roast at a steady 325F (160C), subtract 2 minutes or so per pound. If the roast is refrigerated just before going into the oven, add 2 or 3 minutes per pound. WARNING NOTES: Remember, the rib roast will continue to cook as it sets.[6.501978874206543, 8.214995384216309]definition of fire inspectionLearn how to do a monthly fire extinguisher inspection in your workplace. Departments must assign an individual to inspect monthly the extinguishers in or adjacent to the department's facilities.1 Read Fire Extinguisher Types and Maintenance for more information.earn how to do a monthly fire extinguisher inspection in your workplace. Departments must assign an individual to inspect monthly the extinguishers in or adjacent to the department's facilities.reconnaissance by fire-a method of reconnaissance in which fire is placed on a suspected enemy position in order to cause the enemy to disclose his presence by moving or returning fire. reconnaissance in force-an offensive operation designed to discover or test the enemy's strength (or to obtain other information). mission undertaken to obtain, by visual observation or other detection methods, information about the activities and resources of an enemy or potential enemy, or to secure data concerning the meteorological, hydrographic, or geographic characteristics of a particular area.[-0.38299351930618286, -0.9372650384902954]how many stores does family dollar haveProperty Spotlight: New Retail Center at Hamilton & Warner - Outlots Available!! Family Dollar is closing stores following a disappointing second quarter. Family Dollar Stores Inc. wonât just be cutting prices in an attempt to boost its business â itâll be closing stores as well. The Matthews, N.C.-based discount retailer plans to shutter 370 under-performing shops, according to the Charlotte Business Journal.Glassdoor has 1,976 Family Dollar Stores reviews submitted anonymously by Family Dollar Stores employees. Read employee reviews and ratings on Glassdoor to decide if Family Dollar Stores is right for you.[4.726407527923584, 8.284608840942383] - Loss:
SpladeLosswith these parameters:{ "loss": "SparseDistillKLDivLoss", "lambda_corpus": 0.0005, "lambda_query": 0.0005 }
Training Hyperparameters
Non-Default Hyperparameters
eval_strategy: stepsper_device_train_batch_size: 16per_device_eval_batch_size: 16learning_rate: 2e-05num_train_epochs: 1warmup_ratio: 0.1fp16: Truebatch_sampler: no_duplicates
All Hyperparameters
Click to expand
overwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 16per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_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: {}warmup_ratio: 0.1warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Truefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_dot_ndcg@10 | NanoNFCorpus_dot_ndcg@10 | NanoNQ_dot_ndcg@10 | NanoBEIR_mean_dot_ndcg@10 |
|---|---|---|---|---|---|---|---|
| 0.0162 | 100 | 740.7612 | - | - | - | - | - |
| 0.0323 | 200 | 81.8274 | - | - | - | - | - |
| 0.0485 | 300 | 3.1611 | - | - | - | - | - |
| 0.0646 | 400 | 1.9383 | - | - | - | - | - |
| 0.0808 | 500 | 1.7956 | 1.7327 | 0.2805 | 0.1513 | 0.3908 | 0.2742 |
| 0.0970 | 600 | 1.6644 | - | - | - | - | - |
| 0.1131 | 700 | 1.5398 | - | - | - | - | - |
| 0.1293 | 800 | 1.4235 | - | - | - | - | - |
| 0.1454 | 900 | 1.4624 | - | - | - | - | - |
| 0.1616 | 1000 | 1.3244 | 1.1400 | 0.5662 | 0.2998 | 0.5863 | 0.4841 |
| 0.1778 | 1100 | 1.1821 | - | - | - | - | - |
| 0.1939 | 1200 | 1.2095 | - | - | - | - | - |
| 0.2101 | 1300 | 1.0881 | - | - | - | - | - |
| 0.2262 | 1400 | 1.1491 | - | - | - | - | - |
| 0.2424 | 1500 | 1.168 | 1.0551 | 0.6060 | 0.3126 | 0.6056 | 0.5081 |
| 0.2586 | 1600 | 1.0935 | - | - | - | - | - |
| 0.2747 | 1700 | 1.0786 | - | - | - | - | - |
| 0.2909 | 1800 | 1.1056 | - | - | - | - | - |
| 0.3070 | 1900 | 1.1436 | - | - | - | - | - |
| 0.3232 | 2000 | 1.0218 | 0.8907 | 0.5920 | 0.3354 | 0.6111 | 0.5128 |
| 0.3394 | 2100 | 0.9593 | - | - | - | - | - |
| 0.3555 | 2200 | 0.9925 | - | - | - | - | - |
| 0.3717 | 2300 | 0.9882 | - | - | - | - | - |
| 0.3878 | 2400 | 0.9636 | - | - | - | - | - |
| 0.4040 | 2500 | 1.025 | 0.8440 | 0.5865 | 0.3321 | 0.6533 | 0.5240 |
| 0.4202 | 2600 | 0.9708 | - | - | - | - | - |
| 0.4363 | 2700 | 0.9555 | - | - | - | - | - |
| 0.4525 | 2800 | 0.9763 | - | - | - | - | - |
| 0.4686 | 2900 | 0.8565 | - | - | - | - | - |
| 0.4848 | 3000 | 0.8693 | 0.8088 | 0.6118 | 0.3286 | 0.6848 | 0.5417 |
| 0.5010 | 3100 | 0.8791 | - | - | - | - | - |
| 0.5171 | 3200 | 0.8137 | - | - | - | - | - |
| 0.5333 | 3300 | 0.9143 | - | - | - | - | - |
| 0.5495 | 3400 | 0.8605 | - | - | - | - | - |
| 0.5656 | 3500 | 0.9217 | 0.7712 | 0.6114 | 0.3152 | 0.6675 | 0.5314 |
| 0.5818 | 3600 | 0.8171 | - | - | - | - | - |
| 0.5979 | 3700 | 0.876 | - | - | - | - | - |
| 0.6141 | 3800 | 0.8307 | - | - | - | - | - |
| 0.6303 | 3900 | 0.8313 | - | - | - | - | - |
| 0.6464 | 4000 | 0.7933 | 0.7310 | 0.6311 | 0.3380 | 0.6596 | 0.5429 |
| 0.6626 | 4100 | 0.8123 | - | - | - | - | - |
| 0.6787 | 4200 | 0.8139 | - | - | - | - | - |
| 0.6949 | 4300 | 0.8029 | - | - | - | - | - |
| 0.7111 | 4400 | 0.7854 | - | - | - | - | - |
| 0.7272 | 4500 | 0.8107 | 0.6988 | 0.6259 | 0.3296 | 0.6612 | 0.5389 |
| 0.7434 | 4600 | 0.8031 | - | - | - | - | - |
| 0.7595 | 4700 | 0.7612 | - | - | - | - | - |
| 0.7757 | 4800 | 0.7679 | - | - | - | - | - |
| 0.7919 | 4900 | 0.8071 | - | - | - | - | - |
| 0.8080 | 5000 | 0.7565 | 0.6634 | 0.6169 | 0.3470 | 0.6652 | 0.5430 |
| 0.8242 | 5100 | 0.7483 | - | - | - | - | - |
| 0.8403 | 5200 | 0.7114 | - | - | - | - | - |
| 0.8565 | 5300 | 0.8123 | - | - | - | - | - |
| 0.8727 | 5400 | 0.7349 | - | - | - | - | - |
| 0.8888 | 5500 | 0.7094 | 0.6636 | 0.6433 | 0.3493 | 0.6522 | 0.5483 |
| 0.9050 | 5600 | 0.7688 | - | - | - | - | - |
| 0.9211 | 5700 | 0.7421 | - | - | - | - | - |
| 0.9373 | 5800 | 0.7302 | - | - | - | - | - |
| 0.9535 | 5900 | 0.7191 | - | - | - | - | - |
| 0.9696 | 6000 | 0.7437 | 0.6477 | 0.6429 | 0.3511 | 0.6438 | 0.5460 |
| 0.9858 | 6100 | 0.7541 | - | - | - | - | - |
| -1 | -1 | - | - | 0.6336 | 0.3503 | 0.6474 | 0.5438 |
Environmental Impact
Carbon emissions were measured using CodeCarbon.
- Energy Consumed: 0.218 kWh
- Carbon Emitted: 0.085 kg of CO2
- Hours Used: 0.603 hours
Training Hardware
- On Cloud: No
- GPU Model: 1 x NVIDIA GeForce RTX 3090
- CPU Model: 13th Gen Intel(R) Core(TM) i7-13700K
- RAM Size: 31.78 GB
Framework Versions
- Python: 3.11.6
- Sentence Transformers: 4.2.0.dev0
- Transformers: 4.52.4
- PyTorch: 2.7.1+cu126
- Accelerate: 1.5.1
- Datasets: 2.21.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",
}
SpladeLoss
@misc{formal2022distillationhardnegativesampling,
title={From Distillation to Hard Negative Sampling: Making Sparse Neural IR Models More Effective},
author={Thibault Formal and Carlos Lassance and Benjamin Piwowarski and Stéphane Clinchant},
year={2022},
eprint={2205.04733},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2205.04733},
}
SparseDistillKLDivLoss
@misc{lin2020distillingdenserepresentationsranking,
title={Distilling Dense Representations for Ranking using Tightly-Coupled Teachers},
author={Sheng-Chieh Lin and Jheng-Hong Yang and Jimmy Lin},
year={2020},
eprint={2010.11386},
archivePrefix={arXiv},
primaryClass={cs.IR},
url={https://arxiv.org/abs/2010.11386},
}
FlopsLoss
@article{paria2020minimizing,
title={Minimizing flops to learn efficient sparse representations},
author={Paria, Biswajit and Yeh, Chih-Kuan and Yen, Ian EH and Xu, Ning and Ravikumar, Pradeep and P{'o}czos, Barnab{'a}s},
journal={arXiv preprint arXiv:2004.05665},
year={2020}
}