---
base_model: microsoft/mpnet-base
datasets: []
language: []
library_name: sentence-transformers
pipeline_tag: sentence-similarity
tags:
- sentence-transformers
- sentence-similarity
- feature-extraction
- generated_from_trainer
- dataset_size:24901
- loss:SoftmaxLoss
widget:
- source_sentence: Cryptocurrency holders are being exploited, with whales creating
more coins and profiting from their value.
sentences:
- Buyer purchases cryptocurrency from seller in exchange.
- Price fluctuates due to fear and uncertainty, only time will reveal its direction.
- New user's post removed due to lack of required **karma** and account age.
- source_sentence: User seeks assistance with retrieving funds from a cryptocurrency
investment platform.
sentences:
- Bot removed post for being too short, resubmit with more characters.
- People enjoy walking while searching for digital currency in their area.
- Cryptocurrency project's legitimacy unlikely due to complexity and scrutiny in
parachain development and ecosystem interactions.
- source_sentence: Large cryptocurrencies' market dominance may change as new projects
emerge with exceptional utility and marketing.
sentences:
- Market experiencing significant decline.
- Decentralized concept in crypto is main idea, but most coins are centralized.
- Cryptocurrency users share information.
- source_sentence: Use XLM for low-cost transactions between exchanges, saving on
fees.
sentences:
- Exchanges should automate process for increased activity.
- Investment taxes vary by country, but generally apply after withdrawal, with losses
still needing declaration.
- Use basic version, buy coins with credit card.
- source_sentence: New user seeks advice on storing Bitcoin and USDT on WazirX or
Binance, considering pros and cons.
sentences:
- Buy cryptocurrency directly with credit card, but high fee makes Indian exchange
a better option.
- 'Cryptocurrency prices: Bitcoin, Ethereum, and others fluctuate.'
- Investor has faith in Tezos, making strategic moves.
---
# SentenceTransformer based on microsoft/mpnet-base
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base). 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:** [microsoft/mpnet-base](https://huggingface.co/microsoft/mpnet-base)
- **Maximum Sequence Length:** 512 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': 512, 'do_lower_case': False}) with Transformer model: MPNetModel
(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})
)
```
## 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("pawan2411/crypto_nli")
# Run inference
sentences = [
'New user seeks advice on storing Bitcoin and USDT on WazirX or Binance, considering pros and cons.',
'Buy cryptocurrency directly with credit card, but high fee makes Indian exchange a better option.',
'Investor has faith in Tezos, making strategic moves.',
]
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: 24,901 training samples
* Columns: sentence_0
, sentence_1
, and label
* Approximate statistics based on the first 1000 samples:
| | sentence_0 | sentence_1 | label |
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:------------------------------------------------|
| type | string | string | int |
| details |
User asks about tracing crypto swaps and process of exchanging digital currencies.
| "Private cryptocurrency swap can't be traced."
| 0
|
| Cryptocurrency project with weak fundamentals deserves to fail, cherish coins before next market downturn.
| "Trust information in this community."
| 0
|
| New user seeks advice on using crypto credit cards in daily life.
| User uses digital wallet for cryptocurrency transactions, earning cashback rewards.
| 1
|
* Loss: [SoftmaxLoss
](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#softmaxloss)
### Training Hyperparameters
#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 64
- `per_device_eval_batch_size`: 64
- `num_train_epochs`: 10
- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters