Instructions to use steampunque/GLM-4.6V-Flash-MP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="steampunque/GLM-4.6V-Flash-MP-GGUF", filename="GLM-4.6V-Flash.Q4_P_H.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF # Run inference directly in the terminal: llama-cli -hf steampunque/GLM-4.6V-Flash-MP-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF # Run inference directly in the terminal: llama-cli -hf steampunque/GLM-4.6V-Flash-MP-GGUF
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF # Run inference directly in the terminal: ./llama-cli -hf steampunque/GLM-4.6V-Flash-MP-GGUF
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf steampunque/GLM-4.6V-Flash-MP-GGUF
Use Docker
docker model run hf.co/steampunque/GLM-4.6V-Flash-MP-GGUF
- LM Studio
- Jan
- Ollama
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Ollama:
ollama run hf.co/steampunque/GLM-4.6V-Flash-MP-GGUF
- Unsloth Studio new
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for steampunque/GLM-4.6V-Flash-MP-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for steampunque/GLM-4.6V-Flash-MP-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for steampunque/GLM-4.6V-Flash-MP-GGUF to start chatting
- Pi new
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "steampunque/GLM-4.6V-Flash-MP-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf steampunque/GLM-4.6V-Flash-MP-GGUF
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 steampunque/GLM-4.6V-Flash-MP-GGUF
Run Hermes
hermes
- Docker Model Runner
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Docker Model Runner:
docker model run hf.co/steampunque/GLM-4.6V-Flash-MP-GGUF
- Lemonade
How to use steampunque/GLM-4.6V-Flash-MP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull steampunque/GLM-4.6V-Flash-MP-GGUF
Run and chat with the model
lemonade run user.GLM-4.6V-Flash-MP-GGUF-{{QUANT_TAG}}List all available models
lemonade list
Mixed Precision GGUF layer quantization of GLM-4.6V-Flash by zai-org
Original model: https://huggingface.co/zai-org/GLM-4.6V-Flash
The hybrid quant employs different quantization levels on a per layer basis to enable both high performance and small file size at the same time. This quant is sized at ~IQ4_XS bpw. The quants employed are all K to avoid slow CPU or older GPU processing of IQ quants. For this file the Q4_P_H layer quants are as follows:
Q4_K_L : Q4_K_M + attn_o = q6_k
Q5_K_L : attn_v = q8_0 attn_o = q6_k ffn_d = q6_k
Q6_K_S : Q6_K
LAYER_TYPES='[
[0 ,"Q4_K_M"], [1 ,"Q4_K_S"], [2 ,"Q3_K_L"], [3 ,"Q3_K_M"], [4 ,"Q4_K_L"], [5 ,"Q3_K_M"], [6 ,"Q3_K_L"], [7 ,"Q3_K_M"],
[8 ,"Q3_K_L"], [9 ,"Q3_K_L"], [10,"Q3_K_L"], [11,"Q3_K_L"], [12,"Q3_K_L"], [13,"Q3_K_L"], [14,"Q3_K_L"], [15,"Q3_K_L"],
[16,"Q4_K_S"], [17,"Q3_K_L"], [18,"Q4_K_S"], [19,"Q3_K_L"], [20,"Q4_K_S"], [21,"Q3_K_L"], [22,"Q4_K_S"], [23,"Q3_K_L"],
[24,"Q4_K_S"], [25,"Q4_K_S"], [26,"Q4_K_S"], [27,"Q4_K_S"], [28,"Q4_K_M"], [29,"Q4_K_S"], [30,"Q4_K_M"], [31,"Q4_K_S"],
[32,"Q4_K_M"], [33,"Q4_K_L"], [34,"Q4_K_M"], [35,"Q4_K_L"], [36,"Q5_K_S"], [37,"Q5_K_M"], [38,"Q5_K_L"], [39,"Q6_K_S"]
]'
FLAGS="--token-embedding-type Q4_K --output-tensor-type Q6_K --layer-types-high --tensor-pad [[13696,13824],[27392,27648,2]] --override-kv glm4.feed_forward_length=int:13824"
Model FFN length is padded from 13696 to 13824 to allow use of K quants in the layers instead of fallback legacy quants.
Comparison:
| Quant | size | PPL | Comment |
|---|---|---|---|
| IQ4_XS | 5.3e9 | 11.8 | - |
| Q4_P_H | 5.6e9 | 11.8 | Hybrid quant with Q4_K embedding Q6_K output |
The quant was sized to be able to run on 8G VRAM GPUs along with the mmproj and then evaluated for acceptable reasoning performance across a curated set of test prompts.
Usage:
This is a RL trained (thinking) vision model. The layer quants for this model were evaluated on a set of test/eval prompts using greedy sampling. The model appears to be very robust against infinite generations on the eval prompts with greedy sampling, always converging to an answer. Image mode was tested on a small set of images and found to be both functional and accurate.
This model will respond in Chinese with no system prompt. For english responses, the following system prompt can be used:
SYSTEM="language = english"
In tests this system prompt will cause the model to both reason and respond in english.
The model can be speculated with Qwen3 0.6B. Approx performance using a downstream speculator with llama.cpp on one 4070 (12G VRAM) GPU with fixed spec block length ND:
| ND | QKV | NKV | gen tps | Comment |
|---|---|---|---|---|
| 3 | F16 | 33k | 76 | llama.cpp b7845 |
| 0 | F16 | 128k | 67 | "" |
| 3 | Q8_0 | 38k | 81 | "" |
| 0 | Q8_0 | 128k | 68 | "" |
Speculation is of marginal benefit due to the difficulty of speculating RL models which generate reflections at unpredictable times.
Benchmarks:
Vision benchmarks for the model are given here: https://huggingface.co/spaces/steampunque/benchlm
Download the file from below:
| Link | Type | Size/e9 B | Notes |
|---|---|---|---|
| GLM-4.6V-Flash.Q4_P_H.gguf | Q4_P_H | 5.6e9 B | ~0.3B bigger than IQ4_XS |
| GLM-4.6V-Flash.mmproj.gguf | F16 | 1.8e9 B | multimedia projector |
A discussion thread about the hybrid layer quant approach can be found here on the llama.cpp git repository:
- Downloads last month
- 18
We're not able to determine the quantization variants.
Model tree for steampunque/GLM-4.6V-Flash-MP-GGUF
Base model
zai-org/GLM-4.6V-Flash