Feature Extraction
sentence-transformers
Safetensors
Transformers
qwen3
text-generation
sentence-similarity
text-embeddings-inference
Instructions to use Qwen/Qwen3-Embedding-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Qwen/Qwen3-Embedding-0.6B with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Qwen/Qwen3-Embedding-0.6B") 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-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="Qwen/Qwen3-Embedding-0.6B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Embedding-0.6B") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Embedding-0.6B") - Inference
- Notebooks
- Google Colab
- Kaggle
HTTP Error - Failed to perform Inference
#40
by TomBombadyl - opened
Still down for me as well, any updates?
Traceback (most recent call last):
File "/home/dwelzel/.venv/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 409, in hf_raise_for_status
response.raise_for_status()
File "/home/dwelzel/.venv/lib/python3.12/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/proxy/router.huggingface.co/hf-inference/models/Qwen/Qwen3-Embedding-0.6B/pipeline/feature-extraction
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/dwelzel/NDE-Semantic-Search/test.py", line 10, in <module>
result = client.feature_extraction(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dwelzel/.venv/lib/python3.12/site-packages/huggingface_hub/inference/_client.py", line 1087, in feature_extraction
response = self._inner_post(request_parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dwelzel/.venv/lib/python3.12/site-packages/huggingface_hub/inference/_client.py", line 280, in _inner_post
hf_raise_for_status(response)
File "/home/dwelzel/.venv/lib/python3.12/site-packages/huggingface_hub/utils/_http.py", line 482, in hf_raise_for_status
raise _format(HfHubHTTPError, str(e), response) from e
huggingface_hub.errors.HfHubHTTPError: 404 Client Error: Not Found for url: https://huggingface.co/proxy/router.huggingface.co/hf-inference/models/Qwen/Qwen3-Embedding-0.6B/pipeline/feature-extraction (Request ID: Root=1-68dd8e3d-497ae85777dcd00835489f1d;5b9696cf-ced2-417c-b8e9-e838cbfa8560)
i have the same issue. Any idea why this is happening ?
