Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
Paper • 1908.10084 • Published • 16
How to use oumaimansir/cv-matcher-finetuned with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("oumaimansir/cv-matcher-finetuned")
sentences = [
"Name: Rohan Dubey || Email: rohan.dubey37@gmail.com | Phone: +91-7934168821 | LinkedIn: linkedin.com/in/rohan-dubey8 || Location: Kolkata, India | Open to: Remote / Hybrid || --- || PROFESSIONAL SUMMARY || Enterprise sales professional with 10 years at CRED selling Consul solutions to C-suite buyers. Built and managed pipeline of ₹20Cr+ across 8 industry verticals. || --- || SKILLS || Ansible, FluxCD, Vault, Consul, Terraform, ArgoCD, Istio || --- || WORK EXPERIENCE || Account Executive | CRED | Kolkata | 2014 – Present || • Won ₹27Cr competitive deal against Salesforce through ROI-focused proposal and exec-level relationship || • Built greenfield territory from ₹0 to ₹26Cr ARR in 17 months through Ansible and strategic prospecting || • Expanded 11 existing accounts through upselling, generating ₹5Cr incremental ARR || --- || Junior Account Executive | Capgemini | Kolkata | 2011 – 2013 || • Reduced sales cycle from 64 to 16 days by implementing Vault and improving demo-to-close ratio by 14% || • Closed ₹19Cr ARR in FY25, exceeding annual quota by 45% and ranking #8 in team of 28 || --- || EDUCATION || MBA in International Business | BITS Pilani Hyderabad | 2011 | CGPA: 9.4 || --- || CERTIFICATIONS || Google Professional Data Engineer",
"Job Title: Computer Vision Engineer || Company: PwC | Location: Kolkata / Remote | Type: Full-Time || Experience: 8+ years | Salary: ₹27–54 LPA || Team Size: ~14 | Interview Rounds: 6 || --- || ABOUT THE ROLE || We are looking for a passionate Computer Vision Engineer to join our Data Science team at PwC. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Design and run rigorous a/b and multi-armed bandit experiments || • Build end-to-end ml pipelines from data ingestion to model deployment and monitoring || • Develop and maintain data pipelines using a/b testing and xgboost || • Work closely with data engineering to ensure data quality and feature availability || • Translate complex model outputs into actionable business insights for non-technical stakeholders || --- || REQUIRED SKILLS: XGBoost, NLP, Computer Vision, Hive, Power BI, Hadoop, A/B Testing, MLflow || NICE TO HAVE: Kafka, TensorFlow, Tableau || --- || PERKS: Gym membership, MacBook Pro, Health & dental insurance, Maternity/paternity leave, Flexible work hours, Remote-first culture || Domain: Data Science",
"Job Title: Brand Manager || Company: Atlassian | Location: Gurgaon / Remote | Type: Full-Time || Experience: 6+ years | Salary: ₹14–41 LPA || Team Size: ~8 | Interview Rounds: 3 || --- || ABOUT THE ROLE || We are looking for a passionate Brand Manager to join our Marketing team at Atlassian. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Develop and execute email marketing campaigns with segmentation and personalisation || • Manage performance marketing budgets and optimise for cac, roas, and ltv || • Drive seo strategy including technical audits, content planning, and link building || • Identify and test new growth channels through rapid experimentation || • Analyse campaign performance using crm and present insights to leadership || --- || REQUIRED SKILLS: Social Media, Conversion Rate Optimisation, CRM, Community Management, Growth Hacking, SEO || NICE TO HAVE: HubSpot, Google Analytics, Affiliate Marketing || --- || PERKS: Health & dental insurance, Remote-first culture, Gym membership, ₹50K learning budget, Mental health support, Annual performance bonus || Domain: Marketing",
"Job Title: Content Strategist || Company: Groww | Location: Jaipur / Remote | Type: Full-Time || Experience: 9+ years | Salary: ₹23–55 LPA || Team Size: ~17 | Interview Rounds: 4 || --- || ABOUT THE ROLE || We are looking for a passionate Content Strategist to join our Marketing team at Groww. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Manage performance marketing budgets and optimise for cac, roas, and ltv || • Identify and test new growth channels through rapid experimentation || • Drive seo strategy including technical audits, content planning, and link building || • Build and manage relationships with agencies, platforms, and influencer partners || • Analyse campaign performance using hubspot and present insights to leadership || --- || REQUIRED SKILLS: Email Marketing, HubSpot, Adobe Suite, Influencer Marketing, LinkedIn Ads, Affiliate Marketing, Google Ads, PPC, Meta Ads, Content Marketing || NICE TO HAVE: Copywriting, Programmatic Advertising, PR || --- || PERKS: Maternity/paternity leave, Flexible work hours, Quarterly offsites, Free meals, Remote-first culture || Domain: Marketing"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]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 retrieval.
SentenceTransformer(
(0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'BertModel'})
(1): Pooling({'embedding_dimension': 384, 'pooling_mode': 'mean', '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("sentence_transformers_model_id")
# Run inference
sentences = [
'Name: Suresh Patel || Email: suresh.patel94@gmail.com | Phone: +91-8821351429 | LinkedIn: linkedin.com/in/suresh-patel5 || Location: Delhi, India | Open to: Remote / Hybrid || --- || PROFESSIONAL SUMMARY || Data scientist with 3 years applying Hadoop, Kubeflow and Hive to solve complex business problems. Experience across recommendation systems, fraud detection, and demand forecasting. || --- || SKILLS || Python, Hadoop, Hive, SQL, Kubeflow, NLP, dbt, Tableau, XGBoost || --- || WORK EXPERIENCE || ML Engineer | InMobi | Delhi | 2022 – Present || • Designed demand forecasting pipeline using Python, reducing inventory waste by 78% and saving ₹35Cr || • Deployed NLP model using Tableau for 4M+ user queries with sub-14ms inference latency || • Developed fraud detection model using Tableau and NLP with 97.7% precision, preventing ₹21Cr in losses || --- || Junior ML Engineer | Swiggy | Delhi | 2020 – 2021 || • Led A/B testing framework used by 20+ product teams, increasing experiment velocity by 51% || • Mentored team of 44 junior data scientists and established ML best practices || --- || EDUCATION || M.S. in Machine Learning | VIT Mumbai | 2020 | CGPA: 9.3',
'Job Title: Research Scientist || Company: TCS | Location: Jaipur / Remote | Type: Full-Time || Experience: 3+ years | Salary: ₹26–42 LPA || Team Size: ~24 | Interview Rounds: 6 || --- || ABOUT THE ROLE || We are looking for a passionate Research Scientist to join our Data Science team at TCS. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Translate complex model outputs into actionable business insights for non-technical stakeholders || • Work closely with data engineering to ensure data quality and feature availability || • Build end-to-end ml pipelines from data ingestion to model deployment and monitoring || • Develop and maintain data pipelines using statistics and pandas || • Design and run rigorous a/b and multi-armed bandit experiments || --- || REQUIRED SKILLS: Statistics, SQL, Pandas, Spark, Feature Engineering, Transformers || NICE TO HAVE: dbt, BERT, Looker || --- || PERKS: Health & dental insurance, Mental health support, Annual performance bonus, Flexible work hours || Domain: Data Science',
'Job Title: Performance Marketer || Company: Morgan Stanley | Location: Delhi / Remote | Type: Full-Time || Experience: 1+ years | Salary: ₹20–30 LPA || Team Size: ~18 | Interview Rounds: 6 || --- || ABOUT THE ROLE || We are looking for a passionate Performance Marketer to join our Marketing team at Morgan Stanley. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Identify and test new growth channels through rapid experimentation || • Develop and execute email marketing campaigns with segmentation and personalisation || • Work with creative and brand teams to produce compelling campaign assets || • Analyse campaign performance using hubspot and present insights to leadership || • Manage performance marketing budgets and optimise for cac, roas, and ltv || --- || REQUIRED SKILLS: HubSpot, Content Marketing, Video Marketing, LinkedIn Ads, PPC, SEO, Social Media || NICE TO HAVE: Salesforce, Meta Ads, Brand Strategy || --- || PERKS: Remote-first culture, Gym membership, Health & dental insurance, Quarterly offsites || Domain: Marketing',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 384]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[1.0000, 0.6883, 0.4044],
# [0.6883, 1.0000, 0.3296],
# [0.4044, 0.3296, 1.0000]])
sentence_0, sentence_1, and label| sentence_0 | sentence_1 | label | |
|---|---|---|---|
| type | string | string | float |
| modality | text | text | |
| details |
|
|
|
| sentence_0 | sentence_1 | label |
|---|---|---|
Name: Rohan Iyer || Email: rohan.iyer44@gmail.com | Phone: +91-7672100521 | LinkedIn: linkedin.com/in/rohan-iyer9 || Location: Kolkata, India | Open to: Remote / Hybrid || --- || PROFESSIONAL SUMMARY || Security engineer with 11 years building and operating SOC capabilities at HDFC Bank. Expert in Workday, Onboarding and threat hunting. Reduced MTTD by 58%. || --- || SKILLS || Onboarding, Workforce Planning, Change Management, Conflict Resolution, Organisational Development, Workday, SuccessFactors || --- || WORK EXPERIENCE || CISO | HDFC Bank | Kolkata | 2018 – Present || • Led incident response for 33+ security events, containing breaches with zero data exfiltration || • Designed and deployed cloud-native SIEM using Change Management, processing 40B+ log events daily || • Implemented Zero Trust architecture across 3K endpoints, reducing lateral movement risk by 56% || --- || Junior CISO | TCS | Kolkata | 2016 – 2018 || • Reduced mean time to detect (MTTD) from 89 hours to 18 hours by... |
Job Title: Head of HR || Company: Deloitte | Location: Hyderabad / Remote | Type: Full-Time || Experience: 4+ years | Salary: ₹29–73 LPA || Team Size: ~6 | Interview Rounds: 4 || --- || ABOUT THE ROLE || We are looking for a passionate Head of HR to join our Human Resources team at Deloitte. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Partner with business unit heads to identify people needs and build workforce plans || • Resolve employee grievances, conduct investigations, and ensure fair outcomes || • Champion diversity, equity, and inclusion initiatives across the organisation || • Own end-to-end recruitment for technical and business roles across all levels || • Develop and implement l&d programmes aligned with business capability gaps || --- || REQUIRED SKILLS: HRIS, HRMS, LinkedIn Recruiter, Training & Development, Payroll, Change Management, Onboarding, Succession P... |
0.33 |
Name: Arjun Kulkarni || Email: arjun.kulkarni59@gmail.com | Phone: +91-7205273021 | LinkedIn: linkedin.com/in/arjun-kulkarni9 || Location: Noida, India | Open to: Remote / Hybrid || --- || PROFESSIONAL SUMMARY || Talent acquisition specialist with 12 years. Hired 50+ candidates across tech, product, and business functions. Passionate about Employer Branding and data-driven recruiting. || --- || SKILLS || Onboarding, Employee Relations, Workforce Planning, HR Analytics, Change Management, Exit Management, LinkedIn Recruiter, Performance Management, SAP HR, Employer Branding, Payroll || --- || WORK EXPERIENCE || Recruiter | Mphasis | Noida | 2016 – Present || • Managed full-cycle recruitment for 33+ roles in 12 months to support rapid expansion phase || • Ensured compliance across 4 states with varying labour laws during company acquisition || • Reduced annual attrition from 96% to 8% through stay interviews, compensation benchmarking, and career pathing || --- || Junior Recruiter | Orac... |
Job Title: People Ops Manager || Company: Airbnb | Location: Bangalore / Remote | Type: Full-Time || Experience: 4+ years | Salary: ₹13–33 LPA || Team Size: ~12 | Interview Rounds: 3 || --- || ABOUT THE ROLE || We are looking for a passionate People Ops Manager to join our Human Resources team at Airbnb. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Develop and implement l&d programmes aligned with business capability gaps || • Use hr analytics to identify trends in attrition, engagement, and hiring efficiency || • Own end-to-end recruitment for technical and business roles across all levels || • Resolve employee grievances, conduct investigations, and ensure fair outcomes || • Administer payroll, benefits, and statutory compliance across locations || --- || REQUIRED SKILLS: Performance Management, Conflict Resolution, LinkedIn Recruiter, Training & Development, Employee Rel... |
0.77 |
Name: Gaurav Malhotra || Email: gaurav.malhotra26@gmail.com | Phone: +91-8148872110 | LinkedIn: linkedin.com/in/gaurav-malhotra1 || Location: Gurgaon, India | Open to: Remote / Hybrid || --- || PROFESSIONAL SUMMARY || 3+ years as a ML Engineer specialising in Power BI and Go. Built production ML systems at Google serving 38M+ users. Published 5 internal research papers. || --- || SKILLS || Pandas, Hypothesis Testing, XGBoost, Python, Power BI, NumPy, EKS, Go, ArgoCD || --- || WORK EXPERIENCE || ML Engineer | Google | Gurgaon | 2020 – Present || • Built Python-based recommendation engine that increased click-through rate by 19% and revenue by ₹37Cr annually || • Led A/B testing framework used by 21+ product teams, increasing experiment velocity by 46% || • Reduced model training time by 15% by migrating Hypothesis Testing workloads to distributed Python cluster || --- || Junior ML Engineer | ShareChat | Gurgaon | 2017 – 2018 || • Mentored team of 7 junior data scientists and established... |
Job Title: Head of DevOps || Company: Adobe | Location: Chennai / Remote | Type: Full-Time || Experience: 7+ years | Salary: ₹24–51 LPA || Team Size: ~39 | Interview Rounds: 5 || --- || ABOUT THE ROLE || We are looking for a passionate Head of DevOps to join our DevOps team at Adobe. You will work on high-impact problems affecting millions of users and collaborate with some of the best minds in the industry. || --- || RESPONSIBILITIES || • Optimise cloud costs through rightsizing, reserved capacity, and architectural improvements || • Participate in on-call rotation, respond to incidents, and drive rca to prevent recurrence || • Collaborate with development teams to embed devops practices and platform tooling || • Implement comprehensive observability including metrics, logs, and distributed tracing || • Define and enforce slos, slis, and error budgets for critical services || --- || REQUIRED SKILLS: Linux, Bash, Consul, Pulumi, Kubernetes, Grafana || NICE TO HAVE: Go, New Relic, FluxC... |
0.68 |
CosineSimilarityLoss with these parameters:{
"loss_fct": "torch.nn.modules.loss.MSELoss",
"cos_score_transformation": "torch.nn.modules.linear.Identity"
}
per_device_train_batch_size: 16per_device_eval_batch_size: 16multi_dataset_batch_sampler: round_robinper_device_train_batch_size: 16num_train_epochs: 3max_steps: -1learning_rate: 5e-05lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 1average_tokens_across_devices: Truemax_grad_norm: 1label_smoothing_factor: 0.0bf16: Falsefp16: Falsebf16_full_eval: Falsefp16_full_eval: Falsetf32: Nonegradient_checkpointing: Falsegradient_checkpointing_kwargs: Nonetorch_compile: Falsetorch_compile_backend: Nonetorch_compile_mode: Noneuse_liger_kernel: Falseliger_kernel_config: Noneuse_cache: Falseneftune_noise_alpha: Nonetorch_empty_cache_steps: Noneauto_find_batch_size: Falselog_on_each_node: Truelogging_nan_inf_filter: Trueinclude_num_input_tokens_seen: nolog_level: passivelog_level_replica: warningdisable_tqdm: Falseproject: huggingfacetrackio_space_id: Nonetrackio_bucket_id: Nonetrackio_static_space_id: Noneper_device_eval_batch_size: 16prediction_loss_only: Trueeval_on_start: Falseeval_do_concat_batches: Trueeval_use_gather_object: Falseeval_accumulation_steps: Noneinclude_for_metrics: []batch_eval_metrics: Falsesave_only_model: Falsesave_on_each_node: Falseenable_jit_checkpoint: Falsepush_to_hub: Falsehub_private_repo: Nonehub_model_id: Nonehub_strategy: every_savehub_always_push: Falsehub_revision: Noneload_best_model_at_end: Falseignore_data_skip: Falserestore_callback_states_from_checkpoint: Falsefull_determinism: Falseseed: 42data_seed: Noneuse_cpu: Falseaccelerator_config: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}parallelism_config: Nonedataloader_drop_last: Falsedataloader_num_workers: 0dataloader_pin_memory: Truedataloader_persistent_workers: Falsedataloader_prefetch_factor: Noneremove_unused_columns: Truelabel_names: Nonetrain_sampling_strategy: randomlength_column_name: lengthddp_find_unused_parameters: Noneddp_bucket_cap_mb: Noneddp_broadcast_buffers: Falseddp_static_graph: Noneddp_backend: Noneddp_timeout: 1800fsdp: Nonefsdp_config: Nonedeepspeed: Nonedebug: []skip_memory_metrics: Truedo_predict: Falseresume_from_checkpoint: Nonewarmup_ratio: Nonelocal_rank: -1prompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robinrouter_mapping: {}learning_rate_mapping: {}@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",
}
Base model
nreimers/MiniLM-L6-H384-uncased