How to use from
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 sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
# Run inference directly in the terminal:
llama cli -hf sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
# Run inference directly in the terminal:
llama cli -hf sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
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 sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
# Run inference directly in the terminal:
./llama-cli -hf sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
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 sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
# Run inference directly in the terminal:
./build/bin/llama-cli -hf sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
Use Docker
docker model run hf.co/sidrajaram/Qwen2-VL-2B-Instruct-GGUF:F16
Quick Links

Qwen2-VL-2B-Instruct-GGUF (f16)

This is a F16 GGUF version of Qwen2-VL-2B-Instruct for use with llama.cpp (i.e. you can run Qwen2-VL on your Mac)

How to Use

  1. Build llama-qwen2vl-cli executable
  2. Download model files and use: ./llama-qwen2vl-cli -m Qwen2-VL-2B-Instruct-F16.gguf --mmproj qwen2-vl-2b-instruct-vision.gguf -p "Describe this image." --image crocodiles.png

Details on Usage:

  1. Download the model files from this repository (sidrajaram/Qwen2-VL-2B-Instruct-GGUF).

  2. Make sure you have llama.cpp and have built the llama-qwen2vl-cli executable.

git clone https://github.com/ggerganov/llama.cpp.git

For example, building with CMake (see detailed llama.cpp build instructions: https://github.com/ggerganov/llama.cpp/blob/master/docs/build.md):

cmake -B build
cmake --build build --config Release
  1. Run
./path/to/llama-qwen2vl-cli -m path/to/Qwen2-VL-2B-Instruct-F16.gguf --mmproj path/to/qwen2-vl-2b-instruct-vision.gguf -p "Describe this image." --image path/to/image.png

Note: According to llama.cpp contributors, "it's recommended to resize the image to a resolution below 640x640, so it won't take forever to run on CPU backend"

Credit to the original model: https://huggingface.co/Qwen/Qwen2-VL-2B-Instruct

Downloads last month
68
GGUF
Model size
2B params
Architecture
qwen2vl
Hardware compatibility
Log In to add your hardware

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for sidrajaram/Qwen2-VL-2B-Instruct-GGUF

Base model

Qwen/Qwen2-VL-2B
Quantized
(55)
this model