Instructions to use unsloth/GLM-5-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/GLM-5-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/GLM-5-GGUF")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("unsloth/GLM-5-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use unsloth/GLM-5-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-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5-GGUF:UD-Q4_K_XL
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf unsloth/GLM-5-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5-GGUF:UD-Q4_K_XL
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 unsloth/GLM-5-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/GLM-5-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/GLM-5-GGUF:UD-Q4_K_XL
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/GLM-5-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-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-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/GLM-5-GGUF:UD-Q4_K_XL
- SGLang
How to use unsloth/GLM-5-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 "unsloth/GLM-5-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": "unsloth/GLM-5-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 "unsloth/GLM-5-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": "unsloth/GLM-5-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use unsloth/GLM-5-GGUF with Ollama:
ollama run hf.co/unsloth/GLM-5-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Pi
How to use unsloth/GLM-5-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-GGUF:UD-Q4_K_XL
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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "unsloth/GLM-5-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/GLM-5-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/GLM-5-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/GLM-5-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/GLM-5-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.GLM-5-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Hermes Agent
How to use unsloth/GLM-5-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-GGUF:UD-Q4_K_XL
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:9931/v1 hermes config set model.default unsloth/GLM-5-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/GLM-5-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-GGUF:UD-Q4_K_XL
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:9931/v1 \ --custom-model-id "unsloth/GLM-5-GGUF:UD-Q4_K_XL" \ --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"
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00001-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00002-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00003-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00004-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00005-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00006-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00007-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00008-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00009-of-00010.gguf +3 -0
- UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00010-of-00010.gguf +3 -0
.gitattributes
CHANGED
|
@@ -155,3 +155,13 @@ UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00005-of-00008.gguf filter=lfs diff=lfs merge=lfs -t
|
|
| 155 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00006-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
| 156 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00007-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
| 157 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00008-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00006-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
| 156 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00007-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
| 157 |
UD-Q3_K_XL/GLM-5-UD-Q3_K_XL-00008-of-00008.gguf filter=lfs diff=lfs merge=lfs -text
|
| 158 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00001-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 159 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00002-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 160 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00003-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 161 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00004-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 162 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00005-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 163 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00006-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 164 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00007-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 165 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00008-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 166 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00009-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 167 |
+
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00010-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00001-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c0f8a9e1c10983b7c59563a53bda13b23032ce1991c7b7bfeb6c15bef484f9f
|
| 3 |
+
size 9421568
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00002-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d7e6d64c924a49fe69988e7667c0219ffd67324ce16117ef886ffbeaa883a8d
|
| 3 |
+
size 49561415456
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00003-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5fc08dd1024778b718638e1c65e66cfd3c031af3c4229d6eaf6a4d753479468f
|
| 3 |
+
size 48765432928
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00004-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ff1110be522b763815e5b3fbdb9a08342da94014f7aaeb8c681dd68c3f67eb74
|
| 3 |
+
size 48652783776
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00005-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8c10a9363f6fddb91087a7146b7acc7a8248c3587b71d762b21614edd49ff26e
|
| 3 |
+
size 48753710048
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00006-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c356446f417d56abfa4494b4d4779dafec71ceb97349e2752458dca884ef46b7
|
| 3 |
+
size 48351081568
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00007-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d93e2a4953681b52323748cffb38f49c583fdfbabd76798c197d1663e992915e
|
| 3 |
+
size 48321269920
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00008-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c80d12189a7e776a745e69309f05c74bd31c50ab05913c449799b9c8a995685
|
| 3 |
+
size 48399389664
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00009-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:55fde725b1fed0cc151e72b203a1bbbd0d7cae1b1d95a9b17941f92a21379e9a
|
| 3 |
+
size 48427365472
|
UD-Q4_K_XL/GLM-5-UD-Q4_K_XL-00010-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2e1f0840092667cde46b4f633d0aa821ff9c6388e546f0936f089b7c13fe446
|
| 3 |
+
size 41462930368
|