Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
Generated from Trainer
dataset_size:44709
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run finvector/sbert_raw_finmodern_pair_merged on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/finvector/sbert_raw_finmodern_pair_merged. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/finvector/sbert_raw_finmodern_pair_merged on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use finvector/sbert_raw_finmodern_pair_merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use finvector/sbert_raw_finmodern_pair_merged with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("finvector/sbert_raw_finmodern_pair_merged") sentences = [ "What specific geopolitical risks and operational costs has the company identified regarding its employees in Israel and its operations in China?", "Corporate debt $ 134,176 $ 132,180", "Net cash provided by operating activities decreased $652 million to $1.7 billion for the year ended December 31, 2017 compared to $2.4 billion for the prior year primarily due to a $263 million increase in income taxes paid and a $508 million decrease in cash from changes in brokerage deposits.", "For example, we have employees located in Israel and as a result of the international conflict in the Middle East, we have incurred and are likely to continue to incur costs to support our employees and address related challenges. Further, we have operations in China and the continuing tension between the U.S. and China may impact our business and results of operations in the future." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 277 Bytes
d3f0241 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.base.modules.transformer.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
}
] |