MPNet base trained on GooAQ using QAT with InfoNCE
This is a
sentence-transformers
model finetuned from
microsoft/mpnet-base
on the
gooaq
dataset. 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.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("hotchpotch/mpnet-base-gooaq-qat")
# Run inference
queries = [
"is duchenne muscular dystrophy a dominant or recessive trait?",
]
documents = [
'Duchenne muscular dystrophy is inherited in an X-linked recessive pattern. Males have only one copy of the X chromosome from their mother and one copy of the Y chromosome from their father. If their X chromosome has a DMD gene mutation, they will have Duchenne muscular dystrophy.',
'The dream suggests captivity and it refers to your fear of punishment. Another interpretation of this dream refers to a need to do what you feel is right in waking life. Being in jail suggests that your feelings may be trapped by a limited mind and body. ... Jail also suggests repressed feelings.',
"An automatic transmission will downshift for you when you drive uphill. However, for moderately steep slopes, it's wise to shift to the gear range marked D2, 2, or L to ascend and descend the hill. For steep slopes that you can't ascend at a speed faster than 10 mph (about 15 kph), shift to D1 or 1.",
]
query_embeddings = model.encode_query(queries)
document_embeddings = model.encode_document(documents)
print(query_embeddings.shape, document_embeddings.shape)
# [1, 768] [3, 768]# Get the similarity scores for the embeddings
similarities = model.similarity(query_embeddings, document_embeddings)
print(similarities)
# tensor([[0.8254, 0.1650, 0.1802]])
Evaluation
Metrics
Information Retrieval
Datasets:
gooaq-dev-float32
,
gooaq-dev-int8
and
gooaq-dev-binary
Approximate statistics based on the first 1000 samples:
question
answer
type
string
string
details
min: 8 tokens
mean: 11.83 tokens
max: 20 tokens
min: 15 tokens
mean: 60.45 tokens
max: 180 tokens
Samples:
question
answer
how long does halifax take to transfer mortgage funds?
Bear in mind that the speed of application will vary depending on your own personal circumstances and the lender's present day-to-day performance. In some cases, applications can be approved by the lender within 24 hours, while some can take weeks or even months.
can you get a false pregnancy test?
In very rare cases, you can have a false-positive result. This means you're not pregnant but the test says you are. You could have a false-positive result if you have blood or protein in your pee. Certain drugs, such as tranquilizers, anticonvulsants, hypnotics, and fertility drugs, could cause false-positive results.
are ahead of its time?
Definition of ahead of one's/its time : too advanced or modern to be understood or appreciated during the time when one lives or works As a director, he was ahead of his time.
Approximate statistics based on the first 1000 samples:
question
answer
type
string
string
details
min: 8 tokens
mean: 11.93 tokens
max: 25 tokens
min: 14 tokens
mean: 60.84 tokens
max: 127 tokens
Samples:
question
answer
should you take ibuprofen with high blood pressure?
In general, people with high blood pressure should use acetaminophen or possibly aspirin for over-the-counter pain relief. Unless your health care provider has said it's OK, you should not use ibuprofen, ketoprofen, or naproxen sodium. If aspirin or acetaminophen doesn't help with your pain, call your doctor.
how old do you have to be to work in sc?
The general minimum age of employment for South Carolina youth is 14, although the state allows younger children who are performers to work in show business. If their families are agricultural workers, children younger than age 14 may also participate in farm labor.
how to write a topic proposal for a research paper?
['Write down the main topic of your paper. ... ', 'Write two or three short sentences under the main topic that explain why you chose that topic. ... ', 'Write a thesis sentence that states the angle and purpose of your research paper. ... ', 'List the items you will cover in the body of the paper that support your thesis statement.']
@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",
}
QuantizationAwareLoss
@article{jacob2018quantization,
title={Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inference},
author={Jacob, Benoit and Kligys, Skirmantas and Chen, Bo and Zhu, Menglong and Tang, Matthew and Howard, Andrew and Adam, Hartwig and Kalenichenko, Dmitry},
journal={arXiv preprint arXiv:1712.05877},
year={2018}
}
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}
}
Runs of hotchpotch mpnet-base-gooaq-qat on huggingface.co
0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About mpnet-base-gooaq-qat huggingface.co Model
mpnet-base-gooaq-qat huggingface.co is an AI model on huggingface.co that provides mpnet-base-gooaq-qat's model effect (), which can be used instantly with this hotchpotch mpnet-base-gooaq-qat model. huggingface.co supports a free trial of the mpnet-base-gooaq-qat model, and also provides paid use of the mpnet-base-gooaq-qat. Support call mpnet-base-gooaq-qat model through api, including Node.js, Python, http.
mpnet-base-gooaq-qat huggingface.co is an online trial and call api platform, which integrates mpnet-base-gooaq-qat's modeling effects, including api services, and provides a free online trial of mpnet-base-gooaq-qat, you can try mpnet-base-gooaq-qat online for free by clicking the link below.
hotchpotch mpnet-base-gooaq-qat online free url in huggingface.co:
mpnet-base-gooaq-qat is an open source model from GitHub that offers a free installation service, and any user can find mpnet-base-gooaq-qat on GitHub to install. At the same time, huggingface.co provides the effect of mpnet-base-gooaq-qat install, users can directly use mpnet-base-gooaq-qat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
mpnet-base-gooaq-qat install url in huggingface.co: