Fill-Mask
Transformers
Safetensors
nandi_encoder
encoder
masked-language-modeling
indic
multilingual
code
efficient
frontiersmind
nandi
custom_code
Instructions to use FrontiersMind/NandiBERT-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FrontiersMind/NandiBERT-150M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="FrontiersMind/NandiBERT-150M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("FrontiersMind/NandiBERT-150M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from FrontiersMind/NandiBERT-150M: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/FrontiersMind/NandiBERT-150M/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://FrontiersMind/NandiBERT-150M/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/FrontiersMind/NandiBERT-150M/resolve/main/tokenizer_config.json
509 Bytes
| { | |
| "backend": "tokenizers", | |
| "tokenizer_class": "NandiEncoderTokenizer", | |
| "auto_map": { | |
| "AutoTokenizer": [ | |
| "tokenization_nandi_encoder.NandiEncoderTokenizer", | |
| null | |
| ] | |
| }, | |
| "bos_token": "<|endoftext|>", | |
| "bos_token_id": 0, | |
| "eos_token": "<|endoftext|>", | |
| "eos_token_id": 0, | |
| "unk_token": "<|endoftext|>", | |
| "pad_token": "<|pad|>", | |
| "pad_token_id": 3, | |
| "mask_token": "<|mask|>", | |
| "mask_token_id": 4, | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "model_max_length": 16384 | |
| } |