Views
No views yet
SentenceTransformer(
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False, 'architecture': 'GteModel'})
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, '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': False, 'include_prompt': True})
(2): Normalize()
)pip install -U sentence-transformers1from sentence_transformers import SentenceTransformer
2
3# Download from the 🤗 Hub
4model = SentenceTransformer("BjarneNPO/finetune_21_08_2025_18_55_50")
5# Run inference
6queries = [
7 "fragt wie der Stand zu dem aktuellen Problem ist",
8]
9documents = [
10 'In Klärung mit der Kollegin - Das Problem liegt leider an deren Betreiber. Die sind aber informiert und arbeiten bereits daran',
11 'findet diese in der Übersicht der Gruppen.',
12 'Userin muss sich an die Bistums IT wenden.',
13]
14query_embeddings = model.encode_query(queries)
15document_embeddings = model.encode_document(documents)
16print(query_embeddings.shape, document_embeddings.shape)
17# [1, 768] [3, 768]
18
19# Get the similarity scores for the embeddings
20similarities = model.similarity(query_embeddings, document_embeddings)
21print(similarities)
22# tensor([[0.2540, 0.0537, 0.0780]])Snowflake/snowflake-arctic-embed-m-v2.0scripts.InformationRetrievalEvaluatorCustom.InformationRetrievalEvaluatorCustom with these parameters:
1{
2 "query_prompt_name": "query",
3 "corpus_prompt_name": "query"
4}| Metric | Value |
|---|---|
| cosine_accuracy@1 | 0.1898 |
| cosine_accuracy@3 | 0.7153 |
| cosine_accuracy@5 | 0.8029 |
| cosine_accuracy@10 | 0.854 |
| cosine_precision@1 | 0.1898 |
| cosine_precision@3 | 0.4428 |
| cosine_precision@5 | 0.4657 |
| cosine_precision@10 | 0.446 |
| cosine_recall@1 | 0.0083 |
| cosine_recall@3 | 0.0989 |
| cosine_recall@5 | 0.1659 |
| cosine_recall@10 | 0.237 |
| cosine_ndcg@10 | 0.459 |
| cosine_mrr@10 | 0.4677 |
| cosine_map@100 | 0.2944 |
query and answer| query | answer | |
|---|---|---|
| type | string | string |
| details |
|
|
| query | answer |
|---|---|
Wie kann man die Jahresurlaubsübersicht exportieren? | über das 3 Punkte Menü rechts oben. Mitarbeiter auswählen und exportieren |
1. Vertragsabschlüsse werden nicht übertragen | |
2. Kinder kommen nicht von nach | |
3. Absage kann bei Portalstatus nicht erstellt werden. | Ticket |
Userin gebeten sich an den Support zu wenden, da der Fehler liegt. | |
Wird im Anmeldeportal nicht gefunden. | Die Schnittstelle war noch nicht aktiviert und Profil ebenfalls nicht. |
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: 64gradient_accumulation_steps: 8learning_rate: 2e-05num_train_epochs: 10lr_scheduler_type: cosinewarmup_ratio: 0.1bf16: Truetf32: Trueload_best_model_at_end: Truebatch_sampler: no_duplicatesoverwrite_output_dir: Falsedo_predict: Falseeval_strategy: epochprediction_loss_only: Trueper_device_train_batch_size: 32per_device_eval_batch_size: 64per_gpu_train_batch_size: Noneper_gpu_eval_batch_size: Nonegradient_accumulation_steps: 8eval_accumulation_steps: Nonetorch_empty_cache_steps: Nonelearning_rate: 2e-05weight_decay: 0.0adam_beta1: 0.9adam_beta2: 0.999adam_epsilon: 1e-08max_grad_norm: 1.0num_train_epochs: 10max_steps: -1lr_scheduler_type: cosinelr_scheduler_kwargs: {}warmup_ratio: 0.1warmup_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: Truefp16: Falsefp16_opt_level: O1half_precision_backend: autobf16_full_eval: Falsefp16_full_eval: Falsetf32: Truelocal_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: 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: no_duplicatesmulti_dataset_batch_sampler: proportionalrouter_mapping: {}learning_rate_mapping: {}| Epoch | Step | Training Loss | Snowflake/snowflake-arctic-embed-m-v2.0_cosine_ndcg@10 |
|---|---|---|---|
| 0.1282 | 10 | 2.8279 | - |
| 0.2564 | 20 | 2.7011 | - |
| 0.3846 | 30 | 2.6182 | - |
| 0.5128 | 40 | 2.3893 | - |
| 0.6410 | 50 | 2.2499 | - |
| 0.7692 | 60 | 2.1048 | - |
| 0.8974 | 70 | 1.987 | - |
| 1.0 | 78 | - | 0.5043 |
| 1.0256 | 80 | 1.7766 | - |
| 1.1538 | 90 | 1.7516 | - |
| 1.2821 | 100 | 1.6332 | - |
| 1.4103 | 110 | 1.5975 | - |
| 1.5385 | 120 | 1.5437 | - |
| 1.6667 | 130 | 1.4739 | - |
| 1.7949 | 140 | 1.3988 | - |
| 1.9231 | 150 | 1.3845 | - |
| 2.0 | 156 | - | 0.4853 |
| 2.0513 | 160 | 1.2183 | - |
| 2.1795 | 170 | 1.2841 | - |
| 2.3077 | 180 | 1.2558 | - |
| 2.4359 | 190 | 1.2305 | - |
| 2.5641 | 200 | 1.2234 | - |
| 2.6923 | 210 | 1.1089 | - |
| 2.8205 | 220 | 1.1591 | - |
| 2.9487 | 230 | 1.0641 | - |
| 3.0 | 234 | - | 0.4735 |
| 3.0769 | 240 | 1.0085 | - |
| 3.2051 | 250 | 1.0507 | - |
| 3.3333 | 260 | 1.0183 | - |
| 3.4615 | 270 | 1.0208 | - |
| 3.5897 | 280 | 0.9587 | - |
| 3.7179 | 290 | 0.9273 | - |
| 3.8462 | 300 | 0.9171 | - |
| 3.9744 | 310 | 0.9076 | - |
| 4.0 | 312 | - | 0.4704 |
| 4.1026 | 320 | 0.8029 | - |
| 4.2308 | 330 | 0.8903 | - |
| 4.3590 | 340 | 0.8794 | - |
| 4.4872 | 350 | 0.851 | - |
| 4.6154 | 360 | 0.823 | - |
| 4.7436 | 370 | 0.7819 | - |
| 4.8718 | 380 | 0.7974 | - |
| 5.0 | 390 | 0.7552 | 0.4693 |
| 5.1282 | 400 | 0.7336 | - |
| 5.2564 | 410 | 0.7652 | - |
| 5.3846 | 420 | 0.7597 | - |
| 5.5128 | 430 | 0.7481 | - |
| 5.6410 | 440 | 0.6982 | - |
| 5.7692 | 450 | 0.6817 | - |
| 5.8974 | 460 | 0.7136 | - |
| 6.0 | 468 | - | 0.4652 |
| 6.0256 | 470 | 0.6233 | - |
| 6.1538 | 480 | 0.6739 | - |
| 6.2821 | 490 | 0.6646 | - |
| 6.4103 | 500 | 0.6614 | - |
| 6.5385 | 510 | 0.6699 | - |
| 6.6667 | 520 | 0.6291 | - |
| 6.7949 | 530 | 0.6344 | - |
| 6.9231 | 540 | 0.6459 | - |
| 7.0 | 546 | - | 0.4635 |
| 7.0513 | 550 | 0.5652 | - |
| 7.1795 | 560 | 0.6227 | - |
| 7.3077 | 570 | 0.6308 | - |
| 7.4359 | 580 | 0.6253 | - |
| 7.5641 | 590 | 0.6315 | - |
| 7.6923 | 600 | 0.5571 | - |
| 7.8205 | 610 | 0.6234 | - |
| 7.9487 | 620 | 0.5742 | - |
| 8.0 | 624 | - | 0.4611 |
| 8.0769 | 630 | 0.5583 | - |
| 8.2051 | 640 | 0.5817 | - |
| 8.3333 | 650 | 0.5913 | - |
| 8.4615 | 660 | 0.6025 | - |
| 8.5897 | 670 | 0.5726 | - |
| 8.7179 | 680 | 0.5492 | - |
| 8.8462 | 690 | 0.5907 | - |
| 8.9744 | 700 | 0.5756 | - |
| 9.0 | 702 | - | 0.4606 |
| 9.1026 | 710 | 0.5134 | - |
| 9.2308 | 720 | 0.5861 | - |
| 9.3590 | 730 | 0.6 | - |
| 9.4872 | 740 | 0.5839 | - |
| 9.6154 | 750 | 0.5688 | - |
| 9.7436 | 760 | 0.5443 | - |
| 9.8718 | 770 | 0.5687 | - |
| 10.0 | 780 | 0.5608 | 0.4590 |
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}