---
base_model: sentence-transformers/sentence-t5-large
library_name: sentence-transformers
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:7106
- loss:MultipleNegativesRankingLoss
widget:
- source_sentence: why should a farmer castrate his/her animals
sentences:
- In what situations should farmers consider castrating their animals?
- How can I prevent annual parasite attacks on my chickens?
- In what ways can a farmer ascertain the viability of coffee berries?
- source_sentence: what are the ecological requirements for sesame production
sentences:
- What ecological conditions are necessary for growing sesame?
- Which is the best spacing in tomato transplanting?(for each type of tomatoes)
- what is the best season for planting cassava
- source_sentence: What causes very watery milk in cows?
sentences:
- What results in cows having exceptionally watery milk?
- What can I do for my sow that has given birth and has no milk?
- What type of tomato seeds should I use for planting?
- source_sentence: the two females are from the same mother and then the male is from
another mother
sentences:
- How does grey leaf spot disease spread?
- How is mulching implemented in coffee plant care?
- The two female offspring share a mother, and the male offspring has a separate
mother
- source_sentence: What is anaplasmosis as applied in animal health
sentences:
- What is anaplasmosis in the context of animal health?
- What is the primary requirement for tomatoes?
- What causes chickens to reduce their feed intake at times?
---
# SentenceTransformer based on sentence-transformers/sentence-t5-large
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/sentence-t5-large](https://huggingface.co/sentence-transformers/sentence-t5-large). It maps sentences & paragraphs to a 768-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/sentence-t5-large](https://huggingface.co/sentence-transformers/sentence-t5-large)
- **Maximum Sequence Length:** 256 tokens
- **Output Dimensionality:** 768 tokens
- **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: T5EncoderModel
(1): Pooling({'word_embedding_dimension': 768, '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): Dense({'in_features': 1024, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
(3): 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("KasuleTrevor/Sentence-t5-large-QQ")
# Run inference
sentences = [
'What is anaplasmosis as applied in animal health',
'What is anaplasmosis in the context of animal health?',
'What is the primary requirement for tomatoes?',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 768]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [3, 3]
```
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 7,106 training samples
* Columns: sentence_0
and sentence_1
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 |
|:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
| type | string | string |
| details |
What makes tomatoes fade at various stages and finally die?
| What makes tomatoes fade at various stages and finally die?
|
| Which concentrates are needed to boost the chickens fast?
| What concentrates are required to enhance chicken growth quickly?
|
| How long does avocado take to mature to be harvested?
| How long does avocado take to mature to be harvested?
|
* 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`: 1
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters