---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:9712
- loss:TripletLoss
base_model: sentence-transformers/all-MiniLM-L6-v2
widget:
- source_sentence: Live Action Animation Effect from Spider-Man Across The Spider-Verse
sentences:
- PANDEMONIUM - Animation Short Film 2023 - GOBELINS
- Rakhal Raja | রাখাল রাজা | Bengali Movie – 6/14 | Chiranjeet
- 'CGI Animated Short Film: "Song for a Wooden Heart" by The Inklings | CGMeetup'
- source_sentence: The Mannequin | Short Horror Film
sentences:
- Sci-Fi Digital Series "Nikola Tesla and the End of the World" Ep 1 | DUST
- CGI Animated Short Film HD "Roommate Wanted - Dead or Alive " by Monkey Tennis
Animation | CGMeetup
- O Dharitri Maa | Lav Kush | Bengali Movie Devotional Song
- source_sentence: Short film on choosing between child and career | "Patision Avenue"
- by Thanasis Neofotistos
sentences:
- Pratham Dekha | প্রথম দেখা | Bengali Movie – 1/15 | Prosenjit
- 'CGI & VFX Breakdowns: "The Intruder" - by PenguineFx Academy | TheCGBros'
- 'CGI 2D Photoshop Tutorial : "Creating Tileable Textures from Pictures" - by 3dmotive'
- source_sentence: The Meaning Behind Camera Movement!
sentences:
- PROSOPAGNOSIA | Omeleto
- Horror Short Film "Fry Day" | ALTER
- Rupban Kanya | রূপবান কন্যা | Bengali Movie – 2/13 | Biswajit
- source_sentence: 'CGI 3D Animated Trailers: "Killing Anabella" - by Aman Bhanot
| TheCGBros'
sentences:
- 'CGI 3D Animated Trailers: "Play On" - by Sun Woo Kang | TheCGBros'
- Kaise Katey Rajani | Khudito Pasan | Bengali Movie Video Song | Bengali Classic
Song
- Haenyo, the women of the sea (Trailer) - Animated short film by Eloïc Gimenez
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)
- **Maximum Sequence Length:** 256 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': 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("Syldehayem/all-MiniLM-L6-v2_embedder_train")
# Run inference
sentences = [
'CGI 3D Animated Trailers: "Killing Anabella" - by Aman Bhanot | TheCGBros',
'Kaise Katey Rajani | Khudito Pasan | Bengali Movie Video Song | Bengali Classic Song',
'CGI 3D Animated Trailers: "Play On" - by Sun Woo Kang | TheCGBros',
]
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 |
13 Films In 2 Years - A Filmmaker's Journey EPISODE 2 (Documentary) | দেওয়া নেওয়া ইত্যাদি | Natok Korish Na Toh | Sketch Comedy Show | Episode 3 | Story 1 | Poetic animation about polar myths | Inukshuk - Short Film by Camillelvis Théry |
| CGI & VFX Showreels: "B-War" - by Jorge Baldeon | TheCGBros | Hot Dog | Coworkers Try to Rescue Dog Locked in Car, Chaos Ensues, Comedy Short Film | CGI 3D Animated Short "Heart and Soul" - by Pierre Zah + Ringling | TheCGBros |
| Excuse Me - Comedy Scene | Mauchaak | Ranjit Mallick, Mithu Mukherjee | Cholo Jai Cholo Jai | Kony | Bengali Movie Rabindra Sangeet | Malabi Mukherjee | AWAKEN THE INNER SELF | Horror Short Film |
* 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