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:8080/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:8080/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:8080/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"
A preserved text-decoder GGUF quantization of GLM-4.6V-Flash, converted and quantized by Xylolabs with llama.cpp using the existing importance matrix. The vision encoder and projector are omitted; the evaluated path accepts text.
This export needs about 5.25 GB of device memory for its GGUF text-decoder weights alone, plus room for the KV cache and buffers.
Formats
The file contains 523 tensors from the 40 text-decoder layers, embedding and output head, plus the tokenizer and original chat template. It does not include image-encoder or projector weights.
| File | Download GB | Average bits/weight |
|---|---|---|
GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf |
5.262 | 4.470 |
Actual mixed tensor types: F32: 281, IQ4_NL: 40, IQ4_XS: 161, Q5_K: 40, Q6_K: 1. Average bits count every stored tensor, including embedding, output head, biases and float32 parameters.
The file preserves the existing importance-matrix result. Historical relative calibration filenames are metadata labels; no dataset is included. Original GGUF metadata includes the upstream image-text task tag; this derivative contains only the text-decoder weights. No new training, calibration or quantization was performed for publication.
Quickstart
With a llama.cpp build, download the file and run:
llama-cli -m GLM-4.6V-Flash-Text-IQ4_XS-imat.gguf -c 2048 -n 32 --temp 0 --jinja \
--chat-template-kwargs '{"enable_thinking":false}' \
--single-turn -p "Name the capital of France. Reply with only the city."
This command is checked with llama.cpp v0.9.0. The example limits context to 2,048 tokens; original context metadata is unchanged. KV and working buffers need additional memory.
Evaluation
The file passes the relative reference check with one counted lost answer and no broken answers. Stored
BF16 answers 26/33 plus 6/7; current Q4_K_M answers 27/33 plus 7/7; this IQ4 file answers 25/33 plus 7/7. The
counted loss is ko-fact-hangul. The strict zero-loss check fails; the relative gate permits one more counted
loss/broken answer than Q4_K_M, which has zero.
Mean KL against the original stored BF16 pass is 0.029230, compared with current Q4_K_M's 0.024092: 1.213ร, below the 1.5ร bar. Sixteen matched 1,024-token sequences cover 16,248 scored positions across English/Korean plain/chat groups. Every original sequence ID, prompt token sequence, stop ID and 33+7 generation budget matches. Current checks use context 8,192.
Counted losses exclude BF16 near ties (top-two gap below 1.0 at the first divergent token) and reasoning items recovered with thinking on. Broken answers count where BF16 is correct. No loss is pardoned for this file. Raw correctness remains separate from these exclusions.
The exact local CLI loads this file and completes one text query. These checks cover stored texts and short prompts; an integration needs its own task evaluation. Speed is not reported here.
License
MIT, as declared by the original GLM-4.6V-Flash card. Full
MIT terms are in LICENSE; NOTICE identifies the GLM Team / Z.ai origin and this conversion/quantization.
Provided as is, without warranty or upstream endorsement.
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}
}
- Downloads last month
- 225
4-bit
Model tree for Xylolabs/GLM-4.6V-Flash-Text-GGUF
Base model
zai-org/GLM-4.6V-Flash