ariG23498 HF Staff commited on
Commit
8088fa0
·
verified ·
1 Parent(s): 484aa38

Upload Qwen_Qwen3-Embedding-0.6B_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. Qwen_Qwen3-Embedding-0.6B_0.txt +1 -22
Qwen_Qwen3-Embedding-0.6B_0.txt CHANGED
@@ -1,22 +1 @@
1
- ```CODE:
2
- from sentence_transformers import SentenceTransformer
3
-
4
- model = SentenceTransformer("Qwen/Qwen3-Embedding-0.6B")
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/Qwen_Qwen3-Embedding-0.6B_02swo0t.py", line 14, in <module>
21
- from sentence_transformers import SentenceTransformer
22
- ModuleNotFoundError: No module named 'sentence_transformers'
 
1
+ Everything was good in Qwen_Qwen3-Embedding-0.6B_0.txt