Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 32768, 'do_lower_case': False}) with Transformer model: 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("seroe/Qwen3-Embedding-0.6B-turkish-triplet-matryoshka")
5# Run inference
6sentences = [
7 "Vodafone Net'in internet hız garantisi var mı?",
8 'Vodafone Net, internet hızını garanti etmemekte, bu hız abonenin hattının uygunluğuna ve santrale olan mesafeye bağlı olarak değişiklik göstermektedir.',
9 'Vodafone Net, tüm abonelerine en az 100 Mbps hız garantisi vermektedir.',
10]
11embeddings = model.encode(sentences)
12print(embeddings.shape)
13# [3, 1024]
14
15# Get the similarity scores for the embeddings
16similarities = model.similarity(embeddings, embeddings)
17print(similarities.shape)
18# [3, 3]tr-triplet-dev-1024d and all-nli-test-1024dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 1024
3}| Metric | tr-triplet-dev-1024d | all-nli-test-1024d |
|---|---|---|
| cosine_accuracy | 0.9673 | 0.9764 |
tr-triplet-dev-768d and all-nli-test-768dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 768
3}| Metric | tr-triplet-dev-768d | all-nli-test-768d |
|---|---|---|
| cosine_accuracy | 0.969 | 0.9759 |
tr-triplet-dev-512d and all-nli-test-512dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 512
3}| Metric | tr-triplet-dev-512d | all-nli-test-512d |
|---|---|---|
| cosine_accuracy | 0.9718 | 0.9749 |
tr-triplet-dev-256d and all-nli-test-256dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 256
3}| Metric | tr-triplet-dev-256d | all-nli-test-256d |
|---|---|---|
| cosine_accuracy | 0.9688 | 0.9756 |
tr-triplet-dev-1024dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 1024
3}| Metric | Value |
|---|---|
| cosine_accuracy | 0.9777 |
tr-triplet-dev-768dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 768
3}| Metric | Value |
|---|---|
| cosine_accuracy | 0.9777 |
tr-triplet-dev-512dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 512
3}| Metric | Value |
|---|---|
| cosine_accuracy | 0.9782 |
tr-triplet-dev-256dTripletEvaluator with these parameters:
1{
2 "truncate_dim": 256
3}| Metric | Value |
|---|---|
| cosine_accuracy | 0.9772 |
query, positive, and negative| query | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| query | positive | negative |
|---|---|---|
Kampanya tarihleri ve katılım şartları | Kampanya, 11 Ekim 2018'de başlayıp 29 Ekim 2018'de sona erecek. Katılımcıların belirli bilgileri doldurması ve Vodafone Müzik pass veya Video pass sahibi olmaları gerekiyor. | Kampanya, sadece İstanbul'daki kullanıcılar için geçerli olup, diğer şehirlerden katılım mümkün değildir. |
Taahhüt süresi dolmadan başka bir kampanyaya geçiş yapılırsa ne olur? | Eğer abone taahhüt süresi dolmadan başka bir kampanyaya geçerse, bu durumda önceki kampanya süresince sağlanan indirimler ve diğer faydalar, iptal tarihinden sonraki fatura ile tahsil edilecektir. | Aboneler, taahhüt süresi dolmadan başka bir kampanyaya geçtiklerinde, yeni kampanyadan faydalanmak için ek bir ücret ödemek zorundadırlar. |
FreeZone üyeliğimi nasıl sorgulayabilirim? | Üyeliğinizi sorgulamak için FREEZONESORGU yazarak 1525'e SMS gönderebilirsiniz. | Üyeliğinizi sorgulamak için Vodafone mağazasına gitmeniz gerekmektedir. |
MatryoshkaLoss with these parameters:
1{
2 "loss": "CachedMultipleNegativesRankingLoss",
3 "matryoshka_dims": [
4 1024,
5 768,
6 512,
7 256
8 ],
9 "matryoshka_weights": [
10 1,
11 1,
12 1,
13 1
14 ],
15 "n_dims_per_step": -1
16}query, positive, and negative| query | positive | negative | |
|---|---|---|---|
| type | string | string | string |
| details |
|
|
|
| query | positive | negative |
|---|---|---|
Vodafone Net'e geçiş yaparken bağlantı ücreti var mı? | Vodafone Net'e geçişte 264 TL bağlantı ücreti bulunmaktadır ve bu ücret 24 ay boyunca aylık 11 TL olarak faturalandırılmaktadır. | Vodafone Net'e geçişte bağlantı ücreti yoktur ve tüm işlemler ücretsizdir. |
Bağımsız akıllı cihaz kampanyalarının detayları nelerdir? | Kampanyalar, farklı cihaz modelleri için aylık ödeme planları sunmaktadır. | Vodafone'un kampanyaları, sadece internet paketleri ile ilgilidir. |
Fibermax hizmeti iptal edilirse ne gibi sonuçlar doğar? | İptal işlemi taahhüt süresi bitmeden yapılırsa, indirimler ve ücretsiz hizmet bedelleri ödenmelidir. | Fibermax hizmeti iptal edildiğinde, kullanıcıdan hiçbir ücret talep edilmez. |
MatryoshkaLoss with these parameters:
1{
2 "loss": "CachedMultipleNegativesRankingLoss",
3 "matryoshka_dims": [
4 1024,
5 768,
6 512,
7 256
8 ],
9 "matryoshka_weights": [
10 1,
11 1,
12 1,
13 1
14 ],
15 "n_dims_per_step": -1
16}eval_strategy: stepsper_device_train_batch_size: 2048per_device_eval_batch_size: 256weight_decay: 0.01num_train_epochs: 2lr_scheduler_type: cosinewarmup_ratio: 0.05save_only_model: Truebf16: Truebatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: stepsprediction_loss_only: Trueper_device_train_batch_size: 2048per_device_eval_batch_size: 256per_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.01adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 2max_steps: -1lr_scheduler_type: cosinelr_scheduler_kwargs: {}warmup_ratio: 0.05warmup_steps: 0log_level: passivelog_level_replica: warninglog_on_each_node: Truelogging_nan_inf_filter: Truesave_safetensors: Truesave_on_each_node: Falsesave_only_model: Truerestore_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: 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}deepspeed: Nonelabel_smoothing_factor: 0.0optim: adamw_torchoptim_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: Falsegradient_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: Falseeval_use_gather_object: Falseaverage_tokens_across_devices: Falseprompts: Nonebatch_sampler: no_duplicatesmulti_dataset_batch_sampler: proportional| Epoch | Step | Training Loss | Validation Loss | tr-triplet-dev-1024d_cosine_accuracy | tr-triplet-dev-768d_cosine_accuracy | tr-triplet-dev-512d_cosine_accuracy | tr-triplet-dev-256d_cosine_accuracy | all-nli-test-1024d_cosine_accuracy | all-nli-test-768d_cosine_accuracy | all-nli-test-512d_cosine_accuracy | all-nli-test-256d_cosine_accuracy |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.3429 | 12 | 10.2876 | 3.2218 | 0.9145 | 0.9211 | 0.9262 | 0.9229 | - | - | - | - |
| 0.6857 | 24 | 6.1342 | 2.5250 | 0.9531 | 0.9561 | 0.9571 | 0.9553 | - | - | - | - |
| 0.3429 | 12 | 4.8969 | 2.3174 | 0.9597 | 0.9632 | 0.9617 | 0.9632 | - | - | - | - |
| 0.6857 | 24 | 4.2031 | 2.0383 | 0.9673 | 0.9690 | 0.9718 | 0.9688 | - | - | - | - |
| 0.3429 | 12 | 3.3893 | 2.3286 | 0.9650 | 0.9655 | 0.9652 | 0.9652 | - | - | - | - |
| 0.6857 | 24 | 3.0878 | 2.1443 | 0.9728 | 0.9739 | 0.9749 | 0.9736 | - | - | - | - |
| 1.0286 | 36 | 3.504 | 1.8128 | 0.9708 | 0.9716 | 0.9716 | 0.9723 | - | - | - | - |
| 1.3714 | 48 | 2.4279 | 1.8915 | 0.9779 | 0.9774 | 0.9782 | 0.9777 | - | - | - | - |
| 1.7143 | 60 | 2.2489 | 1.8638 | 0.9777 | 0.9777 | 0.9782 | 0.9772 | - | - | - | - |
| -1 | -1 | - | - | - | - | - | - | 0.9764 | 0.9759 | 0.9749 | 0.9756 |
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{kusupati2024matryoshka,
2 title={Matryoshka Representation Learning},
3 author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
4 year={2024},
5 eprint={2205.13147},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}1@misc{gao2021scaling,
2 title={Scaling Deep Contrastive Learning Batch Size under Memory Limited Setup},
3 author={Luyu Gao and Yunyi Zhang and Jiawei Han and Jamie Callan},
4 year={2021},
5 eprint={2101.06983},
6 archivePrefix={arXiv},
7 primaryClass={cs.LG}
8}