Text Generation
Transformers
Safetensors
English
lfm
prism
gspo
hybrid-architecture
tool-use
Thinking
Instructions to use Ex0bit/lfm-Nanotron with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ex0bit/lfm-Nanotron with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ex0bit/lfm-Nanotron")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ex0bit/lfm-Nanotron", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Ex0bit/lfm-Nanotron with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ex0bit/lfm-Nanotron" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ex0bit/lfm-Nanotron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ex0bit/lfm-Nanotron
- SGLang
How to use Ex0bit/lfm-Nanotron 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 "Ex0bit/lfm-Nanotron" \ --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": "Ex0bit/lfm-Nanotron", "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 "Ex0bit/lfm-Nanotron" \ --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": "Ex0bit/lfm-Nanotron", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Ex0bit/lfm-Nanotron with Docker Model Runner:
docker model run hf.co/Ex0bit/lfm-Nanotron
Commit History
-
Delete W8A16-AutoRound/quantization_config.json
Verified signature60faaf3 -
Delete .gitattributes
Verified signaturee4ec41a -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-W8A16_Q8_0.gguf
Verified signature8f33df6 -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-W4A16_Q4_K_M.gguf
Verified signature9f0d6a1 -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-W2A16_Q2_K_S.gguf
Verified signatureb8a2ddc
-
Update README.md
Verified signaturec106a5a -
Update README.md
Verified signatureebc8a36
-
Update README.md
Verified signature4ec829a -
Upload W8A16-AutoRound/chat_template.jinja with huggingface_hub
Verified signaturefd34a0c -
Upload W4A16-AutoRound/chat_template.jinja with huggingface_hub
Verified signature45a9813 -
Upload W2A16-AutoRound/chat_template.jinja with huggingface_hub
Verified signature46360f9 -
Upload GGUF/lfm-Nanotron-prism-sft-gspo-W8A16_Q8_0.gguf with huggingface_hub
Verified signature9a356c7 -
Upload GGUF/lfm-Nanotron-prism-sft-gspo-W4A16_Q4_K_M.gguf with huggingface_hub
Verified signature628fef5 -
Upload GGUF/lfm-Nanotron-prism-sft-gspo-W2A16_Q2_K_S.gguf with huggingface_hub
Verified signaturea89785a -
Delete GGUF/lfm2-nanotron-prism-f16.gguf with huggingface_hub
Verified signature53c12d4 -
Delete GGUF/lfm2-nanotron-prism-Q8_0.gguf with huggingface_hub
Verified signaturefdc597f -
Delete GGUF/lfm2-nanotron-prism-Q4_K_M.gguf with huggingface_hub
Verified signature39d28b9 -
Delete GGUF/lfm2-nanotron-prism-Q2_K.gguf with huggingface_hub
Verified signature6e1a6a0 -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-bf16.gguf with huggingface_hub
Verified signaturec72d7b9 -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-Q4_K_M.gguf with huggingface_hub
Verified signature6ae6f2f -
Delete GGUF/lfm-Nanotron-prism-sft-gspo-Q2_K.gguf with huggingface_hub
Verified signaturee7e5a35 -
Delete GGUF/lfm-Nanotron-W8A16_Q8_0.gguf with huggingface_hub
Verified signaturece2151e -
Delete GGUF/lfm-Nanotron-W4A16_Q4_K_M.gguf with huggingface_hub
Verified signature7665c95 -
Delete GGUF/lfm-Nanotron-W2A16_Q2_K_S.gguf with huggingface_hub
Verified signature42516ca -
Upload GGUF/lfm-Nanotron-W8A16_Q8_0.gguf with huggingface_hub
Verified signature044ab98 -
Upload GGUF/lfm-Nanotron-W4A16_Q4_K_M.gguf with huggingface_hub
Verified signature841933d -
Upload GGUF/lfm-Nanotron-W2A16_Q2_K_S.gguf with huggingface_hub
Verified signature61b4445 -
Update README.md
Verified signature6125341 -
Update README.md
Verified signature3d50a4e -
Update README.md
Verified signature5c2dc16 -
Update README.md
Verified signaturedfd8dfc -
Create README.md
Verified signature4498f5c -
Delete .gitattributes
Verified signature6662674 -
Upload GGUF/lfm2-nanotron-prism-Q4_K_M.gguf with huggingface_hub
Verified signature87b8bb4 -
Upload GGUF/lfm2-nanotron-prism-Q2_K.gguf with huggingface_hub
Verified signatureef8d1e8 -
Upload GGUF/lfm2-nanotron-prism-Q8_0.gguf with huggingface_hub
Verified signature223933f -
Upload GGUF/lfm2-nanotron-prism-f16.gguf with huggingface_hub
Verified signature7f82113
-
Delete README.md
Verified signature4260bdb -
Delete config.json
Verified signature3cdb911 -
Delete generation_config.json
Verified signature127f928 -
Delete special_tokens_map.json
Verified signature63d41b2 -
Delete tokenizer.json
Verified signature0d14359 -
Delete tokenizer_config.json
Verified signatureb439532 -
Add W8A16 AutoRound: generation_config.json
Verified signaturee971871 -
Add W8A16 AutoRound: special_tokens_map.json
Verified signature1f09f97 -
Add W8A16 AutoRound: tokenizer_config.json
Verified signaturedf48c97 -
Add W8A16 AutoRound: tokenizer.json
Verified signature68b1c28 -
Add W8A16 AutoRound: quantization_config.json
Verified signature4203405 -
Add W8A16 AutoRound: config.json
Verified signaturedc9570f -
Add W8A16 AutoRound: model.safetensors
Verified signaturec694ad1