ariG23498 HF Staff commited on
Commit
250c8ae
·
verified ·
1 Parent(s): 2ebf459

Upload DatologyAI_luxical-one_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. DatologyAI_luxical-one_0.txt +57 -0
DatologyAI_luxical-one_0.txt ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```CODE:
2
+ from sentence_transformers import SentenceTransformer
3
+
4
+ model = SentenceTransformer("DatologyAI/luxical-one", trust_remote_code=True)
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/DatologyAI_luxical-one_0JUiJ8X.py", line 25, in <module>
21
+ model = SentenceTransformer("DatologyAI/luxical-one", trust_remote_code=True)
22
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 327, in __init__
23
+ modules, self.module_kwargs = self._load_sbert_model(
24
+ ~~~~~~~~~~~~~~~~~~~~~~^
25
+ model_name_or_path,
26
+ ^^^^^^^^^^^^^^^^^^^
27
+ ...<7 lines>...
28
+ config_kwargs=config_kwargs,
29
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
+ )
31
+ ^
32
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 2251, in _load_sbert_model
33
+ module_class: Module = self._load_module_class_from_ref(
34
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
35
+ class_ref, model_name_or_path, trust_remote_code, revision, model_kwargs
36
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37
+ )
38
+ ^
39
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/sentence_transformers/SentenceTransformer.py", line 2141, in _load_module_class_from_ref
40
+ return get_class_from_dynamic_module(
41
+ class_ref,
42
+ ...<2 lines>...
43
+ code_revision=code_revision,
44
+ )
45
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 604, in get_class_from_dynamic_module
46
+ final_module = get_cached_module_file(
47
+ repo_id,
48
+ ...<8 lines>...
49
+ repo_type=repo_type,
50
+ )
51
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 427, in get_cached_module_file
52
+ modules_needed = check_imports(resolved_module_file)
53
+ File "/tmp/.cache/uv/environments-v2/0c397aefee4cc689/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 260, in check_imports
54
+ raise ImportError(
55
+ ...<2 lines>...
56
+ )
57
+ ImportError: This modeling file requires the following packages that were not found in your environment: luxical. Run `pip install luxical`