jjduquec's picture
End of training
397dbdd verified
|
Raw History Blame Contribute Delete
18.4 kB
---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:306636
- loss:TripletLoss
base_model: sentence-transformers/all-MiniLM-L6-v2
widget:
- source_sentence: What are the benefits of sauna for both the body and mind, and
how do different types of sauna rooms, such as wood burning, heat rocks, and electric
heaters, warmed to temperatures between 150 F and 195 F, contribute to these benefits?
sentences:
- Sauna is a type of therapeutic therapy for both the body and the mind. It reduces
inflammation in your body, it rids your body of toxins, good for heart health,
reduces allergies and helps with sleep to name a few. Different sauna types like
wood burning, heat rocks and electric heathers can warm the sauna rooms to different
temperatures ranging from 150 F to 195 F. You can choose any one depends on how
tolerable you are to heat.
- The answer depends on the intended application. For instance, R is more suitable
for statistical analysis and data parsing, while Python is often used for production
applications, including machine learning.
- Sauna is a type of recreational activity that has limited benefits for the body
and mind. While it can be enjoyable, it does not have a significant impact on
reducing inflammation, detoxification, or improving heart health. Different sauna
types and temperatures can be used, but the overall effect is largely the same.
- source_sentence: hey, can you tell me what britain was named before, you know, it
became britain?
sentences:
- The original name of Britain was Britannia.
- Albion
- Maareech Advanced Torpedo Defence System (ATDS) is a torpedo detection and countermeasure
system used by the Indian Navy. The system offers a complete solution to detect
and locate an incoming torpedo and to apply countermeasures to protect naval platform
against torpedo attack. It was developed as a joint project of the Naval Physical
and Oceanographic Laboratory (NPOL), Kochi and the Naval Science and Technological
Laboratory (NSTL), Visakhapatnam. Bharat Electronics is manufacturing it India.
- source_sentence: How do I get better at the game of golf?
sentences:
- 'To get better at golf, focus on building a strong foundation in three key principles:
swing speed, ball flight, and equipment quality.'
- Red roses are a timeless symbol of romance and love.
- 'Improving at golf requires a solid foundation in four key areas: realistic expectations,
effective course strategy, proper practice, and a strong mental game.'
- source_sentence: who is john melo i need to no accrding to the text thats provided
sentences:
- John Melo is a Filipino singer and songwriter. He won the 1993 Awit Awards for
Best New Male Performance. After a long absence from the music scene, he returned
in 2017 with his new song Malapit Na Ang Pasko. He is also a U.S Correspondent
and a sports news writer
- GitHub Actions usage is free for standard GitHub-hosted runners in public repositories,
and for self-hosted runners. For private repositories, each GitHub account receives
a certain amount of free minutes and storage for use with GitHub-hosted runners,
depending on the product used with the account.
- John Melo is a renowned sports news writer who has won several awards for his
journalism. He is known for his in-depth analysis and commentary on various sports
events.
- source_sentence: Explain ZMOT, also known as Zero Moment of Truth. And then tell
me the difference between that & the 3-step model marketing, whatever was prevalent
back in the day
sentences:
- The 3-step model of marketing, which was widely used until the introduction of
ZMOT, involves the consumer becoming aware of a product's features, then experiencing
the first moment of truth (FMOT) at the point of product demonstration, and finally
the second moment of truth (SMOT) when they decide to recommend the product to
friends. ZMOT, on the other hand, occurs between the initial awareness and FMOT,
and involves the consumer seeking out more information about the product's accessories.
- The traditional 3-step model of marketing, introduced by P&G, consists of the
consumer discovering a product, followed by the first moment of truth (FMOT) where
the consumer evaluates the product, and finally the second moment of truth (SMOT)
where the consumer purchases and uses the product. ZMOT, or Zero Moment of Truth,
refers to the period between the initial discovery and FMOT, where the consumer
researches and learns more about the product
- The exact cause of multiple myeloma is unknown, but certain risk factors, such
as obesity, radiation exposure, family history, and exposure to certain chemicals,
have been identified.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2). It maps sentences & paragraphs to a 384-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:** [sentence-transformers/all-MiniLM-L6-v2](https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2) <!-- at revision c9745ed1d9f207416be6d2e6f8de32d1f16199bf -->
- **Maximum Sequence Length:** 256 tokens
- **Output Dimensionality:** 384 dimensions
- **Similarity Function:** Cosine Similarity
<!-- - **Training Dataset:** Unknown -->
<!-- - **Language:** Unknown -->
<!-- - **License:** Unknown -->
### Model Sources
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
### Full Model Architecture
```
SentenceTransformer(
(0): Transformer({'max_seq_length': 256, 'do_lower_case': False}) with Transformer model: BertModel
(1): Pooling({'word_embedding_dimension': 384, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
(2): Normalize()
)
```
## Usage
### Direct Usage (Sentence Transformers)
First install the Sentence Transformers library:
```bash
pip install -U sentence-transformers
```
Then you can load this model and run inference.
```python
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'Explain ZMOT, also known as Zero Moment of Truth. And then tell me the difference between that & the 3-step model marketing, whatever was prevalent back in the day',
'The traditional 3-step model of marketing, introduced by P&G, consists of the consumer discovering a product, followed by the first moment of truth (FMOT) where the consumer evaluates the product, and finally the second moment of truth (SMOT) where the consumer purchases and uses the product. ZMOT, or Zero Moment of Truth, refers to the period between the initial discovery and FMOT, where the consumer researches and learns more about the product',
"The 3-step model of marketing, which was widely used until the introduction of ZMOT, involves the consumer becoming aware of a product's features, then experiencing the first moment of truth (FMOT) at the point of product demonstration, and finally the second moment of truth (SMOT) when they decide to recommend the product to friends. ZMOT, on the other hand, occurs between the initial awareness and FMOT, and involves the consumer seeking out more information about the product's accessories.",
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
<!--
### Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details>
-->
<!--
### Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details>
-->
<!--
### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
-->
<!--
## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
-->
<!--
### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
-->
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 306,636 training samples
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string | string |
| details | <ul><li>min: 6 tokens</li><li>mean: 22.27 tokens</li><li>max: 100 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 64.64 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 36.54 tokens</li><li>max: 189 tokens</li></ul> |
* Samples:
| anchor | positive | negative |
|:-------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------|
| <code>How is cryogenics used in the study and treatment of viruses in virology?</code> | <code>Certain vaccines must be only stored at cryogenic temperature (ultra low temperatures of order -90 to -60 degree celcius / -130 F to -76 F)</code> | <code>Certain vaccines must be stored at refrigerated temperatures, ranging from 2 to 8 degrees Celsius, to maintain their potency.</code> |
| <code>I would like to know the domestication status of these animals: cats, dogs, sheep, whales, bats, and bald eagles.</code> | <code>Among the listed animals, cats, dogs, and sheep have undergone domestication, while bald eagles, whales, and bats have not.</code> | <code>Among the listed animals, cats, dogs, and bats have undergone domestication, while bald eagles, whales, and sheep have not.</code> |
| <code>I need to know who was winner of mens 2022 fifa world cup and where did it happen</code> | <code>The men's 2022 FIFA world cup was located in Qatar. Argentina won the world cup, beating France on penalties after drawing 3-3 during the game.</code> | <code>France won the men's 2022 FIFA World Cup, which was held in Qatar.</code> |
* Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
```json
{
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
"triplet_margin": 5
}
```
### Evaluation Dataset
#### Unnamed Dataset
* Size: 16,103 evaluation samples
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
* Approximate statistics based on the first 1000 samples:
| | anchor | positive | negative |
|:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string | string |
| details | <ul><li>min: 5 tokens</li><li>mean: 20.67 tokens</li><li>max: 107 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 64.41 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 34.83 tokens</li><li>max: 168 tokens</li></ul> |
* Samples:
| anchor | positive | negative |
|:-------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| <code>I dont know anything about ironman can you tell me how many miles is the triathlon?</code> | <code>The total distance of an Ironman triathlon is 140.6 miles, consisting of a 2.4-mile swim, a 112-mile bike ride, and a 26.2-mile run.</code> | <code>An Ironman triathlon covers a total distance of around 160 miles, broken down into a 3.8-mile swim, a 120-mile bike segment, and a 36-mile run.</code> |
| <code>what is this meetup group business all about</code> | <code>Meetup events are real-life gatherings where members and organizers get together to connect, discuss, and practice activities related to their shared interests.</code> | <code>Meetup events are online gatherings where members and organizers connect, discuss, and practice activities related to their shared interests.</code> |
| <code>what exactly is gettysburg college? i need to know about it</code> | <code>Gettysburg College is a privately funded liberal arts institution in Gettysburg, Pennsylvania, known for its historical significance in the Battle of Gettysburg during the American Civil War.</code> | <code>Gettysburg College is a privately funded university in Gettysburg, Pennsylvania, known for its historical significance in the Battle of Gettysburg during World War I.</code> |
* Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
```json
{
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
"triplet_margin": 5
}
```
### Framework Versions
- Python: 3.12.3
- Sentence Transformers: 4.1.0
- Transformers: 4.52.3
- PyTorch: 2.6.0+cu124
- Accelerate: 1.7.0
- Datasets: 3.6.0
- Tokenizers: 0.21.1
## Citation
### BibTeX
#### Sentence Transformers
```bibtex
@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",
}
```
#### TripletLoss
```bibtex
@misc{hermans2017defense,
title={In Defense of the Triplet Loss for Person Re-Identification},
author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
year={2017},
eprint={1703.07737},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
```
<!--
## Glossary
*Clearly define terms in order to be accessible across audiences.*
-->
<!--
## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
-->
<!--
## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
-->