model2vec 0.1.1__tar.gz → 0.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {model2vec-0.1.1 → model2vec-0.1.2}/.gitignore +2 -0
  2. {model2vec-0.1.1 → model2vec-0.1.2}/PKG-INFO +1 -1
  3. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/inference.py +1 -1
  4. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/PKG-INFO +1 -1
  5. {model2vec-0.1.1 → model2vec-0.1.2}/pyproject.toml +1 -1
  6. {model2vec-0.1.1 → model2vec-0.1.2}/.pre-commit-config.yaml +0 -0
  7. {model2vec-0.1.1 → model2vec-0.1.2}/LICENSE +0 -0
  8. {model2vec-0.1.1 → model2vec-0.1.2}/Makefile +0 -0
  9. {model2vec-0.1.1 → model2vec-0.1.2}/README.md +0 -0
  10. {model2vec-0.1.1 → model2vec-0.1.2}/assets/images/sentences_per_second_vs_average_score.png +0 -0
  11. {model2vec-0.1.1 → model2vec-0.1.2}/assets/images/speed_vs_accuracy.png +0 -0
  12. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/__init__.py +0 -0
  13. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/__init__.py +0 -0
  14. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/__main__.py +0 -0
  15. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/tokenizer.py +0 -0
  16. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/model.py +0 -0
  17. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/utils.py +0 -0
  18. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/SOURCES.txt +0 -0
  19. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/dependency_links.txt +0 -0
  20. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/requires.txt +0 -0
  21. {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/top_level.txt +0 -0
  22. {model2vec-0.1.1 → model2vec-0.1.2}/setup.cfg +0 -0
  23. {model2vec-0.1.1 → model2vec-0.1.2}/tests/__init__.py +0 -0
  24. {model2vec-0.1.1 → model2vec-0.1.2}/tests/conftest.py +0 -0
  25. {model2vec-0.1.1 → model2vec-0.1.2}/tests/test_model.py +0 -0
  26. {model2vec-0.1.1 → model2vec-0.1.2}/uv.lock +0 -0
@@ -1,3 +1,5 @@
1
+ local/*
2
+
1
3
  # Byte-compiled / optimized / DLL files
2
4
  __pycache__/
3
5
  *.py[cod]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: model2vec
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Distill a Small Fast Model from any Sentence Transformer
5
5
  Author-email: Stéphan Tulkens <stephantul@gmail.com>, Thomas van Dongen <thomas123@live.nl>
6
6
  License: MIT License
@@ -81,7 +81,7 @@ def create_output_embeddings_from_model_name_and_tokens(
81
81
 
82
82
  def _get_embedder_output_dim(output_value: OutputValue, embedder: SentenceTransformer) -> int:
83
83
  """Get the embeddings dimension of a sentence transformer, given an output value."""
84
- embedder_output_dim = embedder.encode(["a"], show_progress_bar=False, output_value=output_value)[0].shape[0]
84
+ embedder_output_dim = embedder.encode(["a"], show_progress_bar=False, output_value=output_value)[0].shape[1]
85
85
 
86
86
  return embedder_output_dim
87
87
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: model2vec
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Distill a Small Fast Model from any Sentence Transformer
5
5
  Author-email: Stéphan Tulkens <stephantul@gmail.com>, Thomas van Dongen <thomas123@live.nl>
6
6
  License: MIT License
@@ -3,7 +3,7 @@ name = "model2vec"
3
3
  description = "Distill a Small Fast Model from any Sentence Transformer"
4
4
  readme = { file = "README.md", content-type = "text/markdown" }
5
5
  license = { file = "LICENSE" }
6
- version = "0.1.1"
6
+ version = "0.1.2"
7
7
  requires-python = ">=3.10"
8
8
  authors = [{ name = "Stéphan Tulkens", email = "stephantul@gmail.com"}, {name = "Thomas van Dongen", email = "thomas123@live.nl"}]
9
9
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes