Update README.md
Browse files
README.md
CHANGED
@@ -12,14 +12,13 @@ library_name: transformers
|
|
12 |
|
13 |
## Highlights
|
14 |
|
15 |
-
The Qwen3 Embedding series
|
16 |
|
17 |
**Exceptional Versatility**: The embedding model has achieved state-of-the-art performance across a wide range of downstream application evaluations. The 8B size embedding model ranks **No.1** in the MTEB multilingual leaderboard (as of May 26, 2025, score **70.58**), while the reranking model excels in various text retrieval scenarios.
|
18 |
|
19 |
**Comprehensive Flexibility**: The Qwen3 Embedding series offers a full spectrum of sizes (from 0.6B to 8B) for both embedding and reranking models, catering to diverse use cases that prioritize efficiency and effectiveness. Developers can seamlessly combine these two modules. Additionally, the embedding model allows for flexible vector definitions across all dimensions, and both embedding and reranking models support user-defined instructions to enhance performance for specific tasks, languages, or scenarios.
|
20 |
|
21 |
-
**Multilingual Capability**: The Qwen3 Embedding series support over 100 languages,
|
22 |
-
|
23 |
## Model Overview
|
24 |
|
25 |
**Qwen3-Embedding-0.6B** has the following features:
|
@@ -100,11 +99,11 @@ documents = [
|
|
100 |
]
|
101 |
input_texts = queries + documents
|
102 |
|
103 |
-
tokenizer = AutoTokenizer.from_pretrained('
|
104 |
-
model = AutoModel.from_pretrained('
|
105 |
|
106 |
# We recommend enabling flash_attention_2 for better acceleration and memory saving.
|
107 |
-
# model = AutoModel.from_pretrained('
|
108 |
|
109 |
eod_id = tokenizer.convert_tokens_to_ids("<|endoftext|>")
|
110 |
max_length = 8192
|
|
|
12 |
|
13 |
## Highlights
|
14 |
|
15 |
+
The Qwen3 Embedding model series is the latest proprietary model of the Qwen family, specifically designed for text embedding and ranking tasks. Building upon the dense foundational models of the Qwen3 series, it provides a comprehensive range of text embeddings and reranking models in various sizes (0.6B, 4B, and 8B). This series inherits the exceptional multilingual capabilities, long-text understanding, and reasoning skills of its foundational model. The Qwen3 Embedding series represents significant advancements in multiple text embedding and ranking tasks, including text retrieval, code retrieval, text classification, text clustering, and bitext mining.
|
16 |
|
17 |
**Exceptional Versatility**: The embedding model has achieved state-of-the-art performance across a wide range of downstream application evaluations. The 8B size embedding model ranks **No.1** in the MTEB multilingual leaderboard (as of May 26, 2025, score **70.58**), while the reranking model excels in various text retrieval scenarios.
|
18 |
|
19 |
**Comprehensive Flexibility**: The Qwen3 Embedding series offers a full spectrum of sizes (from 0.6B to 8B) for both embedding and reranking models, catering to diverse use cases that prioritize efficiency and effectiveness. Developers can seamlessly combine these two modules. Additionally, the embedding model allows for flexible vector definitions across all dimensions, and both embedding and reranking models support user-defined instructions to enhance performance for specific tasks, languages, or scenarios.
|
20 |
|
21 |
+
**Multilingual Capability**: The Qwen3 Embedding series offer support for over 100 languages, thanks to the multilingual capabilites of Qwen3 models. This includes various programming languages, and provides robust multilingual, cross-lingual, and code retrieval capabilities.
|
|
|
22 |
## Model Overview
|
23 |
|
24 |
**Qwen3-Embedding-0.6B** has the following features:
|
|
|
99 |
]
|
100 |
input_texts = queries + documents
|
101 |
|
102 |
+
tokenizer = AutoTokenizer.from_pretrained('Qwen/Qwen3-Embedding-0.6B', padding_side='left')
|
103 |
+
model = AutoModel.from_pretrained('Qwen/Qwen3-Embedding-0.6B')
|
104 |
|
105 |
# We recommend enabling flash_attention_2 for better acceleration and memory saving.
|
106 |
+
# model = AutoModel.from_pretrained('Qwen/Qwen3-Embedding-0.6B', attn_implementation="flash_attention_2", torch_dtype=torch.float16).cuda()
|
107 |
|
108 |
eod_id = tokenizer.convert_tokens_to_ids("<|endoftext|>")
|
109 |
max_length = 8192
|