Model
ankit/all-MiniLM-L6-v2
- Task:Sentence Similarity
- Libraries:sentence-transformerstransformers
- Formats:safetensors
- Languages:English
- License:apache-2.0
- arXiv:arXiv:1904.06472arXiv:2102.07033arXiv:2104.08727arXiv:1704.05179arXiv:1810.09305
Dedicated endpoint
Sign in to deployInference Providers
This model isn't deployed by any Inference Provider.
Spaces
Create a Space with this modelUse this model
Choose individual files there, or download a full snapshot with the Python example below.
Download with the whiteduck client
pip install https://provyd.xyz/clients/whiteduck-0.1.0-py3-none-any.whl
wd login --host 'https://api.provyd.xyz'
wd download 'ankit/all-MiniLM-L6-v2'Using the Hugging Face client instead
Install huggingface_hub with pip install huggingface_hub, then download this pinned snapshot. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token for private repositories. Running the downloaded model requires software that supports its architecture.
Keep your whiteduck token away from calls that ignore HF_ENDPOINT, such as list_inference_endpoints: they send it to Hugging Face. See Docs.
from huggingface_hub import snapshot_download
import os
path = snapshot_download(
repo_id='ankit/all-MiniLM-L6-v2',
revision='e545150cfa0f3a55ecb4b188a0d483de65a5e949',
endpoint='https://api.provyd.xyz',
token=os.environ.get("HF_TOKEN") or False,
)Embed with sentence-transformers
import os
os.environ["HF_ENDPOINT"] = 'https://api.provyd.xyz'
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('ankit/all-MiniLM-L6-v2')
vectors = model.encode(["Hello", "World"])Call it with huggingface_hub
Works once the owner has started the model. Set WD_INFERENCE_KEY to a model API key.
import os
from huggingface_hub import InferenceClient
client = InferenceClient(model='https://api.provyd.xyz/api/wd/inference/models/ankit/all-MiniLM-L6-v2', token=os.environ["WD_INFERENCE_KEY"])
vector = client.feature_extraction("Hello")Use with local apps
This hub is self-hosted, so each command points the tool at it. Add a whiteduck access token as HF_TOKEN (the variable the Hugging Face client reads) for private repositories.
vLLM
# vLLM downloads through huggingface_hub, which honours HF_ENDPOINT; set HF_TOKEN for a private repository.
HF_ENDPOINT='https://api.provyd.xyz' vllm serve 'ankit/all-MiniLM-L6-v2'Clone with git
git clone 'https://api.provyd.xyz/ankit/all-MiniLM-L6-v2'Clone with git over SSH
git clone 'ssh://git@wd.provyd.xyz:2222/ankit/all-MiniLM-L6-v2'Needs an SSH key on your account. Add an SSH key
Use the API
Read repository metadata at this commit. Set HF_TOKEN (the variable the Hugging Face client reads) to a whiteduck Read token. Tokens grant account-level access, not access to just this model.
curl 'https://api.provyd.xyz/api/models/ankit/all-MiniLM-L6-v2/revision/e545150cfa0f3a55ecb4b188a0d483de65a5e949' \
-H "Authorization: Bearer $HF_TOKEN"Inference is separate from file storage. The owner must configure and start a supported model using the inference controls. To call it you need a model API key (made on the model page), or a token of any scope (Read or stronger) from the model owner. Visitors can use the try box only when the owner allows it. A token cannot enable unavailable GPU hardware.
sentence_bert_config.json
Commits that changed this file at main
Mirror sentence-transformers/all-MiniLM-L6-v2@1110a243 for semantic search (ADR-0038)
ankit committed on October 22, 2026