---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- dense
- generated_from_trainer
- dataset_size:42272
- loss:MultipleNegativesRankingLoss
base_model: BAAI/bge-large-en-v1.5
widget:
- source_sentence: Pegasus standing right
sentences:
- Concordia standing with cornucopia and branch, head facing right.
- Pegasus walking right
- Victory advancing left, holding wreath and palm-branch.
- source_sentence: Felicitas seated left, holding caduceus in right hand and cornucopia
cradled in left arm, SMT in exergue
sentences:
- Providentia draped standing facing, looking left, holding a globe in the right
hand and a transverse sceptre in the left.
- Victory walking left, holding a palm and a crown.
- Genius standing left, holding patera and cornucopia; two stars in left field;
crescent over Z in right; ANT in exergue.
- source_sentence: Armored bust of Mars with helmet to the right, seen from the front.
sentences:
- Emperor in field dress with Victoria on globe and labarum standing to the right,
left foot on a lying, bound prisoner.
- Roma, helmeted and draped, standing left, holding a globe topped with a phoenix
in the right hand and a transverse sceptre in the left; behind, a shield.
- Eagle standing facing with wings spread, head left
- source_sentence: Prow of galley right
sentences:
- Salus seated left, feeding from patera a serpent rising from altar.
- The Dea Caelestis riding right on a lion, holding a drum in right hand and scepter
in left; below, water gushing from rock with inscription IN CARTH.
- Galley sailing to the left with rowers.
- source_sentence: Providentia standing left, holding globe and cornucopiae
sentences:
- Fides Milites seated left
- Jupiter to the left and Hercules to the right, standing face to face shaking hands;
Jupiter holds a long spear in his left hand with cloak flowing over his right
shoulder; Hercules holds his club in his left hand around which the lion skin
is wrapped.
- Sol in quadriga left, holding globe and whip, raising right hand, R thunderbolt
Γ in ex.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on BAAI/bge-large-en-v1.5
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5). 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:** [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5)
- **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/huggingface/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': True, 'architecture': 'BertModel'})
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, '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 = [
'Providentia standing left, holding globe and cornucopiae',
'Fides Milites seated left',
'Jupiter to the left and Hercules to the right, standing face to face shaking hands; Jupiter holds a long spear in his left hand with cloak flowing over his right shoulder; Hercules holds his club in his left hand around which the lion skin is wrapped.',
]
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.3315, 0.3332],
# [0.3315, 1.0000, 0.3473],
# [0.3332, 0.3473, 1.0000]])
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 42,272 training samples
* Columns: sentence_0 and sentence_1
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string |
| details |
Felicitas standing to the left holding a caduceus and cornucopia. | Felicitas standing with caduceus and cornucopia. |
| S P Q R/OB/C S in three lines within oak wreath | Legend in three lines within oak wreath |
| Iustitia seated to the left holding patera and scepter | Iustitia seated to the left holding patera and scepter. |
* Loss: [MultipleNegativesRankingLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `eval_strategy`: steps
- `per_device_train_batch_size`: 16
- `per_device_eval_batch_size`: 16
- `num_train_epochs`: 1
- `max_steps`: 2642
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters