SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
This is a sentence-transformers model finetuned from sentence-transformers/paraphrase-multilingual-MiniLM-L12-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.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
- Maximum Sequence Length: 512 tokens
- Output Dimensionality: 384 dimensions
- Similarity Function: Cosine Similarity
Model Sources
- Documentation: Sentence Transformers Documentation
- Repository: Sentence Transformers on GitHub
- Hugging Face: Sentence Transformers on Hugging Face
Full Model Architecture
SentenceTransformer(
(0): Transformer({'max_seq_length': 512, '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})
)
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("itoktobenotok/sbert-finetuned-jobs")
# Run inference
sentences = [
'I am a mid with 3.06091718 years of experience. Innovative JavaScript Developer with extensive experience in front-end frameworks and building interactive user interfaces using React and Angular. Skilled in JavaScript, Flask, Spring, Angular, Oracle, Google Cloud. Experience: Javascript Developer: Optimized system performance and reduced latency. Javascript Developer: Developed and maintained CI/CD pipelines.',
'Hiring for Sr Fullstack R&D Developer (NestJS, NodeJS). Keywords: NodeJS, NestJS, JavaScript. Requirements: WHO YOU ARE, 5+ years of expert experience with NodeJS (NestJS), and Angular (or React, Vue, etc.), 5+ years of excellent work experience designing, building, scaling, managing high-performing, APIs., Excellent work experience with both relational and non-relational database systems., You enjoy exploring & working with new technologies & better ways of doing things using industry best practices., You are comfortable working in a lean startup environment with an aggressive delivery timeline and challenging problems., You are a team player who works well across team boundaries to get things done, is willing to wear multiple hats when needed, and does what is best for the product., You are very experienced in optimizing code, architecture, and other technical aspects, HUGE PLUS IF YOU ARE/HAVE, Expert experience with popular open source frameworks., Expert experience in building complex, scalable, high-performing services & systems, Strong experience developing native iOS apps, Strong hands-on experience enabling multi-threading, caching techniques, multi-platform synchronization, and microservices., Excellent experience and understanding of architectural patterns for a large, high-scale data platform (e.g., well-designed APIs, high volume data pipelines, efficient algorithms)..',
'Hiring for Software Engineer - Front End - Lương cạnh tranh. Keywords: TypeScript, Git, CI/CD, NextJS, ReactJS, React Native. Requirements: 3–5+ years of hands-on experience in front-end engineering., Strong proficiency in React, Next.js, TypeScript, and the modern FE ecosystem., Solid understanding of REST API integration, state management, caching strategies, and rendering optimization., Experience with React Native (or willingness to learn quickly)., Familiarity with build tools such as Webpack/Vite, plus CI/CD workflows, Git, and FE testing frameworks..',
]
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.6787, 0.8314],
# [0.6787, 1.0000, 0.6328],
# [0.8314, 0.6328, 1.0000]])
Evaluation
Metrics
Binary Classification
- Evaluated with BinaryClassificationEvaluator
| Metric | Value |
|---|---|
| cosine_accuracy | 0.84 |
| cosine_accuracy_threshold | 0.4401 |
| cosine_f1 | 0.8466 |
| cosine_f1_threshold | 0.4401 |
| cosine_precision | 0.8129 |
| cosine_recall | 0.8833 |
| cosine_ap | 0.9138 |
| cosine_mcc | 0.6826 |
Training Details
Training Dataset
Unnamed Dataset
- Size: 2,800 training samples
- Columns: sentence_0, sentence_1, and label
- Approximate statistics based on the first 1000 samples:
sentence_0 sentence_1 label type string string float details min: 66 tokensmean: 100.95 tokensmax: 128 tokens min: 25 tokensmean: 284.78 tokensmax: 506 tokens min: 0.0mean: 0.51max: 1.0 - Samples:
sentence_0 sentence_1 label I am a mid-senior with 5.2046543463 years of experience. Thousand protect property pick. Cause painting little health with environmental. His option memory become war. Decade old add ask Republican. Skilled in Go, C++, JavaScript, Vue, Flask, Node.js, Redis, AWS. Experience: Node.Js Developer: Designed and implemented machine learning models. Node.Js Developer: Collaborated with cross-functional teams to design new features. Hiring for Senior System Operation. Keywords: System Admin, Azure, Microservices, Linux, Database, SAP. Requirements: Trình độ chuyên môn/Bằng cấp: Tốt nghiệp Đại học trở lên các chuyên ngành CNTT, Hệ thống Thông tin., Kinh nghiệm làm việc:, Tối thiểu 10 năm kinh nghiệm trong ngành IT và 07 năm kinh nghiệm trong vai trò System Admin trong môi trường Tập Đoàn Bất Động Sản, khách sạn/nghỉ dưỡng, xây dựng…, Có kinh nghiệm vận hành hạ tầng hệ thống SAP (hệ điều hành, database, backup/recovery), quản lý phân quyền và giám sát hiệu suất hệ thống SAP., Kiến thức chuyên môn:, Linux: Kiến thức vững chắc về các hệ điều hành Linux (SUSE, Ubuntu, RedHat, v.v.) và kinh nghiệm quản trị server Linux ở mức độ chuyên sâu, Hệ thống và bảo mật: Nắm vững kiến thức về ảo hóa (VMware/Hyper-V), lưu trữ (Storage), Network Security Infrastructure, Cloud Services (Azure/AWS), Endpoint security., Kinh nghiệm vận hành (SysOps) thực tế với các công nghệ Docker và Kubernetes (K8s) (triển khai, scaling, giám sát co... 0.0 I am a mid-senior with 5.7166324435 years of experience. Creative iOS Developer with a focus on building elegant and user-friendly applications for Apple devices. Proficient in Swift, Xcode, and iOS SDK. Skilled in Python, Swift, Spring, Vue, Redis, PostgreSQL, Google Cloud. Experience: Ios Developer: Deployed applications on cloud platforms and ensured scalability. Ios Developer: Ensured application responsiveness and seamless user experience. Hiring for UX/UI Designer. Keywords: UI-UX, Design. Requirements: • Bachelor’s degree in Graphic Design, Visual Communication, Multimedia, or a related field., • At least 3 years of experience in UX/UI design for websites or mobile applications, with a portfolio demonstrating a complete design process., • Proficient in Figma, Sketch, Adobe XD, Photoshop, and Illustrator, with a solid understanding of color theory, layout, typography, and responsive design principles., • Experienced in building and maintaining Design Systems to ensure consistency across products., • Strong understanding of user behavior, user flows, wireframes, prototyping, and usability testing., • Ability to balance user experience with business objectives., • Excellent communication skills and ability to collaborate effectively with product, development, and marketing teams., • Creative mindset with a passion for learning and staying updated on the latest design trends and technologies., • Capable of understanding bu... 0.0 I am a mid with 4.2600958248 years of experience. Technical Architect with a focus on designing complex software systems and defining technical requirements. Skilled in cloud architecture and system integration. Skilled in C#, Java, C++, Python, Flask, Vue, Angular, MongoDB, Azure. Experience: Technical Architect: Utilized version control effectively in a team environment. Hiring for Technical Team Leader (Javascript, MongoBD, NodeJS). Keywords: JavaScript, MongoDB, Design Systems, AWS, NodeJS. Requirements: Tối thiểu 5+ năm kinh nghiệm phát triển phần mềm, trong đó ít nhất 1–2 năm làm Lead/Senior., Kinh nghiệm vững vàng với JavaScript (Typescript), Node.js, React, ThreeJS, MongoDB, Thành thạo các dịch vụ AWS như S3, API Gateway, VPC, EC2, Có kỹ năng DevOps, hiểu biết về CI/CD, Docker, Linux, Có khả năng viết script (Python, Bash hoặc các ngôn ngữ khác), Nhiều kinh nghiệm về System Design và Design Patterns, Nắm rõ các tiêu chuẩn bảo mật và yêu cầu tuân thủ, Khả năng giải quyết vấn đề xuất sắc và chủ động trong các nhiệm vụ phức tạp, thay đổi nhanh, Kỹ năng giao tiếp tốt bằng tiếng Anh và tiếng Việt là bắt buộc. 0.0 - Loss: CosineSimilarityLoss with these parameters:
{ "loss_fct": "torch.nn.modules.loss.MSELoss" }
Training Hyperparameters
Non-Default Hyperparameters
eval_strategy: stepsper_device_train_batch_size: 32per_device_eval_batch_size: 32num_train_epochs: 4fp16: Truemulti_dataset_batch_sampler: round_robin
All Hyperparameters
overwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 32per_device_eval_batch_size: 32per_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: 4max_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: Falsebf16: Falsefp16: Truefp16_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: lengthproject: huggingfacetrackio_space_id: trackioddp_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: noneftune_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: Trueprompts: Nonebatch_sampler: batch_samplermulti_dataset_batch_sampler: round_robinrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | cosine_ap |
|---|---|---|
| 0.0909 | 8 | 0.6957 |
| 0.1818 | 16 | 0.7554 |
| 0.2727 | 24 | 0.7909 |
| 0.3636 | 32 | 0.8102 |
| 0.4545 | 40 | 0.8189 |
| 0.5455 | 48 | 0.8243 |
| 0.6364 | 56 | 0.8294 |
| 0.7273 | 64 | 0.8375 |
| 0.8182 | 72 | 0.8415 |
| 0.9091 | 80 | 0.8499 |
| 1.0 | 88 | 0.8620 |
| 1.0909 | 96 | 0.8669 |
| 1.1818 | 104 | 0.8669 |
| 1.2727 | 112 | 0.8775 |
| 1.3636 | 120 | 0.8858 |
| 1.4545 | 128 | 0.8888 |
| 1.5455 | 136 | 0.8910 |
| 1.6364 | 144 | 0.8925 |
| 1.7273 | 152 | 0.8961 |
| 1.8182 | 160 | 0.9035 |
| 1.9091 | 168 | 0.9034 |
| 2.0 | 176 | 0.9042 |
| 2.0909 | 184 | 0.9088 |
| 2.1818 | 192 | 0.9114 |
| 2.2727 | 200 | 0.9131 |
| 2.3636 | 208 | 0.9129 |
| 2.4545 | 216 | 0.9109 |
| 2.5455 | 224 | 0.9111 |
| 2.6364 | 232 | 0.9094 |
| 2.7273 | 240 | 0.9094 |
| 2.8182 | 248 | 0.9102 |
| 2.9091 | 256 | 0.9103 |
| 3.0 | 264 | 0.9105 |
| 3.0909 | 272 | 0.9111 |
| 3.1818 | 280 | 0.9107 |
| 3.2727 | 288 | 0.9122 |
| 3.3636 | 296 | 0.9119 |
| 3.4545 | 304 | 0.9133 |
| 3.5455 | 312 | 0.9125 |
| 3.6364 | 320 | 0.9128 |
| 3.7273 | 328 | 0.9132 |
| 3.8182 | 336 | 0.9135 |
| 3.9091 | 344 | 0.9138 |
Framework Versions
- Python: 3.12.12
- Sentence Transformers: 5.2.0
- Transformers: 4.57.3
- PyTorch: 2.9.0+cu126
- Accelerate: 1.12.0
- Datasets: 4.0.0
- Tokenizers: 0.22.1
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",
}