bslm-triplet-2.6M-qp
This is a sentence-transformers bi-encoder continued from mjaliz/bslm-pair-206k and trained on 2,673,575 ecommerce (query, positive product title, hard negative product title) triplets with TripletLoss. It maps Persian ecommerce queries and product titles to a 1024-dimensional dense vector space for retrieval.
Model Details
Model Description
- Model Type: Sentence Transformer
- Base model: mjaliz/bslm-pair-206k
- Maximum Sequence Length: 256 tokens
- Output Dimensionality: 1024 dimensions
- Similarity Function: Cosine Similarity
- Supported Modality: Text
- Training Dataset:
- json
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': 'XLMRobertaModel'})
(1): Pooling({'embedding_dimension': 1024, 'pooling_mode': 'mean', '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("sentence_transformers_model_id")
# Run inference
sentences = [
'پارچه چادری تور',
'پارچه تور گیپور کارشده مجلسی با دوخت طلایی و نگین کریستالی',
'کلمن شربت خوری پایه دار دیاموند ARCO مدل کریستالی مجلسی',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# [3, 1024]
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities)
# tensor([[ 1.0000, 0.6841, -0.0943],
# [ 0.6841, 1.0000, 0.0870],
# [-0.0943, 0.0870, 1.0000]])
Evaluation
Metrics
Triplet
- Dataset:
dev - Evaluated with TripletEvaluator
| Metric | Value |
|---|---|
| cosine_accuracy | 0.9986 |
Held-out hard-negative test set
- Dataset:
data/triplets/test.jsonl - Size: 27,300 triplets
- Evaluated with
TripletEvaluatorand cosine similarity.
| Metric | Value |
|---|---|
| cosine_accuracy | 0.9977 |
Training Details
Training Dataset
json
- Dataset: json
- Size: 2,673,575 training samples
- Columns: anchor, positive, and negative
- Approximate statistics based on the first 100 samples:
anchor positive negative type string string string modality text text text details min: 5 tokensmean: 8.45 tokensmax: 12 tokens min: 12 tokensmean: 22.57 tokensmax: 32 tokens min: 10 tokensmean: 21.52 tokensmax: 36 tokens - Samples:
anchor positive negative مانتو تابستانه سایزبزرگ مانتو زنانه بلند کتان لمه مهتابان (Mahtaban) مدل قیطوندوزی شده سایزبزرگ عروسک روسی خانم معلم با مانتو و شلوار رسمی، کتاب فارسی و کیف دستی مانتو تابستانه سایزبزرگ مانتو زنانه بلند کتان لمه مهتابان (Mahtaban) مدل قیطوندوزی شده سایزبزرگ مینی فیگور لگو هارلی کویین (Harley Quinn) دیسی طرح لوزی قرمز و مشکی شال توری بهاره شال توری مشکی لبه گیپور دار عروسک پولیشی Kuromi (کورومی) مدل لباس توری بنفش چشمکزن - Loss: TripletLoss with these parameters:
{ "distance_metric": "TripletDistanceMetric.COSINE", "triplet_margin": 0.2 }
Evaluation Dataset
json
- Dataset: json
- Size: 10,000 evaluation samples
- Columns: anchor, positive, and negative
- Approximate statistics based on the first 100 samples:
anchor positive negative type string string string modality text text text details min: 6 tokensmean: 7.16 tokensmax: 9 tokens min: 15 tokensmean: 22.46 tokensmax: 36 tokens min: 13 tokensmean: 22.34 tokensmax: 32 tokens - Samples:
anchor positive negative وایت ویت فلوئید ضد آفتاب Vitalayer (ویتالیر) Whitevit (وایت ویت) SPF50+ ضد لک و مقاوم در برابر تعریق کاور محافظ موبایل AF038 طرح استتار Off-White (آف-وایت) برای هواوی Nova 7i/P40 Lite وایت ویت فلوئید ضد آفتاب Vitalayer (ویتالیر) Whitevit (وایت ویت) SPF50+ ضد لک و مقاوم در برابر تعریق پاکت ساندویچ Penguin (پنگوئن) 100 عددی یکبار مصرف مقاوم در برابر چربی وایت ویت فلوئید ضد آفتاب Vitalayer (ویتالیر) Whitevit (وایت ویت) SPF50+ ضد لک و مقاوم در برابر تعریق اسپری ضد آفتاب کودک Hydroderm (هیدرودرم) SPF 30 فیزیکال حجم 100 میلی لیتر - Loss: TripletLoss with these parameters:
{ "distance_metric": "TripletDistanceMetric.COSINE", "triplet_margin": 0.2 }
Training Hyperparameters
Non-Default Hyperparameters
per_device_train_batch_size: 32num_train_epochs: 1.0learning_rate: 5e-06warmup_steps: 0.1weight_decay: 0.01bf16: Trueper_device_eval_batch_size: 256load_best_model_at_end: Truedataloader_num_workers: 4
All Hyperparameters
per_device_train_batch_size: 32num_train_epochs: 1.0max_steps: -1learning_rate: 5e-06lr_scheduler_type: linearlr_scheduler_kwargs: Nonewarmup_steps: 0.1optim: adamw_torch_fusedoptim_args: Noneweight_decay: 0.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08optim_target_modules: Nonegradient_accumulation_steps: 1average_tokens_across_devices: Truemax_grad_norm: 1.0label_smoothing_factor: 0.0bf16: Truefp16: 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: 256prediction_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: Trueignore_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: Truedataloader_num_workers: 4dataloader_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: proportionalrouter_mapping: {}learning_rate_mapping: {}
Training Logs
| Epoch | Step | Training Loss | Validation Loss | dev_cosine_accuracy |
|---|---|---|---|---|
| 0.0036 | 100 | 0.0052 | - | - |
| 0.0072 | 200 | 0.0053 | - | - |
| 0.0108 | 300 | 0.0044 | - | - |
| 0.0144 | 400 | 0.0043 | - | - |
| 0.0180 | 500 | 0.0045 | - | - |
| 0.0215 | 600 | 0.0043 | - | - |
| 0.0251 | 700 | 0.0041 | - | - |
| 0.0287 | 800 | 0.0045 | - | - |
| 0.0323 | 900 | 0.0041 | - | - |
| 0.0359 | 1000 | 0.0040 | 0.0031 | 0.9958 |
| 0.0395 | 1100 | 0.0039 | - | - |
| 0.0431 | 1200 | 0.0037 | - | - |
| 0.0467 | 1300 | 0.0039 | - | - |
| 0.0503 | 1400 | 0.0033 | - | - |
| 0.0539 | 1500 | 0.0042 | - | - |
| 0.0575 | 1600 | 0.0035 | - | - |
| 0.0610 | 1700 | 0.0032 | - | - |
| 0.0646 | 1800 | 0.0038 | - | - |
| 0.0682 | 1900 | 0.0035 | - | - |
| 0.0718 | 2000 | 0.0034 | 0.0029 | 0.9967 |
| 0.0754 | 2100 | 0.0035 | - | - |
| 0.0790 | 2200 | 0.0028 | - | - |
| 0.0826 | 2300 | 0.0038 | - | - |
| 0.0862 | 2400 | 0.0035 | - | - |
| 0.0898 | 2500 | 0.0037 | - | - |
| 0.0934 | 2600 | 0.0032 | - | - |
| 0.0970 | 2700 | 0.0034 | - | - |
| 0.1005 | 2800 | 0.0033 | - | - |
| 0.1041 | 2900 | 0.0030 | - | - |
| 0.1077 | 3000 | 0.0034 | 0.0026 | 0.9964 |
| 0.1113 | 3100 | 0.0033 | - | - |
| 0.1149 | 3200 | 0.0033 | - | - |
| 0.1185 | 3300 | 0.0030 | - | - |
| 0.1221 | 3400 | 0.0032 | - | - |
| 0.1257 | 3500 | 0.0032 | - | - |
| 0.1293 | 3600 | 0.0032 | - | - |
| 0.1329 | 3700 | 0.0031 | - | - |
| 0.1365 | 3800 | 0.0030 | - | - |
| 0.1400 | 3900 | 0.0031 | - | - |
| 0.1436 | 4000 | 0.0034 | 0.0024 | 0.9967 |
| 0.1472 | 4100 | 0.0030 | - | - |
| 0.1508 | 4200 | 0.0033 | - | - |
| 0.1544 | 4300 | 0.0030 | - | - |
| 0.1580 | 4400 | 0.0034 | - | - |
| 0.1616 | 4500 | 0.0027 | - | - |
| 0.1652 | 4600 | 0.0030 | - | - |
| 0.1688 | 4700 | 0.0027 | - | - |
| 0.1724 | 4800 | 0.0025 | - | - |
| 0.1759 | 4900 | 0.0027 | - | - |
| 0.1795 | 5000 | 0.0025 | 0.0020 | 0.9976 |
| 0.1831 | 5100 | 0.0021 | - | - |
| 0.1867 | 5200 | 0.0028 | - | - |
| 0.1903 | 5300 | 0.0025 | - | - |
| 0.1939 | 5400 | 0.0029 | - | - |
| 0.1975 | 5500 | 0.0025 | - | - |
| 0.2011 | 5600 | 0.0022 | - | - |
| 0.2047 | 5700 | 0.0027 | - | - |
| 0.2083 | 5800 | 0.0025 | - | - |
| 0.2119 | 5900 | 0.0026 | - | - |
| 0.2154 | 6000 | 0.0024 | 0.0019 | 0.9971 |
| 0.2190 | 6100 | 0.0026 | - | - |
| 0.2226 | 6200 | 0.0022 | - | - |
| 0.2262 | 6300 | 0.0024 | - | - |
| 0.2298 | 6400 | 0.0024 | - | - |
| 0.2334 | 6500 | 0.0025 | - | - |
| 0.2370 | 6600 | 0.0029 | - | - |
| 0.2406 | 6700 | 0.0021 | - | - |
| 0.2442 | 6800 | 0.0024 | - | - |
| 0.2478 | 6900 | 0.0024 | - | - |
| 0.2514 | 7000 | 0.0022 | 0.0017 | 0.9978 |
| 0.2549 | 7100 | 0.0027 | - | - |
| 0.2585 | 7200 | 0.0022 | - | - |
| 0.2621 | 7300 | 0.0025 | - | - |
| 0.2657 | 7400 | 0.0029 | - | - |
| 0.2693 | 7500 | 0.0019 | - | - |
| 0.2729 | 7600 | 0.0022 | - | - |
| 0.2765 | 7700 | 0.0019 | - | - |
| 0.2801 | 7800 | 0.0025 | - | - |
| 0.2837 | 7900 | 0.0024 | - | - |
| 0.2873 | 8000 | 0.0021 | 0.0017 | 0.9975 |
| 0.2909 | 8100 | 0.0020 | - | - |
| 0.2944 | 8200 | 0.0022 | - | - |
| 0.2980 | 8300 | 0.0020 | - | - |
| 0.3016 | 8400 | 0.0021 | - | - |
| 0.3052 | 8500 | 0.0025 | - | - |
| 0.3088 | 8600 | 0.0021 | - | - |
| 0.3124 | 8700 | 0.0023 | - | - |
| 0.3160 | 8800 | 0.0022 | - | - |
| 0.3196 | 8900 | 0.0022 | - | - |
| 0.3232 | 9000 | 0.0021 | 0.0017 | 0.9977 |
| 0.3268 | 9100 | 0.0022 | - | - |
| 0.3304 | 9200 | 0.0019 | - | - |
| 0.3339 | 9300 | 0.0024 | - | - |
| 0.3375 | 9400 | 0.0021 | - | - |
| 0.3411 | 9500 | 0.0019 | - | - |
| 0.3447 | 9600 | 0.0021 | - | - |
| 0.3483 | 9700 | 0.0020 | - | - |
| 0.3519 | 9800 | 0.0018 | - | - |
| 0.3555 | 9900 | 0.0022 | - | - |
| 0.3591 | 10000 | 0.0024 | 0.0015 | 0.9978 |
| 0.3627 | 10100 | 0.0020 | - | - |
| 0.3663 | 10200 | 0.0020 | - | - |
| 0.3699 | 10300 | 0.0020 | - | - |
| 0.3734 | 10400 | 0.0022 | - | - |
| 0.3770 | 10500 | 0.0019 | - | - |
| 0.3806 | 10600 | 0.0023 | - | - |
| 0.3842 | 10700 | 0.0019 | - | - |
| 0.3878 | 10800 | 0.0022 | - | - |
| 0.3914 | 10900 | 0.0019 | - | - |
| 0.3950 | 11000 | 0.0020 | 0.0015 | 0.9974 |
| 0.3986 | 11100 | 0.0021 | - | - |
| 0.4022 | 11200 | 0.0016 | - | - |
| 0.4058 | 11300 | 0.0023 | - | - |
| 0.4094 | 11400 | 0.0020 | - | - |
| 0.4129 | 11500 | 0.0020 | - | - |
| 0.4165 | 11600 | 0.0017 | - | - |
| 0.4201 | 11700 | 0.0021 | - | - |
| 0.4237 | 11800 | 0.0018 | - | - |
| 0.4273 | 11900 | 0.0018 | - | - |
| 0.4309 | 12000 | 0.0020 | 0.0015 | 0.9979 |
| 0.4345 | 12100 | 0.0020 | - | - |
| 0.4381 | 12200 | 0.0022 | - | - |
| 0.4417 | 12300 | 0.0019 | - | - |
| 0.4453 | 12400 | 0.0018 | - | - |
| 0.4488 | 12500 | 0.0017 | - | - |
| 0.4524 | 12600 | 0.0022 | - | - |
| 0.4560 | 12700 | 0.0018 | - | - |
| 0.4596 | 12800 | 0.0017 | - | - |
| 0.4632 | 12900 | 0.0019 | - | - |
| 0.4668 | 13000 | 0.0018 | 0.0016 | 0.9975 |
| 0.4704 | 13100 | 0.0020 | - | - |
| 0.4740 | 13200 | 0.0018 | - | - |
| 0.4776 | 13300 | 0.0017 | - | - |
| 0.4812 | 13400 | 0.0020 | - | - |
| 0.4848 | 13500 | 0.0020 | - | - |
| 0.4883 | 13600 | 0.0021 | - | - |
| 0.4919 | 13700 | 0.0018 | - | - |
| 0.4955 | 13800 | 0.0021 | - | - |
| 0.4991 | 13900 | 0.0018 | - | - |
| 0.5027 | 14000 | 0.0016 | 0.0016 | 0.9978 |
| 0.5063 | 14100 | 0.0019 | - | - |
| 0.5099 | 14200 | 0.0017 | - | - |
| 0.5135 | 14300 | 0.0018 | - | - |
| 0.5171 | 14400 | 0.0019 | - | - |
| 0.5207 | 14500 | 0.0019 | - | - |
| 0.5243 | 14600 | 0.0020 | - | - |
| 0.5278 | 14700 | 0.0018 | - | - |
| 0.5314 | 14800 | 0.0017 | - | - |
| 0.5350 | 14900 | 0.0019 | - | - |
| 0.5386 | 15000 | 0.0019 | 0.0014 | 0.9978 |
| 0.5422 | 15100 | 0.0015 | - | - |
| 0.5458 | 15200 | 0.0014 | - | - |
| 0.5494 | 15300 | 0.0015 | - | - |
| 0.5530 | 15400 | 0.0016 | - | - |
| 0.5566 | 15500 | 0.0016 | - | - |
| 0.5602 | 15600 | 0.0016 | - | - |
| 0.5638 | 15700 | 0.0018 | - | - |
| 0.5673 | 15800 | 0.0016 | - | - |
| 0.5709 | 15900 | 0.0016 | - | - |
| 0.5745 | 16000 | 0.0018 | 0.0014 | 0.9979 |
| 0.5781 | 16100 | 0.0017 | - | - |
| 0.5817 | 16200 | 0.0016 | - | - |
| 0.5853 | 16300 | 0.0015 | - | - |
| 0.5889 | 16400 | 0.0019 | - | - |
| 0.5925 | 16500 | 0.0015 | - | - |
| 0.5961 | 16600 | 0.0017 | - | - |
| 0.5997 | 16700 | 0.0018 | - | - |
| 0.6033 | 16800 | 0.0016 | - | - |
| 0.6068 | 16900 | 0.0013 | - | - |
| 0.6104 | 17000 | 0.0016 | 0.0014 | 0.9983 |
| 0.6140 | 17100 | 0.0018 | - | - |
| 0.6176 | 17200 | 0.0015 | - | - |
| 0.6212 | 17300 | 0.0015 | - | - |
| 0.6248 | 17400 | 0.0015 | - | - |
| 0.6284 | 17500 | 0.0016 | - | - |
| 0.6320 | 17600 | 0.0015 | - | - |
| 0.6356 | 17700 | 0.0019 | - | - |
| 0.6392 | 17800 | 0.0018 | - | - |
| 0.6428 | 17900 | 0.0017 | - | - |
| 0.6463 | 18000 | 0.0018 | 0.0013 | 0.9986 |
| 0.6499 | 18100 | 0.0017 | - | - |
| 0.6535 | 18200 | 0.0014 | - | - |
| 0.6571 | 18300 | 0.0017 | - | - |
| 0.6607 | 18400 | 0.0017 | - | - |
| 0.6643 | 18500 | 0.0016 | - | - |
| 0.6679 | 18600 | 0.0015 | - | - |
| 0.6715 | 18700 | 0.0016 | - | - |
| 0.6751 | 18800 | 0.0014 | - | - |
| 0.6787 | 18900 | 0.0016 | - | - |
| 0.6823 | 19000 | 0.0016 | 0.0013 | 0.9981 |
| 0.6858 | 19100 | 0.0015 | - | - |
| 0.6894 | 19200 | 0.0017 | - | - |
| 0.6930 | 19300 | 0.0012 | - | - |
| 0.6966 | 19400 | 0.0014 | - | - |
| 0.7002 | 19500 | 0.0016 | - | - |
| 0.7038 | 19600 | 0.0019 | - | - |
| 0.7074 | 19700 | 0.0014 | - | - |
| 0.7110 | 19800 | 0.0017 | - | - |
| 0.7146 | 19900 | 0.0017 | - | - |
| 0.7182 | 20000 | 0.0014 | 0.0013 | 0.9979 |
| 0.7217 | 20100 | 0.0013 | - | - |
| 0.7253 | 20200 | 0.0016 | - | - |
| 0.7289 | 20300 | 0.0016 | - | - |
| 0.7325 | 20400 | 0.0015 | - | - |
| 0.7361 | 20500 | 0.0017 | - | - |
| 0.7397 | 20600 | 0.0018 | - | - |
| 0.7433 | 20700 | 0.0015 | - | - |
| 0.7469 | 20800 | 0.0012 | - | - |
| 0.7505 | 20900 | 0.0014 | - | - |
| 0.7541 | 21000 | 0.0013 | 0.0013 | 0.9980 |
| 0.7577 | 21100 | 0.0014 | - | - |
| 0.7612 | 21200 | 0.0017 | - | - |
| 0.7648 | 21300 | 0.0013 | - | - |
| 0.7684 | 21400 | 0.0011 | - | - |
| 0.7720 | 21500 | 0.0016 | - | - |
| 0.7756 | 21600 | 0.0016 | - | - |
| 0.7792 | 21700 | 0.0014 | - | - |
| 0.7828 | 21800 | 0.0016 | - | - |
| 0.7864 | 21900 | 0.0013 | - | - |
| 0.7900 | 22000 | 0.0015 | 0.0012 | 0.9985 |
| 0.7936 | 22100 | 0.0014 | - | - |
| 0.7972 | 22200 | 0.0011 | - | - |
| 0.8007 | 22300 | 0.0012 | - | - |
| 0.8043 | 22400 | 0.0016 | - | - |
| 0.8079 | 22500 | 0.0015 | - | - |
| 0.8115 | 22600 | 0.0014 | - | - |
| 0.8151 | 22700 | 0.0012 | - | - |
| 0.8187 | 22800 | 0.0015 | - | - |
| 0.8223 | 22900 | 0.0014 | - | - |
| 0.8259 | 23000 | 0.0014 | 0.0012 | 0.9982 |
| 0.8295 | 23100 | 0.0013 | - | - |
| 0.8331 | 23200 | 0.0014 | - | - |
| 0.8367 | 23300 | 0.0016 | - | - |
| 0.8402 | 23400 | 0.0014 | - | - |
| 0.8438 | 23500 | 0.0013 | - | - |
| 0.8474 | 23600 | 0.0016 | - | - |
| 0.8510 | 23700 | 0.0014 | - | - |
| 0.8546 | 23800 | 0.0015 | - | - |
| 0.8582 | 23900 | 0.0016 | - | - |
| 0.8618 | 24000 | 0.0015 | 0.0012 | 0.9986 |
| 0.8654 | 24100 | 0.0015 | - | - |
| 0.8690 | 24200 | 0.0016 | - | - |
| 0.8726 | 24300 | 0.0014 | - | - |
| 0.8762 | 24400 | 0.0016 | - | - |
| 0.8797 | 24500 | 0.0014 | - | - |
| 0.8833 | 24600 | 0.0012 | - | - |
| 0.8869 | 24700 | 0.0016 | - | - |
| 0.8905 | 24800 | 0.0016 | - | - |
| 0.8941 | 24900 | 0.0014 | - | - |
| 0.8977 | 25000 | 0.0012 | 0.0012 | 0.9985 |
| 0.9013 | 25100 | 0.0013 | - | - |
| 0.9049 | 25200 | 0.0011 | - | - |
| 0.9085 | 25300 | 0.0014 | - | - |
| 0.9121 | 25400 | 0.0016 | - | - |
| 0.9157 | 25500 | 0.0015 | - | - |
| 0.9192 | 25600 | 0.0015 | - | - |
| 0.9228 | 25700 | 0.0014 | - | - |
| 0.9264 | 25800 | 0.0014 | - | - |
| 0.9300 | 25900 | 0.0017 | - | - |
| 0.9336 | 26000 | 0.0013 | 0.0012 | 0.9986 |
| 0.9372 | 26100 | 0.0012 | - | - |
| 0.9408 | 26200 | 0.0013 | - | - |
| 0.9444 | 26300 | 0.0016 | - | - |
| 0.9480 | 26400 | 0.0015 | - | - |
| 0.9516 | 26500 | 0.0014 | - | - |
| 0.9552 | 26600 | 0.0014 | - | - |
| 0.9587 | 26700 | 0.0014 | - | - |
| 0.9623 | 26800 | 0.0015 | - | - |
| 0.9659 | 26900 | 0.0014 | - | - |
| 0.9695 | 27000 | 0.0015 | 0.0012 | 0.9987 |
| 0.9731 | 27100 | 0.0016 | - | - |
| 0.9767 | 27200 | 0.0015 | - | - |
| 0.9803 | 27300 | 0.0016 | - | - |
| 0.9839 | 27400 | 0.0015 | - | - |
| 0.9875 | 27500 | 0.0014 | - | - |
| 0.9911 | 27600 | 0.0013 | - | - |
| 0.9946 | 27700 | 0.0017 | - | - |
| 0.9982 | 27800 | 0.0013 | - | - |
| 1.0 | 27849 | - | 0.0012 | 0.9986 |
- The bold row denotes the saved checkpoint.
Training Time
- Training: 17.8 hours
- Evaluation: 10.1 minutes
- Total: 18.0 hours
Framework Versions
- Python: 3.11.14
- Sentence Transformers: 5.6.0
- Transformers: 5.12.1
- PyTorch: 2.12.1+cu130
- 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",
}
TripletLoss
@misc{hermans2017defense,
title={In Defense of the Triplet Loss for Person Re-Identification},
author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
year={2017},
eprint={1703.07737},
archivePrefix={arXiv},
primaryClass={cs.CV}
}