MCPcopy Create free account

hub / github.com/huggingface/sentence-transformers / functions

Functions4,575 in github.com/huggingface/sentence-transformers

↓ 1 callersFunctiongrads
(scale: float)
tests/sentence_transformer/losses/test_mega_batch_margin.py:200
↓ 1 callersFunctiongrads
(scale: float)
tests/sentence_transformer/losses/test_gradcache.py:161
↓ 1 callersFunctiongrads
(scale: float)
tests/cross_encoder/losses/test_cached_multiple_negatives_ranking.py:132
↓ 1 callersMethodhas_peft_compatible_model
(self)
sentence_transformers/base/peft_mixin.py:37
↓ 1 callersFunctionhighlight
Invert the terminal's own foreground and background. Inverting rather than picking a colour keeps the highlight legible on light and dark themes a
examples/multi_vector_encoder/interpretability/text_similarity_map.py:26
↓ 1 callersMethodinfer_datasets
(self, dataset: Dataset | DatasetDict, dataset_name: str | None = None)
sentence_transformers/base/model_card.py:982
↓ 1 callersMethodinfer_modalities
Infer the modality configuration and module output name from the model and processor. First checks :meth:`infer_modalities_edge_cases` for ha
sentence_transformers/base/modules/transformer.py:2448
↓ 1 callersMethodis_better
(self, new_metric: float)
sentence_transformers/sentence_transformer/fit_mixin.py:57
↓ 1 callersMethodis_better
(self, new_metric: float)
sentence_transformers/cross_encoder/fit_mixin.py:54
↓ 1 callersMethodis_singular_input
Check if the input is a single example rather than a batch. Redeclared with :class:`~typing_extensions.TypeIs` so type checkers narrow the bra
sentence_transformers/multi_vector_encoder/model.py:281
↓ 1 callersMethodis_singular_input
Check if the input represents a single example or a batch of examples. Declared with :class:`~typing_extensions.TypeIs` so type check
sentence_transformers/cross_encoder/model.py:837
↓ 1 callersFunctionk
(t,r)
docs/_static/js/custom.js:28
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_plistmle.py:42
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_lambda.py:44
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_listnet.py:41
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_listmle.py:42
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_lambda_hard_neg.py:46
↓ 1 callersFunctionlistwise_mapper
(batch, max_docs: int | None = 10)
examples/cross_encoder/training/ms_marco/training_ms_marco_ranknet.py:46
↓ 1 callersFunctionload
()
tests/base/test_model.py:2277
↓ 1 callersFunctionload
()
tests/base/modules/test_router.py:1613
↓ 1 callersMethodload
Load the SparseStaticEmbedding module with its tokenizer. Args: model_name_or_path (str): Path to the directory containi
sentence_transformers/sparse_encoder/modules/sparse_static_embedding.py:157
↓ 1 callersMethodload_adapter
Load adapter weights from file or remote Hub folder." If you are not familiar with adapters and PEFT methods, we invite you to read m
sentence_transformers/base/peft_mixin.py:47
↓ 1 callersMethodload_config
Load the module config, trying several legacy config filenames for backward compatibility. Handles deserialization of ``modality_config`` tup
sentence_transformers/base/modules/transformer.py:2759
↓ 1 callersMethodload_dir_path
A utility function to load a directory from a model checkpoint. The checkpoint can be either a local directory or a model id on Hugging Face.
sentence_transformers/base/modules/module.py:274
↓ 1 callersFunctionload_onnx_model
Load and perhaps export an ONNX model using the Optimum library. Args: model_name_or_path (str): The model name on Hugging Face (e.g
sentence_transformers/backend/load.py:14
↓ 1 callersFunctionload_openvino_model
Load and perhaps export an OpenVINO model using the Optimum library. Args: model_name_or_path (str): The model name on Hugging Face
sentence_transformers/backend/load.py:92
↓ 1 callersFunctionload_pair_dataset
Load a contrastive-pair dataset for training. StaticEmbedding starts from random initialization, so it needs *a lot* of contrastive signal to
skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py:132
↓ 1 callersFunctionload_parallel_data
Load (en, target_lang) parallel pairs for each target language as a DatasetDict.
skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py:121
↓ 1 callersFunctionload_resolved_dataset
Load (query, positive, negative, score) rows. The MSMARCO subset is keyed by passage_id / query_id. Resolve to text once and cache to disk so reru
skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py:111
↓ 1 callersFunctionload_resolved_dataset
Load (query, positive, negative, score) rows. The MSMARCO subset is keyed by passage_id / query_id. Resolve to text once and cache to disk so reru
skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py:114
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_make_multilingual_example.py:72
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_cross_encoder_example.py:64
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sparse_encoder_distillation_example.py:67
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_with_lora_example.py:120
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_example.py:77
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_matryoshka_example.py:58
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_cross_encoder_distillation_example.py:73
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_multi_vector_encoder_example.py:77
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sparse_encoder_example.py:64
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_cross_encoder_listwise_example.py:81
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_multi_dataset_example.py:106
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_static_embedding_example.py:87
↓ 1 callersFunctionlog_trackio_dashboard
Surface the Trackio dashboard URL so the user can watch training live.
skills/train-sentence-transformers/scripts/train_sentence_transformer_distillation_example.py:102
↓ 1 callersMethodlogits_from_pairs
Computes the logits for a list of pairs using the model. Args: pairs (list[tuple[str, str]]): A list of pairs of strings
sentence_transformers/cross_encoder/losses/margin_mse.py:148
↓ 1 callersFunctionloss_and_grads
(loss_fn: torch.nn.Module)
tests/sentence_transformer/losses/test_cached_mnsrl.py:28
↓ 1 callersFunctionloss_and_grads
(inner)
tests/sentence_transformer/losses/test_matryoshka.py:284
↓ 1 callersFunctionloss_and_grads
(loss_fn: torch.nn.Module)
tests/cross_encoder/losses/test_cached_multiple_negatives_ranking.py:172
↓ 1 callersFunctionloss_and_grads
(cached: bool)
tests/sparse_encoder/losses/test_cached_splade.py:176
↓ 1 callersFunctionlosses
(loss_fn_first: torch.nn.Module, loss_fn_second: torch.nn.Module)
tests/cross_encoder/losses/test_cached_multiple_negatives_ranking.py:102
↓ 1 callersFunctionmain
()
examples/sentence_transformer/training/merging/model_merging.py:15
↓ 1 callersFunctionmain
()
examples/sentence_transformer/training/ms_marco/train_bi_encoder_margin_mse.py:48
↓ 1 callersFunctionmain
()
examples/sentence_transformer/training/ms_marco/train_kldiv.py:28
↓ 1 callersFunctionmain
()
examples/sentence_transformer/training/ms_marco/train_bi_encoder_margin_mse_mnrl.py:72
↓ 1 callersFunctionmain
()
examples/sentence_transformer/training/ms_marco/train_bi_encoder_mnrl.py:68
↓ 1 callersFunctionmain
()
examples/sentence_transformer/evaluation/evaluation_no_dup_batch_sampler_speed.py:417
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/applications/retrieve_rerank.py:19
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/applications/semantic_search.py:20
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/matryoshka/training_cached_contrastive.py:22
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/matryoshka/evaluate_matryoshka.py:16
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/miriad/training_contrastive.py:76
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/xtr/training_contrastive.py:35
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/msmarco/training_cached_contrastive.py:43
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/msmarco/training_kd.py:57
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/msmarco/training_contrastive.py:41
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/merging/model_merging.py:14
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/multimodal/finetuning_colqwen2.py:49
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/token_pooling/training_cached_contrastive.py:26
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/token_pooling/evaluate_token_pooling.py:21
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/training/peft/training_msmarco_lora.py:45
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/interpretability/heatmap.py:38
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/interpretability/text_similarity_map.py:95
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/compression/token_pooling.py:22
↓ 1 callersFunctionmain
()
examples/multi_vector_encoder/evaluation/nano_beir.py:16
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/distillation/train_cross_encoder_kd_margin_mse.py:13
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/distillation/train_cross_encoder_kd_mse.py:13
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/merging/model_merging.py:15
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_cmnrl.py:17
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_plistmle.py:14
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_lambda.py:15
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_lambda_preprocessed.py:15
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_listnet.py:14
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_listmle.py:14
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_lambda_hard_neg.py:16
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_ranknet.py:17
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_adrmse.py:15
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_bce.py:15
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/ms_marco/training_ms_marco_bce_preprocessed.py:14
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/rerankers/training_gooaq_bce.py:24
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/rerankers/training_gooaq_lambda.py:23
↓ 1 callersFunctionmain
()
examples/cross_encoder/training/rerankers/training_nq_bce.py:24
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/distillation/train_splade_msmarco_margin_mse.py:28
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/retrievers/train_csr_nq.py:34
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/retrievers/train_splade_nq.py:32
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/retrievers/train_splade_gooaq.py:32
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/retrievers/train_splade_nq_cached.py:32
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/sts/train_splade_stsbenchmark.py:37
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/quora_duplicate_questions/training_splade_quora.py:36
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/merging/model_merging.py:14
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/ms_marco/train_splade_msmarco_mnrl.py:30
↓ 1 callersFunctionmain
()
examples/sparse_encoder/training/nli/train_splade_nli.py:33
← previousnext →901–1,000 of 4,575, ranked by callers