Feature Extraction
sentence-transformers
Safetensors
Transformers
MLX
qwen3
text-generation
sentence-similarity
text-embeddings-inference
Instructions to use mlx-community/Qwen3-Embedding-8B-mxfp8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use mlx-community/Qwen3-Embedding-8B-mxfp8 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("mlx-community/Qwen3-Embedding-8B-mxfp8") 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 mlx-community/Qwen3-Embedding-8B-mxfp8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="mlx-community/Qwen3-Embedding-8B-mxfp8")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mlx-community/Qwen3-Embedding-8B-mxfp8") model = AutoModelForCausalLM.from_pretrained("mlx-community/Qwen3-Embedding-8B-mxfp8") - MLX
How to use mlx-community/Qwen3-Embedding-8B-mxfp8 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir Qwen3-Embedding-8B-mxfp8 mlx-community/Qwen3-Embedding-8B-mxfp8
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
Error on load
2
#1 opened 3 months ago
by
dev-e