Running nixpkgs-update (https://nix-community.org/update-bot/) with UPDATE_INFO: python3Packages.sentence-transformers 0 -> 1 attrpath: python3Packages.sentence-transformers Checking auto update branch... [version] [version] skipping because derivation has updateScript [rustCrateVersion] [rustCrateVersion] No cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorHash [npmDepsVersion] [npmDepsVersion] No npmDepsHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/cs5vafj4svankbssqic31nj9rx6pb08i-packages.json.drv building '/nix/store/cs5vafj4svankbssqic31nj9rx6pb08i-packages.json.drv'... Going to be running update for following packages: - python3.14-sentence-transformers-6.0.0 Press Enter key to continue... Running update for: Enqueuing group of 1 packages - python3.14-sentence-transformers-6.0.0: UPDATING ... - python3.14-sentence-transformers-6.0.0: DONE. Packages updated! Diff after rewrites: diff --git a/pkgs/development/python-modules/sentence-transformers/default.nix b/pkgs/development/python-modules/sentence-transformers/default.nix index 0a8a525a8519..441d0c5fd0aa 100644 --- a/pkgs/development/python-modules/sentence-transformers/default.nix +++ b/pkgs/development/python-modules/sentence-transformers/default.nix @@ -34,7 +34,7 @@ buildPythonPackage (finalAttrs: { pname = "sentence-transformers"; - version = "6.0.0"; + version = "6.0.1"; pyproject = true; __structuredAttrs = true; @@ -42,7 +42,7 @@ buildPythonPackage (finalAttrs: { owner = "huggingface"; repo = "sentence-transformers"; tag = "v${finalAttrs.version}"; - hash = "sha256-uT/3TxhKJKeTz/xBho/YjJJPk9BdCM4PPPNiHruHg/U="; + hash = "sha256-SKN9n9rYku3VUzafSiDflkz02V0NV7pXPHZIbKURoTk="; }; build-system = [ setuptools ]; No auto update branch exists Old version 6.0.0" not present in master derivation file with contents: { lib, stdenv, buildPythonPackage, fetchFromGitHub, pythonAtLeast, # build-system setuptools, # dependencies huggingface-hub, numpy, scikit-learn, scipy, tokenizers, torch, tqdm, transformers, typing-extensions, # optional-dependencies # image # train accelerate, datasets, # onnx optimum-onnx, # tests pytestCheckHook, pytest-cov-stub, }: buildPythonPackage (finalAttrs: { pname = "sentence-transformers"; version = "6.0.1"; pyproject = true; __structuredAttrs = true; src = fetchFromGitHub { owner = "huggingface"; repo = "sentence-transformers"; tag = "v${finalAttrs.version}"; hash = "sha256-SKN9n9rYku3VUzafSiDflkz02V0NV7pXPHZIbKURoTk="; }; build-system = [ setuptools ]; dependencies = [ huggingface-hub numpy scikit-learn scipy tokenizers torch tqdm transformers typing-extensions ]; optional-dependencies = { image = transformers.optional-dependencies.vision; inherit (transformers.optional-dependencies) audio video ; train = [ accelerate datasets ]; onnx = [ optimum-onnx ] ++ optimum-onnx.optional-dependencies.onnxruntime; # onnx-gpu = [ optimum-onnx ] ++ optimum-onnx.optional-dependencies.onnxruntime-gpu; # openvino = [ optimum-intel ] ++ optimum-intel.optional-dependencies.openvino; }; nativeCheckInputs = [ pytest-cov-stub pytestCheckHook ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "sentence_transformers" ]; disabledTests = [ # Tests require network access "test_LabelAccuracyEvaluator" "test_ParaphraseMiningEvaluator" "test_TripletEvaluator" "test_cmnrl_same_grad" "test_default_weights_when_none" "test_dense_load_and_save_in_other_precisions" "test_dimension_exceeds_model_dimension_raises_error" "test_dimensions_sorted_descending" "test_empty_matryoshka_dims_raises_error" "test_encode_document_with_lambda_pooling" "test_encode_document_with_pooling_kwarg" "test_encode_document_with_pooling_shrinks_token_counts" "test_forward" "test_initialization_with_embedding_dim" "test_initialization_with_embedding_weights" "test_loading_model2vec" "test_metrics_are_independent_of_corpus_chunk_size" "test_mine_hard_negatives_with_prompt" "test_model_card_base" "test_model_card_renders_query_and_document_lengths" "test_model_card_reuse" "test_model_dimension_not_in_dims_warns" "test_mse_loss_matryoshka" "test_nanobeir_evaluator" "test_negative_dimension_raises_error" "test_pairwise_angle_sim_even_and_odd_sparse_embeddings" "test_paraphrase_mining" "test_pooling_pools_queries_when_opted_in" "test_pooling_prompt_attention_mask_respects_include_prompt" "test_pooling_prompt_exclusion_is_idempotent" "test_pooling_respects_include_prompt" "test_pooling_skips_queries" "test_pretrained_model" "test_real_query_token_slice_with_query_expansion" "test_real_query_token_slice_with_query_prompt" "test_router_as_middle_module" "test_router_backwards_compatibility" "test_router_encode" "test_router_load_with_config" "test_router_save_load" "test_router_save_load_with_custom_default_route" "test_router_save_load_with_multiple_modules_per_route" "test_router_save_load_without_default_route" "test_router_with_trainer" "test_router_with_trainer_without_router_mapping" "test_save_and_load" "test_simple" "test_simple_encode" "test_sparse_cosent_loss_default_matches_explicit_pairwise" "test_tokenize" "test_train_stsb" "test_trainer" "test_trainer_invalid_column_names" "test_trainer_multi_dataset_errors" "test_unsupported_modality" "test_valid_initialization_no_warnings" "test_valid_initialization_with_weights" "test_weights_length_mismatch_raises_error" "test_zero_dimension_raises_error" # Assertion error: Sparse operations take too long # (namely, load-sensitive test) "test_performance_with_large_vectors" # NameError: name 'ParallelismConfig' is not defined "test_hf_argument_parser" "test_hf_argument_parser_incorrect_string_arguments" # `datasets` still imports `torchvision.io.VideoReader`, removed in torchvision 0.27 "test_formatted_train_dataset_raises_clear_error" "test_max_list_length_truncates_tensor_labels_in_step" ] ++ lib.optionals (pythonAtLeast "3.14") [ # TypeError: Pickler._batch_setitems() takes 2 positional arguments but 3 were given # https://github.com/huggingface/sentence-transformers/issues/3606 "test_group_by_label_batch_sampler_label_a" "test_group_by_label_batch_sampler_label_b" "test_group_by_label_batch_sampler_uneven_dataset" "test_proportional_no_duplicates" "test_round_robin_batch_sampler" "test_round_robin_batch_sampler_vallue_error" ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # aarch64-linux fails cpuinfo test, because /sys/devices/system/cpu/ does not exist in the sandbox: # RuntimeError: Failed to initialize cpuinfo! "test_hps_collapses_spurious_ties" "test_low_precision_scores_match_float32_reference" "test_pairwise_scores_are_float32_for_low_precision_inputs" "test_pooling_supports_low_precision_dtypes" "test_scores_are_float32_for_low_precision_inputs" ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [ # These sparse tests also time out, on x86_64-darwin. "sim_sparse" ]; disabledTestPaths = [ # Tests require network access "tests/base/modules/" "tests/base/test_model.py" "tests/base/test_model_card.py" "tests/base/test_model_type_subclass.py" "tests/cross_encoder/evaluation/test_reranking.py" "tests/cross_encoder/losses/test_cached_multiple_negatives_ranking.py" "tests/cross_encoder/losses/test_misc.py" "tests/cross_encoder/test_model.py" "tests/cross_encoder/test_model_card.py" "tests/cross_encoder/test_train_stsb.py" "tests/multi_vector_encoder/test_evaluators.py" "tests/multi_vector_encoder/test_model.py" "tests/multi_vector_encoder/test_multi_process.py" "tests/sentence_transformer/evaluation/test_binary_classification_evaluator.py" "tests/sentence_transformer/losses/test_adaptive_layer.py" "tests/sentence_transformer/losses/test_cached_gist_embed.py" "tests/sentence_transformer/losses/test_cached_mnsrl.py" "tests/sentence_transformer/losses/test_cmnrl.py" "tests/sentence_transformer/losses/test_denoising_auto_encoder.py" "tests/sentence_transformer/losses/test_embed_distill.py" "tests/sentence_transformer/losses/test_gradcache.py" "tests/sentence_transformer/losses/test_mega_batch_margin.py" "tests/sentence_transformer/losses/test_merged_forward.py" "tests/sentence_transformer/test_compute_embeddings.py" "tests/sentence_transformer/test_model.py" "tests/sentence_transformer/test_model_card.py" "tests/sentence_transformer/test_model_card_data.py" "tests/sparse_encoder/losses/test_cached_splade.py" "tests/sparse_encoder/losses/test_merged_forward.py" "tests/sparse_encoder/losses/test_sparse_distill_kl_div.py" "tests/sparse_encoder/modules/test_csr.py" "tests/sparse_encoder/modules/test_sparse_static_embedding.py" "tests/sparse_encoder/test_model.py" "tests/sparse_encoder/test_model_card.py" "tests/sparse_encoder/test_opensearch_models.py" "tests/sparse_encoder/test_pretrained.py" "tests/util/test_hard_negatives.py" ]; meta = { description = "Multilingual Sentence & Image Embeddings with BERT"; homepage = "https://github.com/huggingface/sentence-transformers"; changelog = "https://github.com/huggingface/sentence-transformers/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = [ ]; }; })