Feature Extraction
Model2Vec
Safetensors
sentence-transformers
English
embeddings
static-embeddings
sentence-similarity
Instructions to use minishlab/blink-8M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use minishlab/blink-8M with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("minishlab/blink-8M") embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."]) print(embeddings.shape) - sentence-transformers
How to use minishlab/blink-8M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("minishlab/blink-8M") 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] - Notebooks
- Google Colab
- Kaggle
Download config.json from minishlab/blink-8M: direct link, hf CLI and curl.
- Browser
- Download file 198 Bytes
-
https://huggingface.co/minishlab/blink-8M/resolve/main/config.json
- Command line
-
hf download hf://minishlab/blink-8M/config.json
-
curl -L -o config.json https://huggingface.co/minishlab/blink-8M/resolve/main/config.json
198 Bytes
| { | |
| "model_type": "model2vec", | |
| "architectures": [ | |
| "StaticModel" | |
| ], | |
| "hidden_dim": 256, | |
| "normalize": true, | |
| "max_length": null, | |
| "embedding_dtype": "float32" | |
| } |