---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:439290
- loss:DualThresholdEnforcedMNRL1
base_model: flax-sentence-embeddings/all_datasets_v4_MiniLM-L6
widget:
- source_sentence: compression therapy benefits
sentences:
- 'edema: what is, causes, symptoms, and treatment'
- How VIN Data Enhances Market Value Assessments
- Daily Iron Intake from Leafy Greens and Fortified Cereals
- source_sentence: liver function improvement tips
sentences:
- Antioxidants' Role in Liver Enzyme Regulation
- Vitamin K2 and Its Role in Artery Calcification
- Fatty Acids' Role in Liver Health
- source_sentence: back pain prevention exercises
sentences:
- 'Medication Side Effects: Dizziness, Fatigue, and More'
- 'Strengthening Moves: Lunges, Squats, and Leg Raises'
- 'Natural Anti-Inflammatories: Foods That May Help'
- source_sentence: weekly ad shopping tips
sentences:
- Investor Responses to Surplus Capital in Tech Firms
- How Glycemic Index Affects Blood Sugar Levels
- Evaluating Household Essentials Promotions in Weekly Circulars
- source_sentence: vitamin B12 for nerve health
sentences:
- 'Minoxidil: Side Effects and Use Cases'
- Emerging Patterns in Roblox Code Distribution Channels
- The Role of Magnesium in Muscle and Nerve Function
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on flax-sentence-embeddings/all_datasets_v4_MiniLM-L6
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [flax-sentence-embeddings/all_datasets_v4_MiniLM-L6](https://huggingface.co/flax-sentence-embeddings/all_datasets_v4_MiniLM-L6). 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:** [flax-sentence-embeddings/all_datasets_v4_MiniLM-L6](https://huggingface.co/flax-sentence-embeddings/all_datasets_v4_MiniLM-L6)
- **Maximum Sequence Length:** 128 tokens
- **Output Dimensionality:** 384 dimensions
- **Similarity Function:** Cosine Similarity
### 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': 128, '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("Auto-opts/flax-TMNRLB_CVR")
# Run inference
sentences = [
'vitamin B12 for nerve health',
'The Role of Magnesium in Muscle and Nerve Function',
'Emerging Patterns in Roblox Code Distribution Channels',
]
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]
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 439,290 training samples
* Columns: sentence_0, sentence_1, and label
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 | label |
|:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------|
| type | string | string | float |
| details |
common UTI misconceptions | How Antibiotics Like Fosfomycin Target Infections | 1.0 |
| diuretics for swelling | Venous Insufficiency and Its Impact on Leg Swelling | 1.0 |
| pelvic floor exercises benefits | Testosterone Levels and Their Impact on Erectile Health | 1.0 |
* Loss: __main__.DualThresholdEnforcedMNRL1
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 90
- `per_device_eval_batch_size`: 90
- `num_train_epochs`: 5
- `batch_sampler`: no_duplicates
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters