Instructions to use steampunque/GLM-4.6V-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-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-MP-GGUF", filename="GLM-4.6V.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-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-MP-GGUF # Run inference directly in the terminal: llama-cli -hf steampunque/GLM-4.6V-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-MP-GGUF # Run inference directly in the terminal: llama-cli -hf steampunque/GLM-4.6V-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-MP-GGUF # Run inference directly in the terminal: ./llama-cli -hf steampunque/GLM-4.6V-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-MP-GGUF # Run inference directly in the terminal: ./build/bin/llama-cli -hf steampunque/GLM-4.6V-MP-GGUF
Use Docker
docker model run hf.co/steampunque/GLM-4.6V-MP-GGUF
- LM Studio
- Jan
- Ollama
How to use steampunque/GLM-4.6V-MP-GGUF with Ollama:
ollama run hf.co/steampunque/GLM-4.6V-MP-GGUF
- Unsloth Studio new
How to use steampunque/GLM-4.6V-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-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-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-MP-GGUF to start chatting
- Pi new
How to use steampunque/GLM-4.6V-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-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-MP-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use steampunque/GLM-4.6V-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-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-MP-GGUF
Run Hermes
hermes
- Docker Model Runner
How to use steampunque/GLM-4.6V-MP-GGUF with Docker Model Runner:
docker model run hf.co/steampunque/GLM-4.6V-MP-GGUF
- Lemonade
How to use steampunque/GLM-4.6V-MP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull steampunque/GLM-4.6V-MP-GGUF
Run and chat with the model
lemonade run user.GLM-4.6V-MP-GGUF-{{QUANT_TAG}}List all available models
lemonade list
Mixed Precision GGUF layer quantization of GLM-4.6V by zai-org
Original model: https://huggingface.co/zai-org/GLM-4.6V
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 to be able to run on a 64G RAM CPU machine. 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 ,"Q4_K_S"], [3 ,"Q3_K_L"], [4 ,"Q3_K_L"], [5 ,"Q3_K_M"], [6 ,"Q3_K_L"], [7 ,"Q3_K_M"],
[8 ,"Q3_K_L"], [9 ,"Q3_K_M"], [10,"Q3_K_M"], [11,"Q3_K_M"], [12,"Q3_K_M"], [13,"Q3_K_M"], [14,"Q3_K_M"], [15,"Q3_K_M"],
[16,"Q3_K_M"], [17,"Q3_K_M"], [18,"Q3_K_M"], [19,"Q3_K_M"], [20,"Q3_K_M"], [21,"Q3_K_M"], [22,"Q3_K_M"], [23,"Q3_K_M"],
[24,"Q3_K_L"], [25,"Q3_K_M"], [26,"Q3_K_L"], [27,"Q3_K_M"], [28,"Q3_K_L"], [29,"Q3_K_M"], [30,"Q3_K_L"], [31,"Q4_K_S"],
[32,"Q4_K_S"], [33,"Q3_K_L"], [34,"Q4_K_S"], [35,"Q3_K_L"], [36,"Q4_K_S"], [37,"Q4_K_S"], [38,"Q4_K_S"], [39,"Q4_K_M"],
[40,"Q4_K_M"], [41,"Q4_K_M"], [42,"Q4_K_L"], [43,"Q5_K_S"], [44,"Q5_K_M"], [45,"Q5_K_L"], [46,"Q6_K_S"]
]'
FLAGS="--token-embedding-type Q4_K --output-tensor-type Q6_K --layer-types-high --tensor-pad [[10944,11008],[1408,1536]] --override-kv glm4moe.feed_forward_length=int:11008 --override-kv glm4moe.expert_feed_forward_length=int:1536
Model FFN length is padded from 10944 to 11008 to allow use of K quants in the layers instead of fallback legacy quants. Expert tensors are padded from 1466 to 1536 for the same reason.
Comparison:
| Quant | size | PPL | Comment |
|---|---|---|---|
| IQ4_XS | 58.3e9 | - | |
| Q4_P_H | 61.9e9 | 6.5 | Hybrid quant with Q4_K embedding Q6_K output |
The quant was sized to be able to run on 64G RAM CPUs along with the mmproj and then evaluated for acceptable reasoning performance across a curated set of text and vision 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 will fall into infinite generations on some prompts with greedy sampling. This effect can be mitigated by use of temperature sampling. Image mode was tested on a small set of images and found to be both functional and very accurate.
To run the model it is necessary to offload expert tensors to CPU:
OT="-ot exps=CPU -ngl 99"
This will open up a large amount of space in VRAM for context. Token gen rate is around 7tps on a 9900k / 4070 rig.
Benchmarks:
A limited set of vision benchmarks for the model will eventually be published here: https://huggingface.co/spaces/steampunque/benchlm
Download the file from below:
| Link | Type | Size/e9 B | Notes |
|---|---|---|---|
| GLM-4.6V.Q4_P_H.gguf | Q4_P_H | 61.9e9 B | runs on 64G RAM CPU |
| GLM-4.6V.mmproj.gguf | F16 | 1.72e9 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
- 28
We're not able to determine the quantization variants.
Model tree for steampunque/GLM-4.6V-MP-GGUF
Base model
zai-org/GLM-4.6V