Instructions to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/SmolLM2-Rethink-360M-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prithivMLmods/SmolLM2-Rethink-360M-GGUF", dtype="auto") - llama-cpp-python
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="prithivMLmods/SmolLM2-Rethink-360M-GGUF", filename="SmolLM2-Rethink-360M.BF16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
Use Docker
docker model run hf.co/prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/SmolLM2-Rethink-360M-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": "prithivMLmods/SmolLM2-Rethink-360M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
- SGLang
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF 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 "prithivMLmods/SmolLM2-Rethink-360M-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SmolLM2-Rethink-360M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "prithivMLmods/SmolLM2-Rethink-360M-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/SmolLM2-Rethink-360M-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with Ollama:
ollama run hf.co/prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
- Unsloth Studio new
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/SmolLM2-Rethink-360M-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for prithivMLmods/SmolLM2-Rethink-360M-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for prithivMLmods/SmolLM2-Rethink-360M-GGUF to start chatting
- Docker Model Runner
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with Docker Model Runner:
docker model run hf.co/prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
- Lemonade
How to use prithivMLmods/SmolLM2-Rethink-360M-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull prithivMLmods/SmolLM2-Rethink-360M-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.SmolLM2-Rethink-360M-GGUF-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +13 -0
- SmolLM2-Rethink-360M.BF16.gguf +3 -0
- SmolLM2-Rethink-360M.F16.gguf +3 -0
- SmolLM2-Rethink-360M.F32.gguf +3 -0
- SmolLM2-Rethink-360M.Q2_K.gguf +3 -0
- SmolLM2-Rethink-360M.Q3_K_L.gguf +3 -0
- SmolLM2-Rethink-360M.Q3_K_M.gguf +3 -0
- SmolLM2-Rethink-360M.Q3_K_S.gguf +3 -0
- SmolLM2-Rethink-360M.Q4_K_M.gguf +3 -0
- SmolLM2-Rethink-360M.Q4_K_S.gguf +3 -0
- SmolLM2-Rethink-360M.Q5_K_M.gguf +3 -0
- SmolLM2-Rethink-360M.Q5_K_S.gguf +3 -0
- SmolLM2-Rethink-360M.Q6_K.gguf +3 -0
- SmolLM2-Rethink-360M.Q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,16 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
SmolLM2-Rethink-360M.BF16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
SmolLM2-Rethink-360M.F16.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
SmolLM2-Rethink-360M.F32.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
SmolLM2-Rethink-360M.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
SmolLM2-Rethink-360M.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
SmolLM2-Rethink-360M.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
SmolLM2-Rethink-360M.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
SmolLM2-Rethink-360M.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
SmolLM2-Rethink-360M.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
SmolLM2-Rethink-360M.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
SmolLM2-Rethink-360M.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
SmolLM2-Rethink-360M.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
SmolLM2-Rethink-360M.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
SmolLM2-Rethink-360M.BF16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fe3247a08155dda9826542d7eebec4999ddc5ee8576871759cf445e3880a0ae
|
| 3 |
+
size 725553440
|
SmolLM2-Rethink-360M.F16.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5dc70c795eeaccd0444086ca5a1d257acb250b1d9bea409dab996a45f95531de
|
| 3 |
+
size 725553440
|
SmolLM2-Rethink-360M.F32.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:668b64a6d54033cc514305bfddf9c129ffe49e289485e32b5af46bcbe1ef0d1d
|
| 3 |
+
size 1449070880
|
SmolLM2-Rethink-360M.Q2_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:71a43dae31d8d4aaa28439567f62a1e256fcfb013a84f03d632cb003def6c24d
|
| 3 |
+
size 218673440
|
SmolLM2-Rethink-360M.Q3_K_L.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0de9c29fc11b855b4c55e3f34f045a560df04a16b05af325cfde85f7f6408005
|
| 3 |
+
size 246321440
|
SmolLM2-Rethink-360M.Q3_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e7bccc60921c493c7ef596a047463e949d27c88445847b60336b2a4b3e1891df
|
| 3 |
+
size 234686240
|
SmolLM2-Rethink-360M.Q3_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9e733653c2df6966556a663093333b83d7e20bea59d9969a7f53844024bc8b3
|
| 3 |
+
size 218673440
|
SmolLM2-Rethink-360M.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0a73603bc39b3756fec8959446a6be20db5fdc86b9db25279eef7eb2b0e92ba2
|
| 3 |
+
size 270590240
|
SmolLM2-Rethink-360M.Q4_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86644dd96afa6361aae4a8d134495fb306252ae5832ef49b751329624f9e1b3e
|
| 3 |
+
size 259915040
|
SmolLM2-Rethink-360M.Q5_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a0388e5ede30e68f0601a763fa55e78a45d79193cb35171fb5898cdae3189e2a
|
| 3 |
+
size 289943840
|
SmolLM2-Rethink-360M.Q5_K_S.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b714acf0754f9a02fce2df317a195b31d8743bda10572358037d28bf126aa0e4
|
| 3 |
+
size 283185440
|
SmolLM2-Rethink-360M.Q6_K.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:582a839e1edffb8396980b1f6d2a55b16a6c2a7910f96a69fb0dd83f256ac113
|
| 3 |
+
size 367358240
|
SmolLM2-Rethink-360M.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:00fec9bb3ab3dcd254f0a127a6ee71e1733e9cdafad68d55a8a6fca74add6755
|
| 3 |
+
size 386404640
|