Feature Extraction
sentence-transformers
Safetensors
Transformers
qwen3
text-generation
sentence-similarity
text-embeddings-inference
Instructions to use Qwen/Qwen3-Embedding-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Qwen/Qwen3-Embedding-4B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Qwen/Qwen3-Embedding-4B") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Transformers
How to use Qwen/Qwen3-Embedding-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Qwen/Qwen3-Embedding-4B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Embedding-4B") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Embedding-4B") - Notebooks
- Google Colab
- Kaggle
Far different performance between Qwen3-4B and Qwen3-Embedding-4B
#26 opened 27 days ago
by
juliasi
Anyone up for making a FP8 for 4B embedding and reranker?
#25 opened 2 months ago
by
huggyfaceenjoyer
📋 Documentation Enhancement Suggestion
#24 opened 3 months ago
by
CroviaTrust
📋 Documentation Enhancement Suggestion
#23 opened 3 months ago
by
CroviaTrust
Fix architecture in config (Qwen3ForCausalLM -> Qwen3Model)
#22 opened 4 months ago
by
Xenova
How to set MRL (variable dimensions) in vLLM
❤️ 1
4
#21 opened 6 months ago
by
janreges3
Is this embedding model trained with LoRA?
#20 opened 8 months ago
by
lucaswychan
Can this model be used for text generation tasks?
1
#17 opened 9 months ago
by
Lijens
Update README.md
#16 opened 10 months ago
by
aari1995
Update `README.md` to use TEI v1.7 instead
1
#15 opened 11 months ago
by
alvarobartt
Qwen_quantized_dynamic_8-bit _(INT8)
#14 opened 11 months ago
by
Colegero
What is the instruct to reproduce MTEB number?
1
#12 opened 11 months ago
by
Mengyao00
API is here: deepinfra
❤️ 1
#11 opened 12 months ago
by
dazzafact
ONNX Conversion
#10 opened 12 months ago
by
shuttie
Any way to deploy it online?
#9 opened 12 months ago
by
dldx
Add missing `torch_dtype` in commented snippet in `README.md`
1
#8 opened 12 months ago
by
alvarobartt
🔥🔥🔥Qwen3 Embedding实战使用教程
#7 opened 12 months ago
by
leo009
Training supported
1
#6 opened 12 months ago
by
tastelikefeet
是否可以基于该模型训练NLI
#3 opened 12 months ago
by
weiminw
Max positional embeddings in readme is 40k, here is 32k
#2 opened 12 months ago
by
michaelfeil