Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks
Paper
•
1908.10084
•
Published
•
9
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, 'architecture': '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("zlf18/projfinetuned")
# Run inference
sentences = [
'Customer Engineering Manager, State Local Education, Public Sector',
"Customer Engineering Manager, State Local Education, Public Sector Google Lead a team of Customer Engineers and build a thriving growth culture. Focus on talent strategy and skills development to deliver on successful cloud transformation outcomes for our customers and accelerate business goals for your territory.\nFoster strong partnerships with key customers across the book of business. Provide leadership related to cloud, transformation and relevant industry trends.\nPartner with Google Cloud Sales leadership to define technical go-to-market strategies and execution plan for the team's book of business.\nBalance technical leadership with operational excellence; lead workload and opportunity review meetings and provide insight into how to achieve a technical agreement and migration strategy, working directly with our customers, partners, and prospects.\nWork cross-functionally across Google, our partners, and your team to resolve technical roadblocks including capacity needs, constraints and product issues affecting customer satisfaction. Bachelor's degree or equivalent practical experience.\n10 years of experience with cloud native architecture in a customer-facing or support role.\n3 years of leadership experience, such as people management, team lead, mentorship, or coaching.\nExperience as a Pre-Sales Manager or a people manager in a technical customer-facing role within a Sales Engineering team.\nAbility to travel up to 50% of the time as needed.\n2 years of experience supporting or selling to state, county, local municipal agencies, and academic institutions.\nExperience with software life-cycles, building tools, and architecting and developing software for scalable, distributed systems, including data platform, AI/ML including Generative AI and infrastructure.\nExperience managing a team through sales processes, operations and career development, including account mapping, quota setting, quarterly/annual performance management, and managing sensitive information.\nExperience presenting to technical stakeholders and executive leaders, including delivering messages by the audience, asking tactical questions, and leading conversations that drive business opportunities.\nGoogle is a global company and, in order to facilitate efficient collaboration and communication globally, English proficiency is a requirement for all roles unless stated otherwise in the job posting. The Google Cloud Platform team helps customers transform and build what's next for their business — all with technology built in the cloud. Our products are developed for security, reliability and scalability, running the full stack from infrastructure to applications to devices and hardware. Our teams are dedicated to helping our customers — developers, small and large businesses, educational institutions and government agencies — see the benefits of our technology come to life. As part of an entrepreneurial team in this rapidly growing business, you will play a key role in understanding the needs of our customers and help shape the future of businesses of all sizes use technology to connect with customers, employees and partners.\nGoogle Cloud accelerates every organization’s ability to digitally transform its business and industry. We deliver enterprise-grade solutions that leverage Google’s cutting-edge technology, and tools that help developers build more sustainably. Customers in more than 200 countries and territories turn to Google Cloud as their trusted partner to enable growth and solve their most critical business problems.\nTo all recruitment agencies: Google does not accept agency resumes. Please do not forward resumes to our jobs alias, Google employees, or any other organization location. Google is not responsible for any fees related to unsolicited resumes.",
"Cook 4 - Full Time, $32.58/hour Aulani, A Disney Resort & Spa Prepares, seasons and cooks to order menu items for all meals throughout the day, including Breakfast, Lunch and Dinner meal periods\nPortions and arranges food on serving dishes and is responsible for portion control and plate presentation\nMay cook, mix, and/or season ingredients to make dressings, sauces, gravies, batters, fillings and spreads\nMay wash, peel, slice, scoop, dice and julienne vegetables and fruits\nPrepares, measures, mixes (following recipes) and/or cooks and garnishes basic appetizers (hot or cold), salads, pastas, sandwich fillings, Waffles and other food items\nSome knowledge of cooking equipment such as grill, gas range, electric range, broiler, deep fat fryer, serving table, waffle iron, griddle, skillets and other standard kitchen equipment\nAbility to prepare products according to recipe guidelines\nKnowledge and understanding of kitchen safety and sanitation including temperature requirements\nHas good judgment of food quality and production, understands the impact of spoilage\nAbility to assist Chef in preparing items for Guests with special dietary needs\nCleans kitchen equipment and practices HACCP (Hazard Analysis and Critical Control Points) Procedures\nExplore our commitments and our work to create a better world through our stories, experiences, operations, and philanthropy. Experience in culinary field/high volume restaurant minimum 3-6 months, or up to 1 year\nAbility to multi task and work in a very fast paced team environment\nDemonstrates a desire to work in a guest service and team environment\nDemonstrates passion and enthusiasm for working in the kitchen\nStrong listening skills and ability to follow direction\nEnrolled in a culinary education program or equivalent\nRecommendation from school\nFood Safety Certification or equivalent\nKnowledge of Hawaiian/Japanese language preferred\nBe Part of the Story There are many different brands and businesses to explore. Once you've found the opportunity that is right for you, take the next step by completing your application.\nThere are many different brands and businesses to explore. Once you've found the opportunity that is right for you, take the next step by completing your application.\nGet the latest job opportunities as they become available.\nJob Category Select a Job Category Administration Animation and Visual Effects Architecture and Design Asset Management Banking Building, Construction and Facilities Business Strategy and Development Call Center Communications Creative Culinary Data Science and Analytics Disneyland Resort Casting Hourly Engineering Finance and Accounting Food and Beverage Gaming and Interactive Governmental Affairs Graphic Design Health Services Horticulture and Landscaping Hotel and Resorts Human Resources Legal and Business Affairs Licensing Maritime and Cruise Operations Marketing and Digital Media Merchandising Operations Production Project Management Publishing Quality Assurance Research and Development Retail Operations Sales Sciences and Animal Programs Security Social Responsibility Sports and Recreation Stage Productions Supply Chain Management Talent Technology Theme Park Operations Walt Disney World Casting Hourly\nJob Level Select Professional Operations / Production Internships / Programs Management Business Support / Administrative Executive Talent 100% full coverage of healthcare for you and your eligible dependents\nFree theme park admission and much more!\nCombining the natural beauty and spirit of the Hawaiian islands with a touch of Disney magic, Aulani, a Disney Resort & Spa embraces and celebrates Hawaiian culture and storytelling. Situated on 21 acres of oceanfront property on the island of O‘ahu, the resort was uniquely designed for families to discover the culture, history and traditions of Hawai‘i against a backdrop of blue skies and beautiful views. Cast members are integral to bringing these stories of Hawai‘i to life, while upholding Disney’s renowned service and enchanting entertainment offerings.\nThe Walt Disney Company, together with its subsidiaries and affiliates, is a leading diversified international family entertainment and media enterprise that includes three core business segments: Disney Entertainment, ESPN, and Disney Experiences. From humble beginnings as a cartoon studio in the 1920s to its preeminent name in the entertainment industry today, Disney proudly continues its legacy of creating world-class stories and experiences for every member of the family. Disney’s stories, characters and experiences reach consumers and guests from every corner of the globe. With operations in more than 40 countries, our employees and cast members work together to create entertainment experiences that are both universally and locally cherished.\nWhere Does Your Story Begin? Explore Disney Careers and the Life at Disney blog to learn about all the amazing opportunities waiting to be discovered at The Walt Disney Company.\nExplore Disney Careers and the Life at Disney blog to learn about all the amazing opportunities waiting to be discovered at The Walt Disney Company.\nOur senior executives bring tremendous experience, visionary thinking and a shared commitment to excellence, creativity and innovation to the day to day operation of the company.\nAt Disney, we are committed to creating a better world. A world of belonging where each person feels seen, heard, and understood. A world filled with hope and promise.\nHeroes Work Here reflects the long history of respect and appreciation Disney has for the U.S. Armed Services. We recognize the commitment and dedication it takes to serve your country, both as military personnel and military spouses, and value the leadership skills and sense of purpose it has instilled in you.",
]
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.5033, 0.0885],
# [0.5033, 1.0000, 0.0802],
# [0.0885, 0.0802, 1.0000]])
sentence_0 and sentence_1| sentence_0 | sentence_1 | |
|---|---|---|
| type | string | string |
| details |
|
|
| sentence_0 | sentence_1 |
|---|---|
UX Researcher |
UX Researcher Dropbox Design and conduct user research studies, including interviews, surveys, and A/B testing. |
Senior PC Support Technician |
Senior PC Support Technician Public Storage Diagnose systems and equipment failures and perform corrective actions to resolve any issues. |
Full Stack Software Engineer, GSCCE |
Full Stack Software Engineer, GSCCE Boeing Designs, develops, analyzes, and maintains software systems that meet industry, customer and internal quality, safety, security and certification standards. |
MultipleNegativesRankingLoss with these parameters:{
"scale": 20.0,
"similarity_fct": "cos_sim",
"gather_across_devices": false
}
per_device_train_batch_size: 16per_device_eval_batch_size: 16num_train_epochs: 1multi_dataset_batch_sampler: round_robinoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: noprediction_loss_only: Trueper_device_train_batch_size: 16per_device_eval_batch_size: 16per_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: 1max_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}parallelism_config: Nonedeepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torch_fusedoptim_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: Falsehub_revision: Nonegradient_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: Noneinclude_tokens_per_second: Falseinclude_num_input_tokens_seen: Falseneftune_noise_alpha: Noneoptim_target_modules: Nonebatch_eval_metrics: Falseeval_on_start: Falseuse_liger_kernel: Falseliger_kernel_config: Noneeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: 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",
}
@misc{henderson2017efficient,
title={Efficient Natural Language Response Suggestion for Smart Reply},
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
year={2017},
eprint={1705.00652},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Base model
sentence-transformers/all-MiniLM-L6-v2