Instructions to use FrontiersMind/Nandi-Mini-600M-Early-Checkpoint with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FrontiersMind/Nandi-Mini-600M-Early-Checkpoint with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FrontiersMind/Nandi-Mini-600M-Early-Checkpoint", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("FrontiersMind/Nandi-Mini-600M-Early-Checkpoint", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FrontiersMind/Nandi-Mini-600M-Early-Checkpoint with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FrontiersMind/Nandi-Mini-600M-Early-Checkpoint" # 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-600M-Early-Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/FrontiersMind/Nandi-Mini-600M-Early-Checkpoint
- SGLang
How to use FrontiersMind/Nandi-Mini-600M-Early-Checkpoint 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-600M-Early-Checkpoint" \ --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-600M-Early-Checkpoint", "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-600M-Early-Checkpoint" \ --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-600M-Early-Checkpoint", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use FrontiersMind/Nandi-Mini-600M-Early-Checkpoint with Docker Model Runner:
docker model run hf.co/FrontiersMind/Nandi-Mini-600M-Early-Checkpoint
Commit History
-
Update README.md
Verified signatured37afed
-
Update README.md
Verified signature2a0a82f -
Update README.md
Verified signaturedbdbf22
-
Update README.md
Verified signaturefcad53f -
Update README.md
Verified signature08631f8 -
Update README.md
Verified signature232ef3f -
Update tokenization_nandi.py
Verified signatureb118bcb -
Update tokenization_nandi.py
Verified signature5a65c7c -
Update tokenization_nandi.py
Verified signature0b75c6b
-
Update README.md
Verified signature9a029fc -
Update README.md
Verified signatureb6aee65 -
Update README.md
Verified signaturecff872c -
Update README.md
Verified signature8554c29 -
Update configuration_nandi.py
Verified signature29e0f98 -
Update README.md
Verified signaturee8e8af0 -
Update README.md
Verified signaturece078cb -
Update README.md
Verified signature3d205d0 -
Update README.md
Verified signature445e998 -
Update README.md
Verified signature4866958 -
Update README.md
Verified signatureb316a18 -
Update README.md
Verified signaturef89364c -
Update README.md
Verified signature1ae17a8 -
Update README.md
Verified signaturea522301 -
Update README.md
Verified signatureede3ae3 -
Update README.md
Verified signature0f6bcc6 -
Delete convert_smoltron_to_hf.py
Verified signature336d207 -
Upload shared_kv_cache_comparison_improved.png
Verified signature94289e0 -
Update README.md
Verified signature777b4bf -
Update README.md
Verified signature3920cee -
Update README.md
Verified signature22a013d -
Update README.md
Verified signature918168d -
Update config.json
Verified signature880e01b -
Upload 8 files
Verified signature5333170
-
updated Readme.md
Verified signatureac5d535 -
initial commit
Verified signature0e55d2a