---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:9712
- loss:TripletLoss
base_model: Syldehayem/all-MiniLM-L12-v2_embedder_train
widget:
- source_sentence: CGI 3D Animated Short "The Scarf" - by Team The Scarf
sentences:
- 'CGI 3D Short: "Lenovo Legion: Turning Point" - by Audis Huang & Moonshine Animation
| TheCGBros'
- 'CGI Animated Trailers : "Dropzone" - by RealtimeUK'
- 'CGI 3D Animated Short: "SOLVIVAL" - by Pixelhunters | TheCGBros'
- source_sentence: CGI Animated Short Film HD "Terazia's Zoo " by Alison Dulou & Estelle
Lefebvre | CGMeetup
sentences:
- A comedian puppet decides to branch out on his own / You're The Puppet
- Horror Short Film Series “The Outer Darkness” Part 1 | ALTER
- ERNIE | Omeleto
- source_sentence: Kenneth Branagh in the thriller "Schneider's 2nd Stage" - Short
film by Phil Stoole
sentences:
- 'CGI 3D Animated Short Film: "Fish in LOVE" by ISArt Digital | @CGMeetup'
- Cookies By The Fire Short Horror Film | Screamfest | Merry Christmas
- 'CGI 3D Animated Spot: "Mantse Palm Wine" - by Arnold Bannerman | TheCGBros'
- source_sentence: The Portrait
sentences:
- A teenage girl must quickly adapt to a radically different urban environment |
Barrio Frontera
- Queen of Meatloaf | Short film tease
- 'CGI 3D Tutorial : "Using Zapplink in Zbrush" - by 3dmotive'
- source_sentence: Horror Short Film "Nice to Finally Meet You" | ALTER | Online Premiere
sentences:
- 'Mondays: The Spielberg Challenge Winner!'
- 'The Curse of Pandora''s Box Returns to #UniversalHHN 2021'
- SONS OF APRIL | Omeleto
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on Syldehayem/all-MiniLM-L12-v2_embedder_train
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Syldehayem/all-MiniLM-L12-v2_embedder_train](https://huggingface.co/Syldehayem/all-MiniLM-L12-v2_embedder_train). 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:** [Syldehayem/all-MiniLM-L12-v2_embedder_train](https://huggingface.co/Syldehayem/all-MiniLM-L12-v2_embedder_train)
- **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("Syldehayem/all-MiniLM-L12-v2_embedder_train")
# Run inference
sentences = [
'Horror Short Film "Nice to Finally Meet You" | ALTER | Online Premiere',
"The Curse of Pandora's Box Returns to #UniversalHHN 2021",
'Mondays: The Spielberg Challenge Winner!',
]
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: 9,712 training samples
* Columns: sentence_0, sentence_1, and sentence_2
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 | sentence_2 |
|:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string | string |
| details |
মেয়ে যখন মায়ের মতন | Bidhilipi | #Shorts | Bengali Family Drama | CGI 3D Animated Shorts: "Rust" - by Matthieu Druaud | Mukhyamantri | মুখ্যমন্ত্রী | Bengali Movie Part – 3/12 |
| A Sci-Fi Short Film: "Voltok" - by Jonathan Vleeschower | TheCGBros | CGI MoCap Demo : "Finger Mocap Without Any Post Animation" by the MocapLab | A MAN DEPARTED | Omeleto Drama |
| LEAKY PIPES | Taking care of a baby at 15 | "Fifteen" - Short film by Sameh Alaa | CGI VFX Spot : "Black Beetle" by - The MILL |
* Loss: [TripletLoss](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
```json
{
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
"triplet_margin": 5
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 16
- `per_device_eval_batch_size`: 16
- `num_train_epochs`: 50
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters