Downloads · 30 days
77
26% of all-time downloads
shivamgoel97/finetunesentence
finetunesentence is a sentence similarity model from shivamgoel97. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
This is a sentence-transformers model finetuned from sentence-transformers/all-MiniLM-L6-v2. It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, sema…
Downloads · 30 days
77
26% of all-time downloads
All-time downloads
294
Public
Parameters
22.7M
90.9 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors90.9 MB · 99%
From the Hugging Face model README
This is a sentence-transformers model finetuned from sentence-transformers/all-MiniLM-L6-v2. 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.
SentenceTransformer(
(0): Transformer({'max_seq_length': 256, '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()
)
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the 🤗 Hub
model = SentenceTransformer("shivamgoel97/finetunesentence")
# Run inference
sentences = [
'What steps should the Fulfillment SPC Leadership take when an Internal Partner forwards an escalation request?',
'Context: team (a selected group of offline individuals) completes all escalated requests. Escalations from a previous representative will not be reassigned to that representative rather assigned and handled through the Escalation team. The representative\'s supervisor receives real-time feedback to provide the representative immediate coaching and corrective action. Do not assign escalated requests to the Outbound team. The Escalations team owns all escalated requests. If a call to PACT is needed for credit approval, the Outbound team can assist but will not own the request. If more information is needed to complete the request, follow the AIR guidelines.Ways to Receive Escalated RequestsTable: <table border="1" cellpadding="5" cellspacing="0" width="100%"><tbody><tr><th style="text-align: left;" valign="top">If ...</th><th style="text-align: left;" valign="top">Then ...</th></tr><tr><td style="text-align: left;" valign="top">the reason for the escalation is due to a mistake on the original COE-processed application</td><td style="text-align: left;" valign="top"><p>do not reassign to the original coordinator.<br/><br/>Note:\xa0<span style="background-color: transparent;">The Escalation Representative assigned the request makes the necessary changes/corrections and completes the request.</span></p></td></tr><tr><td style="text-align: left;" valign="top">the reason for the escalation is a Missed SLA / Revenue Impacting Order<br/></td><td style="text-align: left;" valign="top"><ul><li>Do not reassign the escalation email request to the coordinator who has the related email if the related WFM is with a coordinator who does not belong to the Escalation team and is in\xa0<b>Wait</b>\xa0status.<br/></li><li>Own the escalated WFM and monitor the progress of the original request until completion.</li><li>Create a case to track completion of the request.</li><li>Be responsible for providing the updates to the Sales partner by sending an email with the status and timelines as possible.</li><li>Complete WFM as (Request Type) Correspondence.</li></ul></td></tr><tr><td style="text-align: left;" valign="top">the related WFM is with another Center/Team<br/></td><td style="text-align: left;" valign="top"><p>reassign any follow-up emails related to that request in order for that team to continue to own it.<br/></p><ul><li>Do not respond to provide an update.\xa0</li><li>Submit a reassignment request if needed.</li></ul></td></tr><tr><td style="text-align: left;" valign="top">Internal Partners forward the escalation request<br/></td><td style="text-align: left;" valign="top"><p>the Fulfillment SPC Leadership does the following:<br/></p><ol><li>Acknowledges the email.</li><li>Provides an update within 1 hour after acknowledgement.</li><li>Tracks completion until closure and provides updates as needed.<ul><li>If the assigned lead is out of the office or unavailable, another leader will cover on their behalf.</li></ul></li></ol></td></tr></tbody></table>',
'Context: Program provides VZW B2B Data Sales Teams with a selection of key M2M certified devices for use in customer pilots pursuant to a sale. This program is intended to motivate and enable the VZW B2B Data Sales Teams to generate M2M sales. The program is available for Data Sales Teams residing in the 4 VZW B2B Sales Areas and the Enterprise and Government group. It contains a portfolio of key M2M devices that may provide a pilot at no cost to the customer when connected on area-supplied concession lines or test lines.Contact Nishant Shah [email protected] to request these solution-based devices:Table: <table border="1" cellpadding="5" width="100%"><tbody><tr><td style="text-align: left;" valign="top" width="30%"><b>Manufacturer</b></td><td style="text-align: left;" valign="top" width="70%"><b>Model</b></td></tr><tr><td style="text-align: left;" valign="top" width="30%">Cisco</td><td style="text-align: left;" valign="top" width="70%">Demo</td></tr></tbody></table>',
]
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]
<!--
### 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.*
-->
| sentence_0 | sentence_1 | label | |
|---|---|---|---|
| type | string | string | int |
| details | <ul><li>min: 11 tokens</li><li>mean: 24.8 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 91 tokens</li><li>mean: 230.28 tokens</li><li>max: 256 tokens</li></ul> | <ul><li>0: ~29.30%</li><li>1: ~70.70%</li></ul> |
| sentence_0 | sentence_1 | label |
|---|---|---|
| <code>What steps should be taken if the appropriate ticket is not visible?</code> | <code>Context: appropriate ticket may not be visible. Click View Ticket Details for more information. Type in Ticket Number and click Search. Scroll to the bottom of the screen to view the Comments Log, which contains all the information about the ticket's creation and resolution. Tickets can also be located by picking a date range (Start Date and End Date), selecting Me as the Assigned To value and clicking Search to pull up all tickets created by the Representative doing the searching.Email the escalations mailbox and request the ticket be closed. Note: Cancel, Fraud Cancel and Address Change tickets cannot be undone.Table: <table border="1" cellpadding="5" cellspacing="0" width="100%"><tbody><tr><th style="text-align: left;" valign="top">Ticket rejection reason</th><th style="text-align: left;" valign="top">Solution</th></tr><tr><td style="text-align: left;" valign="top">Missing or invalid information</td><td style="text-align: left;" valign="top"><p>After utilizing all available resource...</code> | <code>1</code> |
| <code>What are the steps to assign an Account Manager in My Verizon when the Account Manager does not have an MDN on the account?</code> | <code>Context: and password The Account Manager: Is listed as an Authorized User in the Billing System and in My Verizon Can transact account business on My Verizon, My Verizon Express, in-store and by calling CS. Assign Account Manager In-Store or CS Access Only: Account Owner follows these steps: Note: This process can be used when the Account Manager does not have an MDN on the account. The Account Manager is listed as Authorized User in the billing system and has access to transact account business in-store or with CS. Adding an Account Manager is not restricted to a Digital Only Transaction.Table: <table border="1" cellpadding="5" cellspacing="0" width="100%"><tbody><tr><th style="text-align: center;" valign="top" width="5%">Step</th><th style="text-align: left;" valign="top">Action</th></tr><tr><td style="text-align: center;" valign="top" width="5%">1</td><td style="text-align: left;" valign="top">Sign in to My Verizon.<br/></td></tr><tr><td style="text-align: center;" valign="top" wid...</code> | <code>1</code> |
| <code>What should an agent do if a case is received with an executive handle tagged?</code> | <code>Context: to send the form). W-9 addresses must always be the corporate address of record for the entity servicing the customer. W-9s are issued to claim exemption from withholding (i.e., 1099) and provide the name and address for information reporting. Payment Questions The EPO Support team is unable to answer any questions about payments and applications. For wireless customers, open a Payment Investigation Ticket through ACSS. For further assistance, search for “Accessing Payment Hub in ACSS” through InfoManager. For wireline customers, open a Payment Investigation Ticket through the Payment Hub. For further assistance, search for “Payment Hub Participants Guide” through VZKnowledge.Table: <table border="1" cellpadding="5" cellspacing="0" width="100%"><tbody><tr><th style="text-align: center;" valign="top" width="5%">Step</th><th style="text-align: left;" valign="top">Action</th></tr><tr><td style="text-align: center;" valign="top" width="5%">1</td><td style="text-align: left;" valig...</code> | <code>0</code> |
{
"loss_fct": "torch.nn.modules.loss.MSELoss"
}
multi_dataset_batch_sampler: round_robinoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 8per_device_eval_batch_size: 8per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 1eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 5e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1num_train_epochs: 3max_steps: -1lr_scheduler_type: linearlr_scheduler_kwargs: {}warmup_ratio: 0.0warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Falserestore_callback_states_from_checkpoint: Falseno_cuda: Falseuse_cpu: Falseuse_mps_device: Falseseed: 42data_seed: Nonejit_mode_eval: Falseuse_ipex: Falsebf16: Falsefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonelocal_rank: 0ddp_backend: Nonetpu_num_cores: Nonetpu_metrics_debug: Falsedebug: []dataloader_drop_last: Falsedataloader_num_workers: 0dataloader_prefetch_factor: Nonepast_index: -1disable_tqdm: Falseremove_unused_columns: Truelabel_names: Noneload_best_model_at_end: Falseignore_data_skip: Falsefsdp: []fsdp_min_num_params: 0fsdp_config: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}fsdp_transformer_layer_cls_to_wrap: Noneaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_args: Noneadafactor: Falsegroup_by_length: Falselength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falsedataloader_pin_memory: Truedataloader_persistent_workers: Falseskip_memory_metrics: Trueuse_legacy_prediction_loop: Falsepush_to_hub: Falseresume_from_checkpoint: Nonehub_model_id: Nonehub_strategy: every_savehub_private_repo: Nonehub_always_push: Falsegradient_checkpointing: Falsegradient_checkpointing_kwargs: Noneinclude_inputs_for_metrics: Falseinclude_for_metrics: []eval_do_concat_batches: Truefp16_backend: autopush_to_hub_model_id: Nonepush_to_hub_organization: Nonemp_parameters:auto_find_batch_size: Falsefull_determinism: Falsetorchdynamo: Noneray_scope: lastddp_timeout: 1800torch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Nonedispatch_batches: Nonesplit_batches: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robin| Epoch | Step | Training Loss |
|---|---|---|
| 0.5663 | 500 | 0.111 |
| 1.1325 | 1000 | 0.0838 |
| 1.6988 | 1500 | 0.0721 |
| 2.2650 | 2000 | 0.061 |
| 2.8313 | 2500 | 0.0588 |
@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.*
-->