Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 32768, 'do_lower_case': False, 'architecture': 'Qwen3Model'})
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': True, 'include_prompt': True})
(2): Normalize()
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("frankwong2001/4_attempt_Qwen3-Embedding-0.6B")
5# Run inference
6queries = [
7 "The Occupational Hygiene Officer is responsible for identifying, assessing and advising on risks arising from the workplace or work processes, recommending measures to eliminate or minimise and control the risks, and implementing the measures. He/she is also responsible for preventing or reducing health and environmental risks, and improving quality of processes. He is expected to supervise a quality HSE team and work with internal and external stakeholders to accomplish his work. The Occupational Hygiene Officer is expected to be analytical, resourceful, good teamwork and collaborative in order to solve problems.",
8]
9documents = [
10 'The Occupational Hygiene Officer is tasked with identifying, evaluating, and providing guidance on risks associated with the workplace or work procedures, suggesting strategies to eliminate, minimize, and manage those risks, and executing the recommended measures. Additionally, he/she is responsible for mitigating health and environmental hazards while enhancing process quality. The role requires supervising a competent HSE team and collaborating with both internal and external stakeholders to achieve objectives. The Occupational Hygiene Officer should possess strong analytical skills, resourcefulness, and the ability to work well in teams to effectively address challenges.',
11 'The Software Developer is focused on designing and creating innovative applications and systems, ensuring they meet user needs and industry standards. He/she works closely with the development team to implement new features and resolve technical issues, while also conducting regular code reviews and testing. The Software Developer is expected to have strong programming skills, attention to detail, and the ability to work independently to deliver high-quality software solutions.',
12 'The Senior Director/Director is responsible for guiding the organization in creating, developing, executing, and assessing policies. He/She spearheads the policy planning initiatives within the organization. He reviews policies in the context of other regulations, legislations, and programs. He facilitates discussions on the implementation of policies and ensures the sharing of key policy insights across the sector. A seasoned professional with deep insight, strong decision-making abilities, and exceptional leadership and management skills, the Senior Director/Director operates within schools, ministries, and institutional environments.',
13]
14query_embeddings = model.encode_query(queries)
15document_embeddings = model.encode_document(documents)
16print(query_embeddings.shape, document_embeddings.shape)
17# [1, 1024] [3, 1024]
18
19# Get the similarity scores for the embeddings
20similarities = model.similarity(query_embeddings, document_embeddings)
21print(similarities)
22# tensor([[0.8771, 0.2480, 0.3592]])anchor, positive, and negative| anchor | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| anchor | positive | negative |
|---|---|---|
The Audit Associate/Audit Assistant Associate undertakes specific stages of audit work under supervision. He/She begins to appreciate the underlying principles behind the tasks assigned to him as part of the audit plan. He is also able to make adjustments to the application of skills to improve the work tasks or solve non-complex issues. The Audit Associate/Audit Assistant Associate operates in a structured work environment. He is able to build relationships, work in a team and identify ethical issues with reference to the code of professional conduct and ethics. He is able to select and apply from a range of known solutions to familiar problems and takes responsibility for his own learning and performance. He is a trustworthy and meticulous individual. | The Audit Associate/Audit Assistant Associate is responsible for executing specific stages of the audit process under guidance. They begin to understand the fundamental principles behind their assigned tasks as part of the audit plan. Additionally, they can adapt their skills to enhance work tasks or address simple issues. The Audit Associate/Audit Assistant Associate works within a structured environment, builds relationships, collaborates effectively in a team, and recognizes ethical concerns in accordance with the professional code of conduct. They are capable of selecting and implementing known solutions to familiar challenges and take ownership of their learning and performance. They are a reliable and detail-oriented professional. | The Marketing Coordinator develops promotional strategies and manages social media campaigns for brand awareness. They focus on creating engaging content and analyzing market trends to attract new customers. The Marketing Coordinator collaborates with various departments, ensuring alignment in messaging and objectives. They are responsible for organizing promotional events and measuring the effectiveness of marketing initiatives. They are an innovative and creative thinker. |
The Audit Senior Manager/Audit Manager manages a portfolio of engagements to deliver high quality audit services. He/she also provides leadership on audit engagements which includes client acceptance process, engagement planning, execution and finalisation of an audit engagement. He is fully accountable for the audit engagement and ensures that the engagement progress against budget and timeline is closely monitored. He also serves to develop and maintain long-term client relationships and value-add to the audit firm by identifying new business development opportunities. The Audit Senior Manager/Audit Manager reviews and provides key technical expertise to ensure the quality of audit work performed is in compliance with professional standards and requirements. He contributes towards continuous improvement in audit methodology and process. He will also assume a greater role in professional development activities such as training, staff recruitment and resource planning. | The Audit Senior Manager/Audit Manager is responsible for overseeing a portfolio of audit engagements to deliver high-quality audit services. He/she leads the audit process, which includes client acceptance, planning, execution, and finalization of audits. The Audit Senior Manager/Audit Manager is fully accountable for each engagement and ensures that progress aligns with budget and timelines. Additionally, he/she focuses on developing and maintaining long-term client relationships while identifying opportunities for new business development to enhance the audit firm's value. The role also involves reviewing audit work to ensure compliance with professional standards and contributing to the continuous improvement of audit methodologies and processes. Furthermore, he/she plays a significant role in professional development activities, including training, staff recruitment, and resource planning. | The Marketing Coordinator organizes promotional events and campaigns to enhance brand awareness. He/she collaborates with various teams to create engaging content and ensure consistent messaging across all channels. The Marketing Coordinator is responsible for analyzing market trends and customer feedback to optimize marketing strategies. Additionally, he/she manages social media accounts and develops relationships with influencers to expand the company's reach. The role also involves tracking campaign performance and reporting on key metrics to measure success. |
The Audit Partner/Audit Director is a transformational leader who steers the organisation to achieve its business goals and objectives by formulating technical and strategic directions to drive change. He/She provides strategic vision and leadership to the organisation in order to develop and strengthen organisational capabilities and culture. The Audit Partner/Audit Director is expected to promote new ideas and business solutions that result in extended services to existing clients. He constantly seeks to expand client base and support business development activities. He also establishes consistent and rigorous quality and risk management processes and procedures. The Audit Partner/Audit Director uses a multitude of controls and procedures consisting professional, regulatory, business, economic, social and environmental conditions to manage risk exposure. | The Audit Partner/Audit Director acts as a transformational leader who guides the organization towards achieving its business objectives by developing strategic and technical approaches to facilitate change. He/She offers strategic vision and leadership to enhance the organization's capabilities and culture. The Audit Partner/Audit Director is tasked with introducing innovative ideas and business solutions that extend services to current clients. He actively seeks to grow the client base and supports initiatives for business development. Additionally, he establishes thorough and consistent quality and risk management processes and procedures. The Audit Partner/Audit Director utilizes a variety of controls and procedures that encompass professional, regulatory, business, economic, social, and environmental factors to manage risk exposure. | The Software Developer designs and implements new applications for mobile devices, focusing on user interface and experience. He/She collaborates with teams to ensure that software products meet customer needs and industry standards. The Software Developer is responsible for debugging and troubleshooting issues to enhance product performance. He also conducts code reviews and provides mentorship to junior developers, ensuring high-quality software development practices. |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim",
4 "gather_across_devices": false
5}anchor, positive, and negative| anchor | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| anchor | positive | negative |
|---|---|---|
The Engineering Head (Power) is a subject matter expert on rail power systems. He/She leads the organisation to implement rail power systems maintenance regime and improvement strategies. His duties also include translating and aligning established industry standards into department Key Performance Indicators (KPIs). He possesses a strong understanding of leading engineering practices, operational best practices, industry developments and regulatory requirements and he translates these into organisation practices and performance requirements. He possesses strong leadership skills, is able to cultivate a culture of continuous improvement and demonstrates excellent management skills to achieve the departments operational and functional goals. | The Engineering Head (Power) serves as a subject matter expert on rail power systems, guiding the organization in implementing maintenance regimes and strategies for improvement. His responsibilities also involve translating and aligning established industry standards into departmental Key Performance Indicators (KPIs). With a deep understanding of leading engineering practices, operational best practices, industry developments, and regulatory requirements, he effectively integrates these aspects into organizational practices and performance expectations. He demonstrates strong leadership abilities, fosters a culture of continuous improvement, and showcases excellent management skills to meet the operational and functional objectives of the department. | The Marketing Coordinator develops engaging social media content to enhance brand visibility and customer engagement. He/She collaborates with creative teams to design promotional materials and ensures timely delivery of marketing campaigns. With a keen eye for detail, he/she analyzes customer feedback to optimize future strategies and improve audience reach. Strong communication skills are essential for this role, as well as a passion for market trends and consumer behavior analysis. |
The Engineering Head (Rolling Stock/Engineering Train) is a technical subject matter expert on passenger trains and engineering trains within the organisation. He/She represents the organisation when interfacing with internal and/or external stakeholders to implement enhancement strategies to improve rail reliability and maintainability. His duties also include translating and aligning established industry standards into department Key Performance Indicators (KPIs). He possesses a strong understanding of leading engineering practices, operational best practices, industry developments and regulatory requirements and he translates these into organisation practices and performance requirements. He possesses strong leadership skills, is able to foster a culture of continuous improvement and demonstrates excellent management skills to achieve the departments operational and functional objectives. | The Engineering Head (Rolling Stock/Engineering Train) serves as a technical expert on passenger and engineering trains within the organization. He/She represents the organization in interactions with both internal and external stakeholders to implement strategies aimed at enhancing rail reliability and maintainability. His responsibilities also involve translating established industry standards into department Key Performance Indicators (KPIs). He possesses a deep understanding of leading engineering practices, operational best practices, industry trends, and regulatory obligations, which he effectively integrates into organizational practices and performance standards. He demonstrates strong leadership abilities, promotes a culture of continuous improvement, and exhibits excellent management skills to meet the department's operational and functional goals. | The Marketing Specialist develops creative advertising strategies and manages promotional campaigns for various products. He/She conducts market research to understand consumer behavior and trends, ensuring that marketing efforts are effectively aligned with target audiences. His responsibilities include designing engaging content for social media platforms and collaborating with graphic designers to produce visually appealing materials. He possesses strong analytical skills, is adept at using marketing software, and demonstrates exceptional communication abilities to enhance brand visibility and customer engagement. |
The Engineering Head (Signal and Communications) is a subject matter expert of signal, communication and control systems. He/She drives the organisation's signal, communication and control systems maintenance regime and engineering standards, as well as translating and aligning established industry standards and regulatory requirements into department Key Performance Indicators (KPIs). He maintains a close link with internal and external stakeholders to implement enhancement strategies to improve rail reliability and maintainability. He possesses strong leadership skills, is able to cultivate a culture of continuous improvement through an in-depth appreciation of leading engineering best- practices and industry developments. He also demonstrates excellent management skills to achieve the departments operational and functional objectives. | The Engineering Head (Signal and Communications) is an expert in signal, communication, and control systems. He/She leads the maintenance regime and engineering standards for the organization’s signal, communication, and control systems, while also translating industry standards and regulatory requirements into departmental Key Performance Indicators (KPIs). He maintains strong relationships with both internal and external stakeholders to implement strategies that enhance rail reliability and maintainability. With strong leadership abilities, he fosters a culture of continuous improvement by deeply understanding leading engineering best practices and industry advancements. Additionally, he showcases excellent management skills to fulfill the operational and functional objectives of the department. | The Marketing Specialist develops creative advertising strategies to engage potential customers and enhance brand visibility. He/She works closely with the design team to produce eye-catching promotional materials and ensures that all marketing campaigns align with the company’s vision and values. With a strong focus on market research, he analyzes consumer behavior to optimize outreach efforts and increase customer engagement. |
MultipleNegativesRankingLoss with these parameters:
1{
2 "scale": 20.0,
3 "similarity_fct": "cos_sim",
4 "gather_across_devices": false
5}eval_strategy: epochper_device_train_batch_size: 32per_device_eval_batch_size: 16gradient_accumulation_steps: 16learning_rate: 2e-05weight_decay: 0.01max_grad_norm: 0.5num_train_epochs: 5lr_scheduler_type: cosinewarmup_ratio: 0.1warmup_steps: 1500bf16: Truetf32: Falseload_best_model_at_end: Truegradient_checkpointing: Truebatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: epochprediction_loss_only: Trueper_device_train_batch_size: 32per_device_eval_batch_size: 16per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 16eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 0.5num_train_epochs: 5max_steps: -1lr_scheduler_type: cosinelr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_steps: 1500log_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: Truefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Falselocal_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: Trueignore_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_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: Truegradient_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: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 1.0 | 3 | 0.0139 | 0.0185 |
| 2.0 | 6 | 0.0178 | 0.0184 |
| 3.0 | 9 | 0.0144 | 0.0184 |
| 4.0 | 12 | 0.0135 | 0.0184 |
| 5.0 | 15 | 0.015 | 0.0181 |
1@inproceedings{reimers-2019-sentence-bert,
2 title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
3 author = "Reimers, Nils and Gurevych, Iryna",
4 booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
5 month = "11",
6 year = "2019",
7 publisher = "Association for Computational Linguistics",
8 url = "https://arxiv.org/abs/1908.10084",
9}1@misc{henderson2017efficient,
2 title={Efficient Natural Language Response Suggestion for Smart Reply},
3 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},
4 year={2017},
5 eprint={1705.00652},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL}
8}