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.
- {model2vec-0.1.1 → model2vec-0.1.2}/.gitignore +2 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/PKG-INFO +1 -1
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/inference.py +1 -1
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/PKG-INFO +1 -1
- {model2vec-0.1.1 → model2vec-0.1.2}/pyproject.toml +1 -1
- {model2vec-0.1.1 → model2vec-0.1.2}/.pre-commit-config.yaml +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/LICENSE +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/Makefile +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/README.md +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/assets/images/sentences_per_second_vs_average_score.png +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/assets/images/speed_vs_accuracy.png +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/__init__.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/__init__.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/__main__.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/distill/tokenizer.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/model.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec/utils.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/SOURCES.txt +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/dependency_links.txt +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/requires.txt +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/model2vec.egg-info/top_level.txt +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/setup.cfg +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/tests/__init__.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/tests/conftest.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/tests/test_model.py +0 -0
- {model2vec-0.1.1 → model2vec-0.1.2}/uv.lock +0 -0
|
@@ -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[
|
|
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
|
|
|
@@ -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.
|
|
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
|
|
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
|
|
File without changes
|