CoolFace
Modelpublic

jc-builds/Qwen3.5-9B-VLM-Q4_K_M-GGUF

sourceHugging Faceapache-2.0updated 6mo agoView on Hugging Face
12likes6.1kdownloads
Model Card

Qwen3.5-9B VLM Q4KM GGUF

Ready-to-run Vision Language Model — bundled Q4\K\M quantization + multimodal projector for immediate VLM inference with llama.cpp.

Overview

This repository provides a complete, self-contained VLM package for Qwen3.5-9B in GGUF format. Unlike text-only GGUF repos, this includes the multimodal projector (mmproj) required for vision capabilities — no need to hunt for separate files.

FileDescriptionSize
Qwen3.5-9B-Q4_K_M.ggufMain model weights (4-bit quantized)~6.0 GB
mmproj-F16.ggufVision encoder projection (FP16)~918 MB

Total VRAM/RAM required: ~7–8 GB for full VLM inference

Key Features

  • —Natively Multimodal — Qwen3.5 uses early fusion architecture where vision and language are jointly trained from the ground up, not bolted on as an afterthought
  • —Outperforms Qwen3-VL — Cross-generational improvements across visual understanding, reasoning, coding, and agent benchmarks
  • —262K Context Length — Native 262,144 token context window, extensible to 1M+ tokens
  • —201 Languages — Broad multilingual support including CJK, European, Arabic, Southeast Asian, and more
  • —Efficient Quantization — Q4\K\M provides an excellent balance of quality and size, retaining strong performance while fitting in ~6 GB

Architecture

Qwen3.5 represents a paradigm shift from the separate "LLM + Vision Encoder" approach (used by Qwen3-VL, LLaVA, etc.) to a unified early-fusion architecture:

Image → Vision Encoder → Multimodal Projector (mmproj) ─┐
                                                         ├→ Unified Transformer → Output
Text → Token Embedding ─────────────────────────────────┘

The vision encoder processes images into visual tokens that are projected into the same embedding space as text tokens via the mmproj file, enabling seamless multimodal reasoning within a single transformer.

Quickstart

Prerequisites

  • —llama.cpp (built from source or pre-built binaries)
  • —~8 GB available RAM/VRAM

Download

bash
# Download both files
huggingface-cli download jc-builds/Qwen3.5-9B-VLM-Q4_K_M-GGUF \
  --local-dir Qwen3.5-9B-VLM-Q4_K_M-GGUF

Run with llama.cpp CLI

bash
# Image understanding
./llama-cli \
  --model Qwen3.5-9B-VLM-Q4_K_M-GGUF/Qwen3.5-9B-Q4_K_M.gguf \
  --mmproj Qwen3.5-9B-VLM-Q4_K_M-GGUF/mmproj-F16.gguf \
  --image your_image.jpg \
  -p "Describe what you see in this image in detail." \
  --temp 0.7 --top-p 0.9 \
  -n 512

# Text-only mode (omit --mmproj and --image)
./llama-cli \
  --model Qwen3.5-9B-VLM-Q4_K_M-GGUF/Qwen3.5-9B-Q4_K_M.gguf \
  -p "Explain quantum entanglement simply." \
  --temp 0.7 \
  -n 512

Run with llama.cpp Server

bash
./llama-server \
  --model Qwen3.5-9B-VLM-Q4_K_M-GGUF/Qwen3.5-9B-Q4_K_M.gguf \
  --mmproj Qwen3.5-9B-VLM-Q4_K_M-GGUF/mmproj-F16.gguf \
  --port 8080

Then send requests with images via the OpenAI-compatible API:

bash
curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.5-9b-vlm",
    "messages": [
      {
        "role": "user",
        "content": [
          {"type": "text", "text": "What is in this image?"},
          {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64,..."}}
        ]
      }
    ]
  }'

Use with iOS / On-Device (llama.cpp Swift bindings)

This model is optimized for on-device inference. Load both files in your llama.cpp-based iOS app:

swift
// Load main model
let modelParams = llama_model_default_params()
let model = llama_model_load_from_file("Qwen3.5-9B-Q4_K_M.gguf", modelParams)

// Load vision projector
let clipModel = clip_model_load("mmproj-F16.gguf", /* verbosity */ 1)

Quantization Details

PropertyValue
MethodQ4\K\M (4-bit, mixed precision)
Base ModelQwen/Qwen3.5-9B
Parameters9.6B (dense)
Vision ProjectorFP16 (full precision for visual quality)
GQA Groups4
Context Length262,144 tokens
Vocabulary200K+ tokens

Q4\K\M uses a mixed quantization strategy where more important layers retain higher precision, providing a strong quality-to-size ratio. The vision projector is kept at FP16 to preserve visual understanding fidelity.

Compatibility

BackendTextVisionNotes
llama.cpp (CLI/Server)YesYesFull support with --mmproj flag
llama.cpp (Swift/iOS)YesYesLoad both model + clip files
LM StudioYesPartialCheck for mmproj support
OllamaYesNoDoes not support separate mmproj files yet
KoboldCppYesYesSupports --mmproj flag

Benchmarks

Qwen3.5-9B delivers exceptional performance across vision, text, and reasoning tasks — often matching or exceeding models many times its size.

Note: Quantization to Q4\K\M typically results in minimal degradation (~1-2%) compared to FP16 for models of this size. All scores below are from the FP16 base model.

Vision & Multimodal Performance

<p align="center"> <img src="assets/vision_benchmarks.svg" width="100%" alt="Vision benchmark comparison"/> </p>

<details> <summary><b>Full Vision Benchmark Table</b> (click to expand)</summary>

BenchmarkQwen3.5-9BGPT-5-NanoGemini 2.5 FlashQwen3-VL-30B
STEM & Puzzle
MMMU78.475.873.476.0
MMMU-Pro70.157.259.763.0
MathVision78.962.252.165.7
MathVista (mini)85.771.572.881.9
We-Math75.262.532.170.0
DynaMath83.678.069.980.1
VLMs Are Blind93.766.768.472.5
General VQA
RealWorldQA80.371.872.277.4
MMStar79.768.669.175.5
MMBench EN v1.190.180.382.788.9
HallusionBench69.358.464.566.0
OCR & Documents
OmniDocBench 1.587.755.979.486.8
CharXiv (RQ)73.050.156.156.6
MMLongBench-Doc57.731.846.547.4
CC-OCR79.358.972.977.8
AI2D90.281.985.786.9
OCRBench89.275.382.583.9
Spatial Intelligence
CountBench97.280.079.290.0
EmbSpatialBench83.074.266.180.6
RefSpatialBench58.512.611.254.2
LingoQA80.457.017.862.0
Video Understanding
VideoMME (w/ sub)84.571.774.679.9
VideoMME (w/o sub)78.466.272.773.3
VideoMMMU78.963.069.275.0
MLVU84.469.278.578.9
MMVU67.863.165.366.1
Visual Agent
ScreenSpot Pro65.2——60.5
OSWorld41.8——30.6
AndroidWorld57.8——55.0
Medical VQA
SLAKE79.057.065.068.8
PMC-VQA57.937.848.851.5
MedXpertQA-MM49.926.735.335.5

</details>

Capability Radar

<p align="center"> <img src="assets/radar_chart.svg" width="520" alt="Capability radar chart"/> </p>

Text & Reasoning Performance

<p align="center"> <img src="assets/text_benchmarks.svg" width="100%" alt="Text benchmark comparison"/> </p>

<details> <summary><b>Full Text Benchmark Table</b> (click to expand)</summary>

BenchmarkQwen3.5-9BGPT-OSS-120BQwen3-30B-A3B
Knowledge & STEM
MMLU-Pro82.580.880.9
MMLU-Redux91.191.091.4
GPQA Diamond81.780.173.4
SuperGPQA58.254.656.8
C-Eval88.276.287.4
Instruction Following
IFEval91.588.988.9
IFBench64.569.051.5
MultiChallenge54.545.346.5
Reasoning & Math
HMMT Feb '2583.290.063.1
HMMT Nov '2582.990.073.8
LiveCodeBench v665.682.766.0
OJBench29.241.525.1
Long Context
LongBench v255.248.244.8
AA-LCR63.050.749.0
Agent & Tool Use
BFCL-V466.1—42.4
TAU2-Bench79.1—41.9
VITA-Bench29.8—14.1
Multilingual
MMMLU81.278.278.4
MMLU-ProX76.374.569.1
NOVA-6355.951.152.5
INCLUDE75.674.074.4
WMT24++72.674.469.3

</details>

Credits & Acknowledgments

License

This model is released under the Apache 2.0 License, consistent with the base Qwen3.5-9B model.

Citation

bibtex
@article{qwen3.5,
  title={Qwen3.5 Technical Report},
  author={Qwen Team},
  year={2025},
  url={https://qwen.ai/blog?id=qwen3.5}
}

<p align="center"> <i>Packaged by <a href="https://huggingface.co/jc-builds">jc-builds</a> for easy on-device VLM deployment.</i> </p>