Sentence Similarity
sentence-transformers
TensorBoard
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:500
loss:MarginDistillationLoss
text-embeddings-inference
Run this model with HF Jobs
Run CrazyDave53/OpenCVModelDemo 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/CrazyDave53/OpenCVModelDemo. 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/CrazyDave53/OpenCVModelDemo 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 CrazyDave53/OpenCVModelDemo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use CrazyDave53/OpenCVModelDemo with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("CrazyDave53/OpenCVModelDemo") sentences = [ "qualify leads job description", "job description Qualify leads – can the customers use our solutions and do they have budget", "job description QUALIFICATION STANDARDS:", "job description Has passion and convictions and the innate ability to inspire passion in others" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Demo
Browse filesFiles changed (14)
- .gitattributes+1
- 1_Pooling/config.jsonAdded+10
- README.mdAdded+347
- config.jsonAdded+29
- config_sentence_transformers.jsonAdded+10
- model.safetensorsAdded+3
- modules.jsonAdded+14
- runs/Nov17_19-00-27_OpenCV/events.out.tfevents.1731870028.OpenCV.3322.0Added+3
- runs/Nov17_19-33-10_OpenCV/events.out.tfevents.1731871990.OpenCV.3745.0Added+3
- sentence_bert_config.jsonAdded+4
- sentencepiece.bpe.modelAdded+3
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded+3
- tokenizer_config.jsonAdded+61
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910{ "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}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347---tags:- sentence-transformers- sentence-similarity- feature-extraction- generated_from_trainer- dataset_size:500- loss:MarginDistillationLossbase_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2widget:- source_sentence: qualify leads job description sentences: - job description Qualify leads – can the customers use our solutions and do they have budget - 'job description QUALIFICATION STANDARDS:' - job description Has passion and convictions and the innate ability to inspire passion in others- source_sentence: what kind of work can you do in a fast paced work environment sentences: - 'job description Customer Care:' - cv Worked effectively in a heavily cross-functional, fast paced environment - job description Ability to work in a fast-paced, team environment to meet required deadlines- source_sentence: what is the job description of architect at cisco sentences: - job description Proven track record of meeting quota - job description You will provide an architectural perspective across the Cisco product portfolio and can use your technical specialization for specific opportunities. - job description Work with network architect to direct network engineering within the US/ Canada region.- source_sentence: what is a product partner for a bank sentences: - job description Assist customers with product features and installation needs for TV, Internet, phone and security services - job description Partners effectively with Credit, Product Partners, Closers, Servicing, Technical Services, and other partners to identify cross-sell opportunities and deepen client relationships as well as solve internal obstacles and deliver a seamless execution. - job description Partner with the ad product/experience team to ensure strategies can be effectively executed- source_sentence: what is the job description of outcome-oriented sentences: - job description Outcome-oriented -- results-focused with strong performance culture - job description Results oriented—takes personal accountability and drives to “get it done” (solve customer problems and close deals) and “do it right” (act with integrity and sustain strong relationships) - job description Provide consistent assessment of each associate’s sales performance and work within the store to give feedback on areas of strength and opportunity while keeping in line with Company objectives.pipeline_tag: sentence-similaritylibrary_name: sentence-transformers---
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2). 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/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) <!-- at revision 75c57757a97f90ad739aca51fa8bfea0e485a7f2 -->- **Maximum Sequence Length:** 128 tokens- **Output Dimensionality:** 768 dimensions- **Similarity Function:** Cosine Similarity<!-- - **Training Dataset:** Unknown --><!-- - **Language:** Unknown --><!-- - **License:** Unknown -->
### 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': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel (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:
```bashpip install -U sentence-transformers```
Then you can load this model and run inference.```pythonfrom sentence_transformers import SentenceTransformer
# Download from the 🤗 Hubmodel = SentenceTransformer("sentence_transformers_model_id")# Run inferencesentences = [ 'what is the job description of outcome-oriented', 'job description Outcome-oriented -- results-focused with strong performance culture', 'job description Results oriented—takes personal accountability and drives to “get it done” (solve customer problems and close deals) and “do it right” (act with integrity and sustain strong relationships)',]embeddings = model.encode(sentences)print(embeddings.shape)# [3, 768]
# Get the similarity scores for the embeddingssimilarities = model.similarity(embeddings, embeddings)print(similarities.shape)# [3, 3]```
<!--### Direct Usage (Transformers)
<details><summary>Click to see the direct usage in Transformers</summary>
</details>-->
<!--### Downstream Usage (Sentence Transformers)
You can finetune this model on your own dataset.
<details><summary>Click to expand</summary>
</details>-->
<!--### Out-of-Scope Use
*List how the model may foreseeably be misused and address what users ought not to do with the model.*-->
<!--## Bias, Risks and Limitations
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*-->
<!--### Recommendations
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*-->
## Training Details
### Training Dataset
#### Unnamed Dataset
* Size: 500 training samples* Columns: <code>sentence_0</code>, <code>sentence_1</code>, <code>sentence_2</code>, and <code>label</code>* Approximate statistics based on the first 500 samples: | | sentence_0 | sentence_1 | sentence_2 | label | |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:--------------------------------------------------------------------| | type | string | string | string | float | | details | <ul><li>min: 4 tokens</li><li>mean: 10.23 tokens</li><li>max: 24 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 26.02 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 21.6 tokens</li><li>max: 128 tokens</li></ul> | <ul><li>min: -13.07</li><li>mean: 3.46</li><li>max: 21.29</li></ul> |* Samples: | sentence_0 | sentence_1 | sentence_2 | label | |:-------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------|:--------------------------------| | <code>what is a cv</code> | <code>cv Jan 2003 to Jan 2005 Company Name Implemented a database package for the nuclear power plant historical design calculations</code> | <code>cv Member and Provider Services</code> | <code>-2.188136577606201</code> | | <code>what is the minimum requirement to work in a warehouse</code> | <code>job description Experience/Minimum Requirements</code> | <code>job description Minimum Requirements:</code> | <code>-2.951946973800659</code> | | <code>what type of education does a client service executive need</code> | <code>job description Bachelor’s degree from an accredited college/university or equivalent B2B client service experience</code> | <code>job description Education Requirements</code> | <code>9.929327964782715</code> |* Loss: <code>gpl.toolkit.loss.MarginDistillationLoss</code>
### Training Hyperparameters#### Non-Default Hyperparameters
- `per_device_train_batch_size`: 10- `per_device_eval_batch_size`: 10- `num_train_epochs`: 1- `max_steps`: 50- `multi_dataset_batch_sampler`: round_robin
#### All Hyperparameters<details><summary>Click to expand</summary>
- `overwrite_output_dir`: False- `do_predict`: False- `eval_strategy`: no- `prediction_loss_only`: True- `per_device_train_batch_size`: 10- `per_device_eval_batch_size`: 10- `per_gpu_train_batch_size`: None- `per_gpu_eval_batch_size`: None- `gradient_accumulation_steps`: 1- `eval_accumulation_steps`: None- `torch_empty_cache_steps`: None- `learning_rate`: 5e-05- `weight_decay`: 0.0- `adam_beta1`: 0.9- `adam_beta2`: 0.999- `adam_epsilon`: 1e-08- `max_grad_norm`: 1- `num_train_epochs`: 1- `max_steps`: 50- `lr_scheduler_type`: linear- `lr_scheduler_kwargs`: {}- `warmup_ratio`: 0.0- `warmup_steps`: 0- `log_level`: passive- `log_level_replica`: warning- `log_on_each_node`: True- `logging_nan_inf_filter`: True- `save_safetensors`: True- `save_on_each_node`: False- `save_only_model`: False- `restore_callback_states_from_checkpoint`: False- `no_cuda`: False- `use_cpu`: False- `use_mps_device`: False- `seed`: 42- `data_seed`: None- `jit_mode_eval`: False- `use_ipex`: False- `bf16`: False- `fp16`: False- `fp16_opt_level`: O1- `half_precision_backend`: auto- `bf16_full_eval`: False- `fp16_full_eval`: False- `tf32`: None- `local_rank`: 0- `ddp_backend`: None- `tpu_num_cores`: None- `tpu_metrics_debug`: False- `debug`: []- `dataloader_drop_last`: False- `dataloader_num_workers`: 0- `dataloader_prefetch_factor`: None- `past_index`: -1- `disable_tqdm`: False- `remove_unused_columns`: True- `label_names`: None- `load_best_model_at_end`: False- `ignore_data_skip`: False- `fsdp`: []- `fsdp_min_num_params`: 0- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}- `fsdp_transformer_layer_cls_to_wrap`: None- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}- `deepspeed`: None- `label_smoothing_factor`: 0.0- `optim`: adamw_torch- `optim_args`: None- `adafactor`: False- `group_by_length`: False- `length_column_name`: length- `ddp_find_unused_parameters`: None- `ddp_bucket_cap_mb`: None- `ddp_broadcast_buffers`: False- `dataloader_pin_memory`: True- `dataloader_persistent_workers`: False- `skip_memory_metrics`: True- `use_legacy_prediction_loop`: False- `push_to_hub`: False- `resume_from_checkpoint`: None- `hub_model_id`: None- `hub_strategy`: every_save- `hub_private_repo`: False- `hub_always_push`: False- `gradient_checkpointing`: False- `gradient_checkpointing_kwargs`: None- `include_inputs_for_metrics`: False- `include_for_metrics`: []- `eval_do_concat_batches`: True- `fp16_backend`: auto- `push_to_hub_model_id`: None- `push_to_hub_organization`: None- `mp_parameters`: - `auto_find_batch_size`: False- `full_determinism`: False- `torchdynamo`: None- `ray_scope`: last- `ddp_timeout`: 1800- `torch_compile`: False- `torch_compile_backend`: None- `torch_compile_mode`: None- `dispatch_batches`: None- `split_batches`: None- `include_tokens_per_second`: False- `include_num_input_tokens_seen`: False- `neftune_noise_alpha`: None- `optim_target_modules`: None- `batch_eval_metrics`: False- `eval_on_start`: False- `use_liger_kernel`: False- `eval_use_gather_object`: False- `average_tokens_across_devices`: False- `prompts`: None- `batch_sampler`: batch_sampler- `multi_dataset_batch_sampler`: round_robin
</details>
### Framework Versions- Python: 3.10.12- Sentence Transformers: 3.3.0- Transformers: 4.46.2- PyTorch: 2.5.1+cu121- Accelerate: 1.1.1- Datasets: 3.1.0- Tokenizers: 0.20.3
## Citation
### BibTeX
#### Sentence Transformers```bibtex@inproceedings{reimers-2019-sentence-bert, title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks", author = "Reimers, Nils and Gurevych, Iryna", booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing", month = "11", year = "2019", publisher = "Association for Computational Linguistics", url = "https://arxiv.org/abs/1908.10084",}```
<!--## Glossary
*Clearly define terms in order to be accessible across audiences.*-->
<!--## Model Card Authors
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*-->
<!--## Model Card Contact
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*-->1234567891011121314151617181920212223242526272829{ "_name_or_path": "sentence-transformers/paraphrase-multilingual-mpnet-base-v2", "architectures": [ "XLMRobertaModel" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "gradient_checkpointing": false, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "xlm-roberta", "num_attention_heads": 12, "num_hidden_layers": 12, "output_past": true, "pad_token_id": 1, "position_embedding_type": "absolute", "torch_dtype": "float32", "transformers_version": "4.46.2", "type_vocab_size": 1, "use_cache": true, "vocab_size": 250002}12345678910{ "__version__": { "sentence_transformers": "3.3.0", "transformers": "4.46.2", "pytorch": "2.5.1+cu121" }, "prompts": {}, "default_prompt_name": null, "similarity_fn_name": "cosine"}123version https://git-lfs.github.com/spec/v1oid sha256:7e7266d172acca6f10502e45b408dcc21dc6afb4446e2af4cdbf22d83656c328size 11121970961234567891011121314[ { "idx": 0, "name": "0", "path": "", "type": "sentence_transformers.models.Transformer" }, { "idx": 1, "name": "1", "path": "1_Pooling", "type": "sentence_transformers.models.Pooling" }]123version https://git-lfs.github.com/spec/v1oid sha256:621a31c5441ea471ec9fd24804b934483f940e93045c3769a9032cbef5d73528size 4717123version https://git-lfs.github.com/spec/v1oid sha256:b09bf35efdb19da8e186b2914ddf1a86eac11bb6e449a0bdb94f6fdc61098832size 43721234{ "max_seq_length": 128, "do_lower_case": false}123version https://git-lfs.github.com/spec/v1oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865size 5069051123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false }}123version https://git-lfs.github.com/spec/v1oid sha256:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719size 1708298712345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": false, "rstrip": false, "single_word": false, "special": true }, "250001": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "eos_token": "</s>", "mask_token": "<mask>", "max_length": 128, "model_max_length": 128, "pad_to_multiple_of": null, "pad_token": "<pad>", "pad_token_type_id": 0, "padding_side": "right", "sep_token": "</s>", "stride": 0, "tokenizer_class": "XLMRobertaTokenizer", "truncation_side": "right", "truncation_strategy": "longest_first", "unk_token": "<unk>"}.gitattributes+1
1_Pooling/config.jsonAdded+10
README.mdAdded+347
config.jsonAdded+29
config_sentence_transformers.jsonAdded+10
model.safetensorsAdded+3
modules.jsonAdded+14
runs/Nov17_19-00-27_OpenCV/events.out.tfevents.1731870028.OpenCV.3322.0Added+3
runs/Nov17_19-33-10_OpenCV/events.out.tfevents.1731871990.OpenCV.3745.0Added+3
sentence_bert_config.jsonAdded+4
sentencepiece.bpe.modelAdded+3
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded+3
tokenizer_config.jsonAdded+61