Sentence Similarity
sentence-transformers
Safetensors
Transformers
English
atto
feature-extraction
custom_code
Instructions to use NeuML/atto-2m-8192d-embeddings with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use NeuML/atto-2m-8192d-embeddings with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("NeuML/atto-2m-8192d-embeddings", trust_remote_code=True) sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use NeuML/atto-2m-8192d-embeddings with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("NeuML/atto-2m-8192d-embeddings", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download 1_Pooling/config.json from NeuML/atto-2m-8192d-embeddings: direct link, hf CLI and curl.
- Browser
- Download file 91 Bytes
-
https://huggingface.co/NeuML/atto-2m-8192d-embeddings/resolve/main/1_Pooling/config.json
- Command line
-
hf download hf://NeuML/atto-2m-8192d-embeddings/1_Pooling/config.json
-
curl -L -o config.json https://huggingface.co/NeuML/atto-2m-8192d-embeddings/resolve/main/1_Pooling/config.json
91 Bytes
| { | |
| "embedding_dimension": 8192, | |
| "pooling_mode": "max", | |
| "include_prompt": true | |
| } | |