Instructions to use unsloth/GLM-5.3-Flash-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.3-Flash-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.3-Flash-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5.3-Flash-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.3-Flash-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: llama cli -hf unsloth/GLM-5.3-Flash-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.3-Flash-GGUF:UD-Q4_K_XL # Run inference directly in the terminal: ./build/bin/llama cli -hf unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
Use Docker
docker model run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
- Llama new
- LM Studio
- Jan
- vLLM
How to use unsloth/GLM-5.3-Flash-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.3-Flash-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.3-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
- Ollama
How to use unsloth/GLM-5.3-Flash-GGUF with Ollama:
ollama run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
- Unsloth Desktop
- Pi
How to use unsloth/GLM-5.3-Flash-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.3-Flash-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.3-Flash-GGUF:UD-Q4_K_XL" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use unsloth/GLM-5.3-Flash-GGUF with Docker Model Runner:
docker model run hf.co/unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
- Lemonade
How to use unsloth/GLM-5.3-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull unsloth/GLM-5.3-Flash-GGUF:UD-Q4_K_XL
Run and chat with the model
lemonade run user.GLM-5.3-Flash-GGUF-UD-Q4_K_XL
List all available models
lemonade list
- Hermes Agent
How to use unsloth/GLM-5.3-Flash-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.3-Flash-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.3-Flash-GGUF:UD-Q4_K_XL
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use unsloth/GLM-5.3-Flash-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.3-Flash-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.3-Flash-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"
Folks with smaller VRAM but enough RAM - Token per second almost doubled for Q3 (unsloth)
https://github.com/nizoai/NTransformer
Try this. The test was done on RTX pro 5000 blackwell + 190 GB ram with Ryzen 9000
Have similar hardware. Would appreciate full command-line invocation you used.
Have similar hardware. Would appreciate full command-line invocation you used.
Sure β heads-up first: GLM-5.3-Flash isn't in upstream llama.cpp yet (see PR #27917), so a plain clone won't load the model. My patch is against that glm5next work (base d0132a680 + the GLM commits), not master. Easiest path:
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
gh pr checkout 27917
git apply /path/to/NTransformer/expert-cache.patch # expect small conflicts if the PR moved since I cut it
cmake -B build -DGGML_CUDA=ON && cmake --build build --target llama-server -j
Model: Unsloth GLM-5.3-Flash-UD-Q3_K_XL (4 shards). Put it on NVMe β --no-mmap reads all ~158 GB into RAM at load.
GGML_CUDA_EXPERT_CACHE=29 ./build/bin/llama-server
-m /path/to/GLM-5.3-Flash-UD-Q3_K_XL-00001-of-00004.gguf
-ot 'ffn_(gate|up|down)_exps.weight=CUDA_ExpertCache'
--no-mmap -fit off --no-warmup
-ngl 99 -c 4096 --threads 16
--cache-type-k q8_0 --cache-type-v q8_0
--ubatch-size 8 --host 127.0.0.1 --port 8092 --jinja
Only the env var and the -ot line are cache-specific (keep the single quotes β the parens are a regex). Re-ran this today: 27.6 and 27.3 tok/s decode on two 300-token completions, ctx 4096, greedy, from the server's timings field.
Things that bit me:
- --ubatch-size 8 and --no-warmup are mandatory in v1: the cache only hooks the decode kernel, anything bigger per matmul crashes. Also why prefill is ~9 tok/s β decode is where the win is.
- 29% is the ceiling for Q3 on 48 GB; 30% fails cleanly at load. Start at 15% (~22 tok/s) and walk up. Q2_K_XL reaches 35% (33.6 tok/s).
- ~130 GB host RSS per server. One at a time; let free -g recover before relaunching.
Curious what your DDR5 config does to the 14.3 tok/s CPU baseline β that's what the speedup is measured against.
