Instructions to use Xylolabs/GLM-4.6V-Flash-Text-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 Xylolabs/GLM-4.6V-Flash-Text-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 Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS # Run inference directly in the terminal: llama cli -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
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 Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS # Run inference directly in the terminal: ./build/bin/llama cli -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
Use Docker
docker model run hf.co/Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
- Llama new
- LM Studio
- Jan
- vLLM
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Xylolabs/GLM-4.6V-Flash-Text-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": "Xylolabs/GLM-4.6V-Flash-Text-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
- Ollama
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with Ollama:
ollama run hf.co/Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
- Unsloth Desktop
- Pi
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
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": "Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with Docker Model Runner:
docker model run hf.co/Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
- Lemonade
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
Run and chat with the model
lemonade run user.GLM-4.6V-Flash-Text-GGUF-IQ4_XS
List all available models
lemonade list
- Hermes Agent
How to use Xylolabs/GLM-4.6V-Flash-Text-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 Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
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 Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/GLM-4.6V-Flash-Text-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS
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 "Xylolabs/GLM-4.6V-Flash-Text-GGUF:IQ4_XS" \ --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"
This llama.cpp GGUF file contains the text model from zai-org/GLM-4.6V-Flash for text-only generation.
Files
| File | Size |
|---|---|
| GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf | 5.262 GB |
How to run
Checked with the llama.cpp build linked above.
llama-cli -m GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf --jinja
Accuracy
Against BF16.
| Quant | Size | WikiText-2 KL | top-1 | Held-out KL | top-1 |
|---|---|---|---|---|---|
| Unsloth Q8_0 | 10.000 GB | 0.000656 | 98.676% | 0.002286 | 98.402% |
| llama.cpp Q8_0 | 10.000 GB | 0.000656 | 98.676% | 0.002286 | 98.402% |
| Unsloth UD-Q6_K_XL | 8.886 GB | 0.001228 | 98.368% | 0.003733 | 97.833% |
| Unsloth Q6_K | 8.267 GB | 0.001939 | 97.652% | 0.009151 | 97.069% |
| llama.cpp Q6_K | 8.267 GB | 0.002146 | 97.485% | 0.005223 | 97.235% |
| Unsloth Q5_K_M | 7.051 GB | 0.005044 | 96.368% | 0.026171 | 95.137% |
| llama.cpp Q5_K_M | 7.051 GB | 0.006657 | 95.975% | 0.020100 | 94.873% |
| Unsloth UD-Q5_K_XL | 7.006 GB | 0.006034 | 96.319% | 0.024879 | 94.922% |
| Unsloth UD-Q4_K_XL | 6.187 GB | 0.014338 | 94.529% | 0.038341 | 93.265% |
| Unsloth Q4_K_M | 6.167 GB | 0.015350 | 94.279% | 0.041618 | 92.873% |
| llama.cpp Q4_K_M | 6.167 GB | 0.020170 | 93.436% | 0.034994 | 92.618% |
| Unsloth IQ4_XS | 5.282 GB | 0.023587 | 93.039% | 0.058819 | 91.392% |
| IQ4_XS-imat | 5.262 GB | 0.023699 | 92.951% | 0.072904 | 90.843% |
| Unsloth UD-Q3_K_XL | 5.140 GB | 0.046156 | 90.225% | 0.101096 | 88.794% |
| Unsloth Q3_K_M | 4.975 GB | 0.053432 | 89.324% | 0.089136 | 87.725% |
| llama.cpp Q3_K_M | 4.975 GB | 0.067915 | 87.770% | 0.101250 | 86.461% |
| Unsloth UD-IQ3_XXS | 4.235 GB | 0.094896 | 85.613% | 0.146214 | 83.706% |
| Unsloth UD-Q2_K_XL | 4.211 GB | 0.151769 | 82.544% | 0.209450 | 81.137% |
| Unsloth Q2_K | 4.006 GB | 0.178891 | 80.941% | 0.256926 | 78.069% |
Which file for your hardware
| Hardware | Memory | File | Context |
|---|---|---|---|
| RTX 4090 / RTX 3090 | 24 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| RTX 5090 | 32 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| RTX 6000 Ada, or 2 x 24 GB | 48 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| One H100 | 80 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| RTX PRO 6000 Blackwell (GDDR7) | 96 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| DGX Spark | 128 GB unified | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| Mac Studio M5 Max | 128 GB unified | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| One H200 (HBM3e) | 141 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| One B200 | 192 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| Mac Studio M5 Ultra | 256 GB unified | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| Mac Studio M5 Ultra | 512 GB unified | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
| One B300 (HBM3e) | 288 GB | GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf (5.3 GB) |
128K |
License and notices
MIT License, copied in LICENSE. We converted the weights to GGUF and quantized them.
Citation
The original model card recommends the GLM-V family paper:
@misc{glm_v_2025,
title={GLM-4.5V and GLM-4.1V-Thinking: Towards Versatile Multimodal Reasoning with Scalable Reinforcement Learning},
author={V Team and others},
year={2025},
eprint={2507.01006},
archivePrefix={arXiv},
url={https://arxiv.org/abs/2507.01006}
}
Updates
- 2026-11-22: Added a hardware recommendation table.
- 2026-11-22: Accuracy table and charts replaced.
- 2026-11-15: First release of
GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf.
- Downloads last month
- 1,335
4-bit
Model tree for Xylolabs/GLM-4.6V-Flash-Text-GGUF
Base model
zai-org/GLM-4.6V-Flash