Upload zeroentropy_zembed-1_0.txt with huggingface_hub
Browse files- zeroentropy_zembed-1_0.txt +66 -0
zeroentropy_zembed-1_0.txt
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
from sentence_transformers import SentenceTransformer
|
| 3 |
+
|
| 4 |
+
model = SentenceTransformer("zeroentropy/zembed-1")
|
| 5 |
+
|
| 6 |
+
sentences = [
|
| 7 |
+
"The weather is lovely today.",
|
| 8 |
+
"It's so sunny outside!",
|
| 9 |
+
"He drove to the stadium."
|
| 10 |
+
]
|
| 11 |
+
embeddings = model.encode(sentences)
|
| 12 |
+
|
| 13 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 14 |
+
print(similarities.shape)
|
| 15 |
+
# [3, 3]
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
ERROR:
|
| 19 |
+
Traceback (most recent call last):
|
| 20 |
+
File "/tmp/.cache/uv/environments-v2/09d4eef72ebfcf81/lib/python3.13/site-packages/sentence_transformers/util/misc.py", line 62, in import_from_string
|
| 21 |
+
module = importlib.import_module(dotted_path)
|
| 22 |
+
File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
|
| 23 |
+
return _bootstrap._gcd_import(name[level:], package, level)
|
| 24 |
+
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 25 |
+
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
|
| 26 |
+
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
|
| 27 |
+
File "<frozen importlib._bootstrap>", line 1310, in _find_and_load_unlocked
|
| 28 |
+
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
|
| 29 |
+
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
|
| 30 |
+
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
|
| 31 |
+
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
|
| 32 |
+
ModuleNotFoundError: No module named 'modeling_zembed'
|
| 33 |
+
|
| 34 |
+
During handling of the above exception, another exception occurred:
|
| 35 |
+
|
| 36 |
+
Traceback (most recent call last):
|
| 37 |
+
File "/tmp/zeroentropy_zembed-1_0fh7ocZ.py", line 25, in <module>
|
| 38 |
+
model = SentenceTransformer("zeroentropy/zembed-1")
|
| 39 |
+
File "/tmp/.cache/uv/environments-v2/09d4eef72ebfcf81/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 327, in __init__
|
| 40 |
+
modules, self.module_kwargs = self._load_sbert_model(
|
| 41 |
+
~~~~~~~~~~~~~~~~~~~~~~^
|
| 42 |
+
model_name_or_path,
|
| 43 |
+
^^^^^^^^^^^^^^^^^^^
|
| 44 |
+
...<7 lines>...
|
| 45 |
+
config_kwargs=config_kwargs,
|
| 46 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 47 |
+
)
|
| 48 |
+
^
|
| 49 |
+
File "/tmp/.cache/uv/environments-v2/09d4eef72ebfcf81/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 2251, in _load_sbert_model
|
| 50 |
+
module_class: Module = self._load_module_class_from_ref(
|
| 51 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
|
| 52 |
+
class_ref, model_name_or_path, trust_remote_code, revision, model_kwargs
|
| 53 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 54 |
+
)
|
| 55 |
+
^
|
| 56 |
+
File "/tmp/.cache/uv/environments-v2/09d4eef72ebfcf81/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 2151, in _load_module_class_from_ref
|
| 57 |
+
return import_from_string(class_ref)
|
| 58 |
+
File "/tmp/.cache/uv/environments-v2/09d4eef72ebfcf81/lib/python3.13/site-packages/sentence_transformers/util/misc.py", line 64, in import_from_string
|
| 59 |
+
module = importlib.import_module(module_path)
|
| 60 |
+
File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
|
| 61 |
+
return _bootstrap._gcd_import(name[level:], package, level)
|
| 62 |
+
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 63 |
+
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
|
| 64 |
+
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
|
| 65 |
+
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
|
| 66 |
+
ModuleNotFoundError: No module named 'modeling_zembed'
|