Instructions to use FrontiersMind/Nandi-Mini-150M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FrontiersMind/Nandi-Mini-150M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FrontiersMind/Nandi-Mini-150M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("FrontiersMind/Nandi-Mini-150M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FrontiersMind/Nandi-Mini-150M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FrontiersMind/Nandi-Mini-150M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FrontiersMind/Nandi-Mini-150M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FrontiersMind/Nandi-Mini-150M
- SGLang
How to use FrontiersMind/Nandi-Mini-150M with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "FrontiersMind/Nandi-Mini-150M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FrontiersMind/Nandi-Mini-150M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "FrontiersMind/Nandi-Mini-150M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FrontiersMind/Nandi-Mini-150M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FrontiersMind/Nandi-Mini-150M with Docker Model Runner:
docker model run hf.co/FrontiersMind/Nandi-Mini-150M
Update README.md
Browse files93 unmodified lines94959697989910010110210310410510610710810911011111211393 unmodified lines## Tokenization Fertility Score across Languages| Language | SmolLM3-3B | Qwen3-0.6B-Base | Sarvam-30B | Nandi-Mini-150M ||----------|------------|-----------------|------------|------------------|| English | 1.17 | 1.16 | 1.18 | 1.18 || Bengali | 8.66 | 7.51 | 1.46 | 1.44 || Gujarati | 10.47 | 9.37 | 1.70 | 1.53 || Hindi | 2.71 | 5.14 | 1.23 | 1.32 || Kannada | 16.43 | 12.96 | 2.08 | 1.90 || Malayalam| 17.77 | 14.56 | 2.81 | 2.05 || Marathi | 3.73 | 6.70 | 1.77 | 1.55 || Oriya | 19.07 | 15.75 | 1.77 | 2.68 || Punjabi | 9.23 | 8.66 | 1.42 | 1.42 || Tamil | 13.56 | 10.93 | 2.35 | 2.05 || Telugu | 15.40 | 13.38 | 2.09 | 1.77 || Assamese | 9.26 | 8.13 | 2.38 | 1.51 |## 🚀 Usage93 unmodified lines94959697989910010110210310410510610710810911011111211393 unmodified lines## Tokenization Fertility Score across Languages| Language | SmolLM3-3B | Qwen3-0.6B-Base | Sarvam-1 | Nandi-Mini-150M ||-----------|------------|-----------------|----------|------------------|| English | 1.17 | 1.16 | 1.32 | **1.18** || Bengali | 8.66 | 7.51 | 1.55 | **1.44** || Gujarati | 10.47 | 9.37 | 1.55 | **1.53** || Hindi | 2.71 | 5.14 | **1.25** | 1.32 || Kannada | 16.43 | 12.96 | 2.10 | **1.90** || Malayalam | 17.77 | 14.56 | 2.49 | **2.05** || Marathi | 3.73 | 6.70 | 1.55 | **1.55** || Oriya | 19.07 | 15.75 |**2.18** | 2.68 || Punjabi | 9.23 | 8.66 | 1.47 | **1.42** || Tamil | 13.56 | 10.93 | 2.06 | **2.05** || Telugu | 15.40 | 13.38 | 2.09 | **1.77** || Assamese | 9.26 | 8.13 | 4.31 | **1.51** |## 🚀 Usage
README.md+14-14