---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- dense
- generated_from_trainer
- dataset_size:269012
- loss:CoSENTLoss
base_model: intfloat/e5-large-v2
widget:
- source_sentence: smart cutting machine for crafts
sentences:
- HyperX Cloud Alpha Wireless Gaming Headset
- Rubbermaid Brilliance 20-Piece Food Storage Set
- Men's Wick Short Sleeve Crew - Light Merino Wool Camo Hunting Shirt, UV Protection
Moisture Management Base Layer
- source_sentence: high capacity portable hard drive
sentences:
- Mr. Heater Big Buddy Portable Propane Heater
- Samsung Galaxy Watch 5 Pro
- Sun Bum Original SPF 45 Sunscreen Mist - Broad Spectrum Moisturizing Facial Sunscreen
Spray with Vitamin E - Hawaii 104 Act Compliant (Made without Octinoxate & Oxybenzone)
- Travel Friendly - 3.4 oz
- source_sentence: fluid acrylics for pouring art
sentences:
- Linen Suit for Men 2 Pieces Slim Fit Casual Suits Groomsmen Tuxedos Wedding Party
Blazer Pants Set Beige
- Mejuri Small Hoop Earrings in Gold
- Singer Start 1304 Sewing Machine
- source_sentence: premium wireless gaming headset
sentences:
- Vornado MVH Whole Room Heater
- Westinghouse 11000 Peak Watt Tri-Fuel Portable Inverter Generator, Remote Start,
Transfer Switch Ready, Gas/Propane/Natural Gas Powered, Low THD, Safe for Electronics,
Parallel Capable, CO Sensor
- Rattaner Patio Wicker Furniture Set 6 Pieces Outdoor HDPE Wicker Conversation
Couch Sectional Chair Sofa Set with Grey Cushions
- source_sentence: travel system with stroller and car seat
sentences:
- Chemex Classic Series Pour-Over Glass Coffeemaker
- David Yurman Cable Classic Bracelet
- Legion Stonehenge Paper Pad
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on intfloat/e5-large-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/e5-large-v2](https://huggingface.co/intfloat/e5-large-v2). It maps sentences & paragraphs to a 1024-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:** [intfloat/e5-large-v2](https://huggingface.co/intfloat/e5-large-v2)
- **Maximum Sequence Length:** 512 tokens
- **Output Dimensionality:** 1024 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': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 1024, '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 = [
'travel system with stroller and car seat',
'Chemex Classic Series Pour-Over Glass Coffeemaker',
'Legion Stonehenge Paper Pad',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.5295, 0.5210],
# [0.5295, 1.0000, 0.5429],
# [0.5210, 0.5429, 1.0000]])
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 269,012 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 |
razor set with handle and blades | Hahnemühle Watercolor Journal | -0.8008412511835391 |
| mini perfume atomizer for refillable travel scent | LISAPACK Perfume Travel Refillable Bottle - Atomizer Cologne Spray for Men Portable - Mini Sprayer Empty for Refill - Small Size 8ML Striped (Grey, Black, Silver) | 0.85625 |
| pour-over glass coffeemaker | Shark Navigator Lift-Away Professional NV356E Vacuum | 0.131319533933279 |
* Loss: [CoSENTLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosentloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "pairwise_cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 32
- `per_device_eval_batch_size`: 32
- `num_train_epochs`: 1
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters