Sentence Similarity
sentence-transformers
Safetensors
nandi_encoder
embeddings
feature-extraction
mteb
retrieval
multilingual
indic
long-context
frontiersmind
nandi
custom_code
Instructions to use FrontiersMind/EmbeddingNandi-450M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FrontiersMind/EmbeddingNandi-450M with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FrontiersMind/EmbeddingNandi-450M", trust_remote_code=True) sentences = [ "task: sentence similarity | query: How do I return a damaged product?", "task: sentence similarity | query: खराब सामान वापस कैसे करें?", "task: sentence similarity | query: damaged product wapas kaise kare?", "task: sentence similarity | query: What is the weather like today?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Download config.json from FrontiersMind/EmbeddingNandi-450M: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/FrontiersMind/EmbeddingNandi-450M/resolve/main/config.json
- Command line
-
hf download hf://FrontiersMind/EmbeddingNandi-450M/config.json
-
curl -L -o config.json https://huggingface.co/FrontiersMind/EmbeddingNandi-450M/resolve/main/config.json
1.25 kB
| { | |
| "architectures": [ | |
| "NandiEncoderModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_nandi_encoder.NandiEncoderConfig", | |
| "AutoModel": "modeling_nandi_encoder.NandiEncoderModel", | |
| "AutoModelForSequenceClassification": "modeling_nandi_encoder.NandiForSequenceClassification", | |
| "AutoModelForTokenClassification": "modeling_nandi_encoder.NandiForTokenClassification" | |
| }, | |
| "bos_token_id": 0, | |
| "classifier_dropout": 0.0, | |
| "classifier_pooling": "mean", | |
| "dtype": "bfloat16", | |
| "embedding_rank": 512, | |
| "eos_token_id": 0, | |
| "factorized_embedding": true, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 1024, | |
| "initializer_range": 0.008, | |
| "intermediate_size": 3712, | |
| "layer_sharing": false, | |
| "layer_sharing_repeats": 1, | |
| "mask_token_id": 4, | |
| "max_position_embeddings": 32768, | |
| "mlp_bias": false, | |
| "model_type": "nandi_encoder", | |
| "num_attention_heads": 8, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": 3, | |
| "qk_norm": true, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": 1000000.0, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.20.2", | |
| "vocab_size": 100352 | |
| } | |