---
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:39
- loss:MultipleNegativesRankingLoss
base_model: sentence-transformers/multi-qa-MiniLM-L6-cos-v1
widget:
- source_sentence: What topics are covered in the junior Physics course?
sentences:
- Modeling real-world situations using algebra, geometry, trigonometry, and statistics.
- At WPI (Worcester Polytechnic Institute), as full-time students.
- Mechanics, gravitation, electricity, magnetism, waves, and harmonic oscillations.
- source_sentence: How are students supported during their college application process?
sentences:
- Approximately 100 hours.
- They meet regularly with the college counselor and faculty advisors.
- '2:45'
- source_sentence: What is the role of Ms. Julie?
sentences:
- Ms. Burns.
- Independent research and engineering projects, including a school-wide science
fair.
- Operations Manager.
- source_sentence: What is the role of Ms. Post at Mass Academy?
sentences:
- Ms. Small.
- College Advisor.
- Dr. Kevin Crowthers.
- source_sentence: What courses do seniors take at WPI?
sentences:
- Ms. Wildfong.
- Courses in Mathematics, Science, and Humanities.
- They study web design, object-oriented programming, app development, and software
engineering.
pipeline_tag: sentence-similarity
library_name: sentence-transformers
---
# SentenceTransformer based on sentence-transformers/multi-qa-MiniLM-L6-cos-v1
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/multi-qa-MiniLM-L6-cos-v1](https://huggingface.co/sentence-transformers/multi-qa-MiniLM-L6-cos-v1). 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/multi-qa-MiniLM-L6-cos-v1](https://huggingface.co/sentence-transformers/multi-qa-MiniLM-L6-cos-v1)
- **Maximum Sequence Length:** 512 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': 512, '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("ntproctor/mass-academy-faq-embedder")
# Run inference
sentences = [
'What courses do seniors take at WPI?',
'Courses in Mathematics, Science, and Humanities.',
'They study web design, object-oriented programming, app development, and software engineering.',
]
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: 39 training samples
* Columns: sentence_0
and sentence_1
* Approximate statistics based on the first 39 samples:
| | sentence_0 | sentence_1 |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
| type | string | string |
| details |
How are students supported during their college application process?
| They meet regularly with the college counselor and faculty advisors.
|
| What kind of projects are done during the engineering portion of STEM?
| Assistive technology devices designed and built for real clients.
|
| Who teaches Wellness?
| Ms. Liz.
|
* Loss: [MultipleNegativesRankingLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
```json
{
"scale": 20.0,
"similarity_fct": "cos_sim"
}
```
### Training Hyperparameters
#### Non-Default Hyperparameters
- `num_train_epochs`: 50
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters