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
- IQ4_XS/GLM-5-IQ4_XS-00001-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00002-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00003-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00004-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00005-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00006-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00007-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00008-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00009-of-00010.gguf +3 -0
- IQ4_XS/GLM-5-IQ4_XS-00010-of-00010.gguf +3 -0
.gitattributes
CHANGED
|
@@ -239,3 +239,13 @@ Q5_K_M/GLM-5-Q5_K_M-00009-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 239 |
Q5_K_M/GLM-5-Q5_K_M-00010-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 240 |
Q5_K_M/GLM-5-Q5_K_M-00011-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 241 |
Q5_K_M/GLM-5-Q5_K_M-00012-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
Q5_K_M/GLM-5-Q5_K_M-00010-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 240 |
Q5_K_M/GLM-5-Q5_K_M-00011-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 241 |
Q5_K_M/GLM-5-Q5_K_M-00012-of-00012.gguf filter=lfs diff=lfs merge=lfs -text
|
| 242 |
+
IQ4_XS/GLM-5-IQ4_XS-00001-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 243 |
+
IQ4_XS/GLM-5-IQ4_XS-00002-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 244 |
+
IQ4_XS/GLM-5-IQ4_XS-00003-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 245 |
+
IQ4_XS/GLM-5-IQ4_XS-00004-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 246 |
+
IQ4_XS/GLM-5-IQ4_XS-00005-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 247 |
+
IQ4_XS/GLM-5-IQ4_XS-00006-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 248 |
+
IQ4_XS/GLM-5-IQ4_XS-00007-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 249 |
+
IQ4_XS/GLM-5-IQ4_XS-00008-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 250 |
+
IQ4_XS/GLM-5-IQ4_XS-00009-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
| 251 |
+
IQ4_XS/GLM-5-IQ4_XS-00010-of-00010.gguf filter=lfs diff=lfs merge=lfs -text
|
IQ4_XS/GLM-5-IQ4_XS-00001-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:720d18171a10762ed924e69fc1f9fd83d057e31b9eebb9958a8421d97df168ad
|
| 3 |
+
size 9421568
|
IQ4_XS/GLM-5-IQ4_XS-00002-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:59b17c84dd790cba3165fb05f06e7ee7c3f535ef5fd5ff7e9d639fc99abbc681
|
| 3 |
+
size 49516082272
|
IQ4_XS/GLM-5-IQ4_XS-00003-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86ba545696b13f85d1ef2960c7560b0cfbb77aac910c76dcbd4d62cd249c2d9d
|
| 3 |
+
size 49155405184
|
IQ4_XS/GLM-5-IQ4_XS-00004-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b57b5a90430e695dd5b4d16ba3f913f8abff739b767dd72d2df8f922ae4ec6b5
|
| 3 |
+
size 49160050176
|
IQ4_XS/GLM-5-IQ4_XS-00005-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2b49e8dfde4ec4e409e2d7a35defea585edb7a6a333d70b1e42b7199eed718cf
|
| 3 |
+
size 49256388896
|
IQ4_XS/GLM-5-IQ4_XS-00006-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6dbbed0502f875837ab740a05cac908d9d1d2ba8949dd3253d786b6081493553
|
| 3 |
+
size 49155405184
|
IQ4_XS/GLM-5-IQ4_XS-00007-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0e1db1874ade7047a34140e5d63fcc0d68edb6f8ca881c9af2e78b828194ab6
|
| 3 |
+
size 49160050176
|
IQ4_XS/GLM-5-IQ4_XS-00008-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d849f9e952abe1ab26b178d2bdb51527c8c4ed91b03585b2bad80ff54f2ba47d
|
| 3 |
+
size 49256388896
|
IQ4_XS/GLM-5-IQ4_XS-00009-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:565c4a2cb7e7396d60ded230762625a31981c2b320bae6114f9aeb53cf012d10
|
| 3 |
+
size 49155405184
|
IQ4_XS/GLM-5-IQ4_XS-00010-of-00010.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5deb0ee932318275f0fec074093552431dd6fd6e6f34e6f49bc3e9a99c58aa4
|
| 3 |
+
size 9070984736
|