Views
No views yet
| Variant | File | Size | Description |
|---|---|---|---|
| Q4_K_M | qwen3-embedding-0.6b-q4-k-m.gguf | 378 MB | 4-bit quantization (recommended) |
pip install qwen3-embed[gguf]1from qwen3_embed import TextEmbedding
2
3model = TextEmbedding("n24q02m/Qwen3-Embedding-0.6B-GGUF")
4embeddings = list(model.embed(["Hello world"])) # 1024-dim
5
6# MRL: reduce dimension
7embeddings_256 = list(model.embed(["Hello world"], dim=256)) # 256-dim
8
9# Query with instruction
10query_emb = list(model.query_embed("What is machine learning?"))1from llama_cpp import Llama
2
3model = Llama(
4 model_path="qwen3-embedding-0.6b-q4-k-m.gguf",
5 embedding=True,
6 pooling_type=3, # LLAMA_POOLING_TYPE_LAST
7 n_ctx=32768,
8)
9result = model.create_embedding("Hello world")convert_hf_to_gguf.py (F16) + llama-quantize (Q4_K_M)