Instructions to use unsloth/GLM-5.2-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 unsloth/GLM-5.2-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 unsloth/GLM-5.2-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5.2-GGUF:UD-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 unsloth/GLM-5.2-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf unsloth/GLM-5.2-GGUF:UD-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 unsloth/GLM-5.2-GGUF:UD-Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Use Docker
docker model run hf.co/unsloth/GLM-5.2-GGUF:UD-Q4_K_M
- LM Studio
- Jan
- vLLM
How to use unsloth/GLM-5.2-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/GLM-5.2-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": "unsloth/GLM-5.2-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/GLM-5.2-GGUF:UD-Q4_K_M
- Ollama
How to use unsloth/GLM-5.2-GGUF with Ollama:
ollama run hf.co/unsloth/GLM-5.2-GGUF:UD-Q4_K_M
- Unsloth Studio
How to use unsloth/GLM-5.2-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 unsloth/GLM-5.2-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 unsloth/GLM-5.2-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/GLM-5.2-GGUF to start chatting
- Pi
How to use unsloth/GLM-5.2-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/GLM-5.2-GGUF:UD-Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/GLM-5.2-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/GLM-5.2-GGUF:UD-Q4_K_M
- Lemonade
How to use unsloth/GLM-5.2-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Run and chat with the model
lemonade run user.GLM-5.2-GGUF-UD-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use unsloth/GLM-5.2-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/GLM-5.2-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf unsloth/GLM-5.2-GGUF:UD-Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "unsloth/GLM-5.2-GGUF:UD-Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add files using upload-large-folder tool
Browse files- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00001-of-00006.gguf +3 -0
- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00002-of-00006.gguf +3 -0
- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00003-of-00006.gguf +3 -0
- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00004-of-00006.gguf +3 -0
- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00005-of-00006.gguf +3 -0
- UD-IQ1_M/GLM-5.2-UD-IQ1_M-00006-of-00006.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00001-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00002-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00003-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00004-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00005-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00006-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00007-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00008-of-00009.gguf +3 -0
- UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00009-of-00009.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00001-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00002-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00003-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00004-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00005-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00006-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00007-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00008-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00009-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00010-of-00011.gguf +3 -0
- UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00011-of-00011.gguf +3 -0
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00001-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e16a262199ae650398bd154d7dc108a7bd03da07bfafc51dc410dc0b68d9a258
|
| 3 |
+
size 9423744
|
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00002-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eeefb5c6abc9ade697b2542506c0d31bc358824aacd6c05e5bcbeb4a97976a3a
|
| 3 |
+
size 49257241920
|
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00003-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:340b461ba6eb07c1ce83e9e39bc67f826dbd70c6d419206043f2549c0063aff5
|
| 3 |
+
size 48943068032
|
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00004-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bace0a24bd9531250e25ac1ad75f7b4edb3c3495f110bf2c7f31fe39eaf1f83c
|
| 3 |
+
size 48891518400
|
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00005-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2efd0f613e94ea0a019ba847da5cc7f0d0b87f78a2a503c1a71766fcfb445451
|
| 3 |
+
size 49934857248
|
UD-IQ1_M/GLM-5.2-UD-IQ1_M-00006-of-00006.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fdd4e74dfa3aea46cad3af2bd2b3deb53dc577a1aaee8df855d9e4307e8ebca3
|
| 3 |
+
size 31456857280
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00001-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3d949f4dd553f0c3df4e0f4c7e159d026543e003917fe2bbcb1fac7cd193ab7
|
| 3 |
+
size 9423744
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00002-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26ba75cb250d6204312ba875986d4006ea8b295043de128c632f98a6029188a8
|
| 3 |
+
size 48804973120
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00003-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46347dde31750f00588b1f3d5da380dc989939e57cdc0fb72e6ec2d3c44486a0
|
| 3 |
+
size 48508432544
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00004-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ffcbe5b44fd3aa6ba15681cef63111589d0e91efc06c8f2499d5da87e0b043cb
|
| 3 |
+
size 48508432544
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00005-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2829ffd920bd4ca7b6e3106a55d2d1ac38075514151558f5b10145be12a2fae
|
| 3 |
+
size 48508432544
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00006-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5659c3d8cfc815f38fa6b730f48a472179e97d647cc93604c20d1c84c9ce788e
|
| 3 |
+
size 48508432544
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00007-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:717a342c5ca5a6e22dfb3f5be51e5cca1ddda370fdc850dea5a036c03cec9a80
|
| 3 |
+
size 48508432544
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00008-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2447fd18b43149eb0ea273dfcc25319397b8365f8742682f821c6fc885a0ff8
|
| 3 |
+
size 48717290336
|
UD-Q3_K_XL/GLM-5.2-UD-Q3_K_XL-00009-of-00009.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:40f5872a12eb0619045de8b6e99dab8ccaf486636448fbe5daf9b43d29d531b7
|
| 3 |
+
size 2892122176
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00001-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3256ac8c290273f0965ff39e93a8bcd07dc99bcd23e923bd4b7306ef39061038
|
| 3 |
+
size 9423744
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00002-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaedfb89d314d6967a80005b93a9c460a494babc6c3e4f0138e21891e21572e1
|
| 3 |
+
size 49433942336
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00003-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a2b45b63075b2e1bc8a73c9ce531ccea54c03001286a80f77454871aa93fdca8
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00004-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5404d8d17b63e127aa34c1f98cef64d3722050d8ef1a0792dba816477f4c606
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00005-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ab79e1947115be35da815c1be2812a1451d3ec11f9f5d60dd3ba152e1ed5be2
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00006-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43a2631ee392492f8857bae6c88660e0f1cac0fd6bc40d832538ac5421b3167b
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00007-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1efd96717a956a160a1717999c7dedbe601b5787ea6220d8185d232e95eff893
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00008-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3460334e8148d12402c8f5adf684b132918504bbea4d3aecd74801121e8c8a99
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00009-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f6be8ce1c9dcb973ede026b7341657f8add8617f386f77cc165ff697cf9620d
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00010-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6a26bf391e6f1de947e63016d11ada565f7476a06cb90b444f6db334baa949f9
|
| 3 |
+
size 48566415136
|
UD-Q4_K_XL/GLM-5.2-UD-Q4_K_XL-00011-of-00011.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27032b927daa606872d887c56631c5278a788b39d219784b262e1df3d4cb851e
|
| 3 |
+
size 29314424736
|