Instructions to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Dhptl/Qwen2.5-VL-3B-Instruct-GGUF") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Dhptl/Qwen2.5-VL-3B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Dhptl/Qwen2.5-VL-3B-Instruct-GGUF", filename="Qwen2.5-VL-3B-Instruct-Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
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 Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
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 Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
Use Docker
docker model run hf.co/Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Dhptl/Qwen2.5-VL-3B-Instruct-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": "Dhptl/Qwen2.5-VL-3B-Instruct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
- SGLang
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Dhptl/Qwen2.5-VL-3B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dhptl/Qwen2.5-VL-3B-Instruct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Dhptl/Qwen2.5-VL-3B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Dhptl/Qwen2.5-VL-3B-Instruct-GGUF", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with Ollama:
ollama run hf.co/Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
- Unsloth Studio
How to use Dhptl/Qwen2.5-VL-3B-Instruct-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 Dhptl/Qwen2.5-VL-3B-Instruct-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 Dhptl/Qwen2.5-VL-3B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Dhptl/Qwen2.5-VL-3B-Instruct-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
- Lemonade
How to use Dhptl/Qwen2.5-VL-3B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Dhptl/Qwen2.5-VL-3B-Instruct-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-VL-3B-Instruct-GGUF-Q4_K_M
List all available models
lemonade list
Qwen2.5-VL-3B-Instruct โ GGUF Quantizations (VLM)
Quantized GGUF versions of Qwen/Qwen2.5-VL-3B-Instruct
This is a Vision-Language Model (VLM) โ it can understand both text and images.
This VLM requires TWO files โ a text backbone GGUF and the
mmprojvision encoder GGUF. Download one text backbone (e.g. Q4_K_M) and the mmproj file. Both must be in the same folder.
๐ฆ Available Files
๐ค Text Backbone (quantized โ pick ONE)
| Filename | Size | RAM Required | Quant | Quality | Best For |
|---|---|---|---|---|---|
Qwen2.5-VL-3B-Instruct-Q2_K.gguf |
1.19 GB | ~2.7 GB | Q2_K |
โญ | Extreme compression, significant quality loss. |
Qwen2.5-VL-3B-Instruct-Q3_K_L.gguf |
1.59 GB | ~3.1 GB | Q3_K_L |
โญโญโญ | Slightly better than Q3_K_M, still a compromise. |
Qwen2.5-VL-3B-Instruct-Q3_K_M.gguf |
1.48 GB | ~3.0 GB | Q3_K_M |
โญโญโญ | Very small file. Quality drop noticeable. |
Qwen2.5-VL-3B-Instruct-Q3_K_S.gguf |
1.35 GB | ~2.9 GB | Q3_K_S |
โญโญ | Very high compression, high quality loss. |
Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf |
1.80 GB | ~3.3 GB | Q4_K_M โ
Recommended |
โญโญโญโญ | Best balance of size and quality. Recommended for most users. |
Qwen2.5-VL-3B-Instruct-Q4_K_S.gguf |
1.71 GB | ~3.2 GB | Q4_K_S |
โญโญโญยฝ | Good speed/size balance, slight quality loss. |
Qwen2.5-VL-3B-Instruct-Q5_K_M.gguf |
2.07 GB | ~3.6 GB | Q5_K_M |
โญโญโญโญยฝ | Better quality than Q4, slightly larger. Great if you have the RAM. |
Qwen2.5-VL-3B-Instruct-Q5_K_S.gguf |
2.02 GB | ~3.5 GB | Q5_K_S |
โญโญโญโญ | Large but accurate. |
Qwen2.5-VL-3B-Instruct-Q6_K.gguf |
2.36 GB | ~3.9 GB | Q6_K |
โญโญโญโญโญ | Near-perfect quality, very large. |
Qwen2.5-VL-3B-Instruct-Q8_0.gguf |
3.06 GB | ~4.6 GB | Q8_0 |
โญโญโญโญโญ | Closest to original quality. Use when RAM is not a concern. |
๐ผ๏ธ Vision Encoder โ mmproj (always required, always F16)
| Filename | Size | Notes |
|---|---|---|
Qwen2.5-VL-3B-Instruct-mmproj-f16.gguf |
1.25 GB | Always F16 โ vision encoder is not quantized |
โ ๏ธ You need BOTH files โ one text backbone + the mmproj โ to run this VLM.
โก Speed Benchmarks
Run python benchmark.py --model Qwen2.5-VL-3B-Instruct to generate results.
๐ How to Use
LM Studio (Easiest โ GUI)
- Search for
Dhptl/Qwen2.5-VL-3B-Instructin LM Studio - Download the Q4_K_M text file and the mmproj file
- Load the model โ LM Studio automatically uses both files
Ollama
ollama run dhptl/qwen2.5-vl-3b-instruct
llama.cpp CLI โ Text + Image
# Download both files to the same directory, then:
./llama-llava-cli \
-m Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf \
--mmproj Qwen2.5-VL-3B-Instruct-mmproj-f16.gguf \
--image /path/to/your/image.jpg \
-p "Describe this image in detail." \
-n 512
llama.cpp CLI โ Text only (no image)
./llama-cli \
-m Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf \
-p "You are a helpful assistant." \
--conversation
Python โ llama-cpp-python
from llama_cpp import Llama
from llama_cpp.llama_chat_format import Llava16ChatHandler
# Load VLM with mmproj
chat_handler = Llava16ChatHandler(clip_model_path="./Qwen2.5-VL-3B-Instruct-mmproj-f16.gguf")
llm = Llama(
model_path="./Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf",
chat_handler=chat_handler,
n_gpu_layers=-1,
n_ctx=4096,
logits_all=True,
)
# Text + image inference
response = llm.create_chat_completion(
messages=[
{
"role": "user",
"content": [
{"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}},
{"type": "text", "text": "What do you see in this image?"}
]
}
]
)
print(response["choices"][0]["message"]["content"])
๐ VLM Architecture
This model uses a two-component architecture:
| Component | File | Purpose |
|---|---|---|
| Text Backbone | Qwen2.5-VL-3B-Instruct-Q4_K_M.gguf |
Language understanding & generation |
| Vision Encoder (mmproj) | Qwen2.5-VL-3B-Instruct-mmproj-f16.gguf |
Image feature extraction (always F16) |
Why is mmproj always F16? The vision encoder maps image pixels to token embeddings. Quantizing it causes visible visual artifacts and degraded image understanding. It stays at F16 (half precision) which is already very efficient at ~1-2GB for most models.
๐ About GGUF Quantization
| Format | Bits/weight | Quality |
|---|---|---|
| Q3_K_M | ~3.3 | โญโญโญ |
| Q4_K_M | ~4.5 | โญโญโญโญ โ recommended |
| Q5_K_M | ~5.6 | โญโญโญโญยฝ |
| Q8_0 | ~8.5 | โญโญโญโญโญ |
๐ฌ Community & Feedback
Found an issue? Open a Discussion in the Community tab.
If useful, please:
- โญ Star quant-kit on GitHub
- ๐ Like this model on HuggingFace
- Downloads last month
- 370
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for Dhptl/Qwen2.5-VL-3B-Instruct-GGUF
Base model
Qwen/Qwen2.5-VL-3B-Instruct