Instructions to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="steampunque/Qwen3-VL-4B-Instruct-MP-GGUF", filename="Qwen3-VL-4B-Instruct.Q6_K_H.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use steampunque/Qwen3-VL-4B-Instruct-MP-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 steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H # Run inference directly in the terminal: llama cli -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H # Run inference directly in the terminal: llama cli -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
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/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H # Run inference directly in the terminal: ./llama-cli -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
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/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H # Run inference directly in the terminal: ./build/bin/llama-cli -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
Use Docker
docker model run hf.co/steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
- LM Studio
- Jan
- Ollama
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with Ollama:
ollama run hf.co/steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
- Unsloth Studio
How to use steampunque/Qwen3-VL-4B-Instruct-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/Qwen3-VL-4B-Instruct-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/Qwen3-VL-4B-Instruct-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/Qwen3-VL-4B-Instruct-MP-GGUF to start chatting
- Pi
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
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/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use steampunque/Qwen3-VL-4B-Instruct-MP-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 steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
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/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
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 "steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H" \ --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"
- Docker Model Runner
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with Docker Model Runner:
docker model run hf.co/steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
- Lemonade
How to use steampunque/Qwen3-VL-4B-Instruct-MP-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull steampunque/Qwen3-VL-4B-Instruct-MP-GGUF:Q6_K_H
Run and chat with the model
lemonade run user.Qwen3-VL-4B-Instruct-MP-GGUF-Q6_K_H
List all available models
lemonade list
llm.create_chat_completion(
messages = "No input example has been defined for this model task."
)Mixed Precision GGUF layer quantization of Qwen3-VL-4B-Instruct by Qwen
Original model: https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct
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 was optimized for high performance across a set of test prompts with ~Q6_K size. The model often exhibits rep fails across a set of curated test prompts, where it falls into infinite repeat loops on certain prompts when using greedy sampling. Extensive testing showed there is no way to correct this problem by adjusting the layer quants, the problem is baked into the model by the training process. The VL 32B Instruct model does not exhibit this failure mode.
The quants employed are all K to avoid slow CPU or older GPU processing of IQ quants. For this file the layer quants are as follows:
Q5_K_L : attn_v = q8_0 attn_o = q6_k ffn_d = q6_k
Q6_K_S : Q6_K
Q6_K_M : attn_v = q8_0 ffn_d = q8_0
Q6_K_L : attn_v = q8_0 attn_o = q8_0 ffn_d = q8_0
LAYER_TYPES='[
[0 ,"Q6_K_L"],[1 ,"Q6_K_S"],[2 ,"Q5_K_M"],[3 ,"Q5_K_M"],[4 ,"Q5_K_M"],[5 ,"Q5_K_M"],
[6 ,"Q5_K_M"],[7 ,"Q5_K_M"],[8, "Q5_K_M"],[9, "Q5_K_M"],[10,"Q5_K_M"],[11,"Q5_K_M"],
[12,"Q5_K_M"],[13,"Q5_K_M"],[14,"Q5_K_M"],[15,"Q5_K_M"],[16,"Q5_K_M"],[17,"Q5_K_M"],
[18,"Q6_K_S"],[19,"Q5_K_L"],[20,"Q6_K_S"],[21,"Q5_K_L"],[22,"Q6_K_S"],[23,"Q5_K_L"],
[24,"Q6_K_S"],[25,"Q6_K_M"],[26,"Q6_K_S"],[27,"Q6_K_M"],[28,"Q6_K_S"],[29,"Q6_K_M"],
[30,"Q6_K_M"],[31,"Q6_K_M"],[32,"Q6_K_M"],[33,"Q6_K_L"],[34,"Q6_K_L"],[35,"Q6_K_L"]
]'
FLAGS="--token-embedding-type Q8_0 --output-tensor-type Q8_0 --layer-types-high"
Comparison:
| Quant | size | PPL | Comment |
|---|---|---|---|
| Q6_K | 3.3e9 | 10.7 | Q6_K with default embedding and output |
| Q6_K_H | 3.3e9 | 10.6 | Hybrid quant with Q8_0 embedding Q8_0 output |
Usage:
Qwen3-VL-4B-Instruct is a vision capable model. It can be used together with its multimedia projector layers to process images and text inputs and generate text outputs. The mmproj file is made available in this repository. To test vision mode follow the docs in the mtmd readme in the tools directory of the source tree https://github.com/ggml-org/llama.cpp/blob/master/tools/mtmd/README.md .
On a 4070 non-code gen rate is about 105tps.
Llama.cpp minimum version to run Qwen3-VL series should be 6915 with recommended 6936 and above.
Benchmarks:
A full set of vision benchmarks for the model is given here: https://huggingface.co/spaces/steampunque/benchlm
Download the file from below:
| Link | Type | Size/e9 B | Notes |
|---|---|---|---|
| Qwen3-VL-4B-Instruct.Q6_K_H.gguf | Q6_K_H | 3.3e9 B | ~Q6_K size |
| Qwen3-VL-4B-Instruct.mmproj.gguf | F16 | 0.84e9 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
- 26
6-bit
Model tree for steampunque/Qwen3-VL-4B-Instruct-MP-GGUF
Base model
Qwen/Qwen3-VL-4B-Instruct
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="steampunque/Qwen3-VL-4B-Instruct-MP-GGUF", filename="", )