Instructions to use Andreevai/SmolLM2-360M-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Andreevai/SmolLM2-360M-Instruct-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Andreevai/SmolLM2-360M-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Andreevai/SmolLM2-360M-Instruct-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Andreevai/SmolLM2-360M-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
- Ollama
How to use Andreevai/SmolLM2-360M-Instruct-GGUF with Ollama:
ollama run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Andreevai/SmolLM2-360M-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
- Lemonade
How to use Andreevai/SmolLM2-360M-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Andreevai/SmolLM2-360M-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SmolLM2-360M-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Andreevai/SmolLM2-360M-Instruct-GGUF
This repository contains official GGUF quantizations of HuggingFaceTB/SmolLM2-360M-Instruct, converted using llama.cpp.
SmolLM2 is a family of compact language models developed by Hugging Face, specifically designed for ultra-fast local inference on edge devices, mobile phones, Raspberry Pi, and local developer workstations.
Available Files
| Filename | Quant Method | File Size | Description |
|---|---|---|---|
SmolLM2-360M-Instruct-Q4_K_M.gguf |
Q4_K_M | 258 MB | Balanced 4-bit quant, recommended for ultra-low memory / edge devices |
SmolLM2-360M-Instruct-Q5_K_M.gguf |
Q5_K_M | 276 MB | Higher precision 5-bit quant with minimal perplexity degradation |
SmolLM2-360M-Instruct-Q8_0.gguf |
Q8_0 | 368 MB | Near lossless 8-bit precision, fast CPU inference |
Quick Start with Ollama
Run directly with Ollama using the Hugging Face direct link:
# Run Q4_K_M
ollama run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:SmolLM2-360M-Instruct-Q4_K_M.gguf
# Run Q8_0
ollama run hf.co/Andreevai/SmolLM2-360M-Instruct-GGUF:SmolLM2-360M-Instruct-Q8_0.gguf
Or create a custom Modelfile:
FROM ./SmolLM2-360M-Instruct-Q4_K_M.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
PARAMETER stop "<|im_end|>"
PARAMETER stop "<|endoftext|>"
ollama create smollm2-360m -f Modelfile
ollama run smollm2-360m
Quick Start with llama.cpp
llama-cli -m SmolLM2-360M-Instruct-Q4_K_M.gguf -p "<|im_start|>user\nWrite a quick python script to ping an API.<|im_end|>\n<|im_start|>assistant\n" -n 256
Prompt Template
SmolLM2 uses ChatML:
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Hello!<|im_end|>
<|im_start|>assistant
- Downloads last month
- 80
4-bit
5-bit
8-bit
Model tree for Andreevai/SmolLM2-360M-Instruct-GGUF
Base model
HuggingFaceTB/SmolLM2-360M