This is a SPLADE sparse retrieval model based on BERT-Mini (11M) that was trained by distilling a Cross-Encoder on the MSMARCO dataset. The cross-encoder used was
ms-marco-MiniLM-L6-v2
.
This mini SPLADE model is
6x
smaller than Naver's official
splade-v3-distilbert
while having
85%
of it's performance on the MSMARCO benchmark. This model is small enough to be used without a GPU on a dataset of a few thousand documents.
The splade models were evaluated on 55 thousand queries and 8 million documents from the
MSMARCO
dataset.
Size (# Params)
MRR@10 (MS MARCO dev)
BM25
-
18.6
rasyosef/splade-tiny
4.4M
30.8
rasyosef/splade-mini
11.2M
32.8
naver/splade-v3-distilbert
67.0M
38.7
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("rasyosef/splade-mini")
# Run inference
queries = [
"definition of fermentation in the lab",
]
documents = [
'Fermentation is a metabolic pathway that produce ATP molecules under anaerobic conditions (only undergoes glycolysis), NAD+ is used directly in glycolysis to form ATP molecules, which is not as efficient as cellular respiration because only 2ATP molecules are formed during the glycolysis.',
'Essay on Yeast Fermentation ... Yeast Fermentation Lab Report The purpose of this experiment was to observe the process in which cells must partake in a respiration process called anaerobic fermentation and as the name suggests, oxygen is not required.',
'\ufeffYeast Fermentation Lab Report The purpose of this experiment was to observe the process in which cells must partake in a respiration process called anaerobic fermentation and as the name suggests, oxygen is not required.',
]
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([[20.0220, 17.1372, 15.9159]])
Approximate statistics based on the first 1000 samples:
query
positive
negative_1
negative_2
negative_3
negative_4
label
type
string
string
string
string
string
string
list
details
min: 4 tokens
mean: 8.87 tokens
max: 43 tokens
min: 24 tokens
mean: 81.23 tokens
max: 259 tokens
min: 20 tokens
mean: 79.21 tokens
max: 197 tokens
min: 20 tokens
mean: 77.89 tokens
max: 207 tokens
min: 18 tokens
mean: 76.38 tokens
max: 271 tokens
min: 18 tokens
mean: 75.46 tokens
max: 214 tokens
size: 4 elements
Samples:
query
positive
negative_1
negative_2
negative_3
negative_4
label
heart specialists in ridgeland ms
Dr. George Reynolds Jr, MD is a cardiology specialist in Ridgeland, MS and has been practicing for 35 years. He graduated from Vanderbilt University School Of Medicine in 1977 and specializes in cardiology and internal medicine.
Dr. James Kramer is a Internist in Ridgeland, MS. Find Dr. Kramer's phone number, address and more.
Dr. James Kramer is an internist in Ridgeland, Mississippi. He received his medical degree from Loma Linda University School of Medicine and has been in practice for more than 20 years. Dr. James Kramer's Details
A growing shortage of primary care doctors means you might have to look harder for ongoing care. How to Read an OTC Medication Label Purvi Parikh, M.D.
Feb. 12, 2018
does baytril otic require a prescription
Baytril Otic Ear Drops-Enrofloxacin/Silver Sulfadiazine-Prices & Information. A prescription is required for this item. A prescription is required for this item. Brand medication is not available at this time.
RX required for this item. Click here for our full Prescription Policy and Form. Baytril Otic (enrofloxacin/silver sulfadiazine) Emulsion from Bayer is the first fluoroquinolone approved by the Food and Drug Administration for the topical treatment of canine otitis externa.
Product Details. Baytril Otic is a highly effective treatment prescribed by many veterinarians when your pet has an ear infection caused by susceptible bacteria or fungus. Baytril Otic is: a liquid emulsion that is used topically directly in the ear or on the skin in order to treat susceptible bacterial and yeast infections.
Baytril for dogs is an antibiotic often prescribed for bacterial infections, particularly those involving the ears. Ear infections are rare in many animals, but quite common in dogs. This is particularly true for dogs with long droopy ears, where it will stay very warm and moist.
Administer 5-10 Baytril ear drops per treatment in dogs 35 lbs or less and 10-15 drops per treatment in dogs more than 35 lbs.
Report Abuse. Gyros or gyro (giros) (pronounced /ˈjɪəroʊ/ or /ˈdʒaɪroʊ/, Greek: γύρος turn) is a Greek dish consisting of meat (typically lamb and/or beef), tomato, onion, and tzatziki sauce, and is served with pita bread. Chicken and pork meat can be used too.
A gyroscope (from Ancient Greek γῦρος gûros, circle and σκοπέω skopéō, to look) is a spinning wheel or disc in which the axis of rotation is free to assume any orientation by itself. When rotating, the orientation of this axis is unaffected by tilting or rotation of the mounting, according to the conservation of angular momentum.
Diagram of a gyro wheel. Reaction arrows about the output axis (blue) correspond to forces applied about the input axis (green), and vice versa. A gyroscope is a wheel mounted in two or three gimbals, which are a pivoted supports that allow the rotation of the wheel about a single axis.
A fair number of our users are unsure of how to pronounce gyro. This isn't surprising, since there are two different gyros and they have two different pronunciations. The earlier gyro is the one that is a shortened form of gyrocompass or gyroscope, and it has a pronunciation that conforms to one's expectations: /JEYE-roh/.
Vibration Gyro Sensors. Vibration gyro sensors sense angular velocity from the Coriolis force applied to a vibrating element. For this reason, the accuracy with which angular velocity is measured differs significantly depending on element material and structural differences.
@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},
}
SparseMarginMSELoss
@misc{hofstätter2021improving,
title={Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillation},
author={Sebastian Hofstätter and Sophia Althammer and Michael Schröder and Mete Sertkan and Allan Hanbury},
year={2021},
eprint={2010.02666},
archivePrefix={arXiv},
primaryClass={cs.IR}
}
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}
}
Runs of rasyosef splade-mini on huggingface.co
659
Total runs
0
24-hour runs
0
3-day runs
94
7-day runs
598
30-day runs
More Information About splade-mini huggingface.co Model
splade-mini huggingface.co is an AI model on huggingface.co that provides splade-mini's model effect (), which can be used instantly with this rasyosef splade-mini model. huggingface.co supports a free trial of the splade-mini model, and also provides paid use of the splade-mini. Support call splade-mini model through api, including Node.js, Python, http.
splade-mini huggingface.co is an online trial and call api platform, which integrates splade-mini's modeling effects, including api services, and provides a free online trial of splade-mini, you can try splade-mini online for free by clicking the link below.
rasyosef splade-mini online free url in huggingface.co:
splade-mini is an open source model from GitHub that offers a free installation service, and any user can find splade-mini on GitHub to install. At the same time, huggingface.co provides the effect of splade-mini install, users can directly use splade-mini installed effect in huggingface.co for debugging and trial. It also supports api for free installation.