SentenceTransformer based on sentence-transformers/all-MiniLM-L6-v2
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.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: sentence-transformers/all-MiniLM-L6-v2
- Maximum Sequence Length: 256 tokens
- Output Dimensionality: 384 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
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({})
)
Usage
Direct Usage (Sentence Transformers)
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]])
Training Details
Training Dataset
Unnamed Dataset
- Size: 500 training samples
- Columns: sentence_0, sentence_1, and label
- Approximate statistics based on the first 100 samples:
sentence_0 sentence_1 label type string string float modality text text details min: 256 tokensmean: 256.0 tokensmax: 256 tokens min: 256 tokensmean: 256.0 tokensmax: 256 tokens min: 0.05mean: 0.49max: 0.98 - Samples:
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 - Loss: CosineSimilarityLoss with these parameters:
{ "loss_fct": "torch.nn.modules.loss.MSELoss", "cos_score_transformation": "torch.nn.modules.linear.Identity" }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 16per_device_eval_batch_size: 16multi_dataset_batch_sampler: round_robin
All Hyperparameters
per_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: {}
Training Time
- Training: 19.4 minutes
Framework Versions
- Python: 3.14.5
- Sentence Transformers: 5.6.0
- Transformers: 5.12.1
- PyTorch: 2.12.1+cpu
- Accelerate: 1.14.0
- Datasets: 5.0.0
- Tokenizers: 0.22.2
Citation
BibTeX
Sentence Transformers
@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",
}