Instructions to use wangkanai/qwen3-vl-2b-thinking with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wangkanai/qwen3-vl-2b-thinking with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wangkanai/qwen3-vl-2b-thinking") 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("wangkanai/qwen3-vl-2b-thinking", dtype="auto") - llama-cpp-python
How to use wangkanai/qwen3-vl-2b-thinking with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="wangkanai/qwen3-vl-2b-thinking", filename="qwen3-vl-2b-thinking-abliterated-f16.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
- llama.cpp
How to use wangkanai/qwen3-vl-2b-thinking with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf wangkanai/qwen3-vl-2b-thinking:F16 # Run inference directly in the terminal: llama-cli -hf wangkanai/qwen3-vl-2b-thinking:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf wangkanai/qwen3-vl-2b-thinking:F16 # Run inference directly in the terminal: llama-cli -hf wangkanai/qwen3-vl-2b-thinking: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 wangkanai/qwen3-vl-2b-thinking:F16 # Run inference directly in the terminal: ./llama-cli -hf wangkanai/qwen3-vl-2b-thinking: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 wangkanai/qwen3-vl-2b-thinking:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf wangkanai/qwen3-vl-2b-thinking:F16
Use Docker
docker model run hf.co/wangkanai/qwen3-vl-2b-thinking:F16
- LM Studio
- Jan
- vLLM
How to use wangkanai/qwen3-vl-2b-thinking with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wangkanai/qwen3-vl-2b-thinking" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wangkanai/qwen3-vl-2b-thinking", "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/wangkanai/qwen3-vl-2b-thinking:F16
- SGLang
How to use wangkanai/qwen3-vl-2b-thinking 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 "wangkanai/qwen3-vl-2b-thinking" \ --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": "wangkanai/qwen3-vl-2b-thinking", "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 "wangkanai/qwen3-vl-2b-thinking" \ --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": "wangkanai/qwen3-vl-2b-thinking", "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 wangkanai/qwen3-vl-2b-thinking with Ollama:
ollama run hf.co/wangkanai/qwen3-vl-2b-thinking:F16
- Unsloth Studio new
How to use wangkanai/qwen3-vl-2b-thinking 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 wangkanai/qwen3-vl-2b-thinking 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 wangkanai/qwen3-vl-2b-thinking to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for wangkanai/qwen3-vl-2b-thinking to start chatting
- Pi new
How to use wangkanai/qwen3-vl-2b-thinking with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf wangkanai/qwen3-vl-2b-thinking:F16
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": "wangkanai/qwen3-vl-2b-thinking:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use wangkanai/qwen3-vl-2b-thinking with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf wangkanai/qwen3-vl-2b-thinking:F16
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 wangkanai/qwen3-vl-2b-thinking:F16
Run Hermes
hermes
- Docker Model Runner
How to use wangkanai/qwen3-vl-2b-thinking with Docker Model Runner:
docker model run hf.co/wangkanai/qwen3-vl-2b-thinking:F16
- Lemonade
How to use wangkanai/qwen3-vl-2b-thinking with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull wangkanai/qwen3-vl-2b-thinking:F16
Run and chat with the model
lemonade run user.qwen3-vl-2b-thinking-F16
List all available models
lemonade list
Qwen3-VL-2B-Thinking (Abliterated)
A 2-billion parameter vision-language model from the Qwen3-VL family, featuring abliterated safety filters for unrestricted generation and enhanced reasoning capabilities. This model combines visual understanding with text generation, enabling multimodal analysis and creative applications.
Model Description
Qwen3-VL-2B-Thinking-Abliterated is a modified version of Qwen3-VL-2B optimized for:
- Vision-Language Understanding: Process images and generate contextual text responses
- Multimodal Reasoning: Analyze visual content with detailed explanations
- Unrestricted Generation: Abliterated safety layers for creative freedom
- Thinking Mode: Enhanced reasoning and step-by-step analysis capabilities
- Efficient Inference: 2B parameters for consumer hardware deployment
Key Features:
- Visual question answering (VQA)
- Image captioning and description
- Visual reasoning and analysis
- Multimodal conversation
- Creative image interpretation
Repository Contents
qwen3-vl-2b-thinking/
├── qwen3-vl-2b-thinking-abliterated.safetensors # PyTorch model (4.0GB)
└── qwen3-vl-2b-thinking-abliterated-f16.gguf # GGUF FP16 quantized (3.3GB)
Total Repository Size: ~7.3GB
Model Formats
| File | Format | Size | Use Case |
|---|---|---|---|
qwen3-vl-2b-thinking-abliterated.safetensors |
SafeTensors | 4.0GB | Transformers, PyTorch |
qwen3-vl-2b-thinking-abliterated-f16.gguf |
GGUF FP16 | 3.3GB | llama.cpp, Ollama |
Hardware Requirements
Minimum Requirements
- VRAM: 6GB (GGUF quantized inference)
- RAM: 8GB system memory
- Disk Space: 8GB available
- GPU: CUDA-compatible (RTX 2060+) or Apple Silicon
Recommended Requirements
- VRAM: 8-12GB (SafeTensors full precision)
- RAM: 16GB system memory
- Disk Space: 10GB available
- GPU: RTX 3060 Ti+ or Apple M1 Pro+
Performance Estimates
- GGUF on 8GB VRAM: ~15-25 tokens/sec
- SafeTensors on 12GB VRAM: ~20-35 tokens/sec
- CPU inference: ~2-5 tokens/sec (not recommended)
Usage Examples
Using Transformers (SafeTensors)
from transformers import Qwen2VLForConditionalGeneration, AutoProcessor
from PIL import Image
import torch
# Load model and processor
model_path = "E:/huggingface/qwen3-vl-2b-thinking"
model = Qwen2VLForConditionalGeneration.from_pretrained(
model_path,
torch_dtype=torch.float16,
device_map="auto"
)
processor = AutoProcessor.from_pretrained(model_path)
# Load image
image = Image.open("image.jpg")
# Create conversation
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Describe this image in detail."}
]
}
]
# Process and generate
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = processor(text=[text], images=[image], return_tensors="pt").to("cuda")
# Generate response
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=256)
response = processor.batch_decode(outputs, skip_special_tokens=True)[0]
print(response)
Using llama.cpp (GGUF)
# Download llama.cpp with vision support
git clone https://github.com/ggerganov/llama.cpp
cd llama.cpp
make
# Run inference with image
./llama-cli \
--model "E:/huggingface/qwen3-vl-2b-thinking/qwen3-vl-2b-thinking-abliterated-f16.gguf" \
--image "image.jpg" \
--prompt "Describe this image:" \
--n-gpu-layers 32 \
--ctx-size 4096
Using Ollama (GGUF)
# Create Modelfile
cat > Modelfile <<EOF
FROM E:/huggingface/qwen3-vl-2b-thinking/qwen3-vl-2b-thinking-abliterated-f16.gguf
PARAMETER temperature 0.7
PARAMETER top_p 0.9
EOF
# Create Ollama model
ollama create qwen3-vl-thinking -f Modelfile
# Run interactive session
ollama run qwen3-vl-thinking "Analyze this image: image.jpg"
Visual Question Answering
# Detailed analysis with thinking mode
messages = [
{
"role": "user",
"content": [
{"type": "image", "image": image},
{"type": "text", "text": "Think step-by-step and explain what's happening in this image."}
]
}
]
# Model will provide detailed reasoning in its response
Model Specifications
Architecture
- Model Type: Vision-Language Transformer
- Base Architecture: Qwen3-VL
- Parameters: 2 billion
- Modifications: Abliterated safety layers, enhanced reasoning
- Vision Encoder: ViT-based image encoder
- Text Decoder: Qwen3 transformer decoder
Technical Details
- Precision: FP16 (SafeTensors), Quantized (GGUF)
- Context Length: 4096 tokens
- Image Resolution: 448x448 (default), up to 1024x1024
- Vocabulary Size: ~151,000 tokens
- Training: Multimodal pretraining + instruction tuning
Supported Tasks
- Image captioning
- Visual question answering
- Scene understanding
- Object detection (descriptive)
- Visual reasoning
- Image-to-text generation
- Multimodal conversation
Performance Tips
Optimization Strategies
VRAM Optimization:
# Use 8-bit quantization model = Qwen2VLForConditionalGeneration.from_pretrained( model_path, load_in_8bit=True, device_map="auto" )Image Preprocessing:
# Resize large images from PIL import Image image = Image.open("large_image.jpg") image = image.resize((448, 448))Batch Processing:
# Process multiple images efficiently images = [Image.open(f"image{i}.jpg") for i in range(4)] inputs = processor(images=images, text=prompts, return_tensors="pt")GGUF Performance:
- Use
--n-gpu-layers 32for GPU acceleration - Adjust
--ctx-sizebased on available VRAM - Use
--threadsfor CPU optimization
- Use
Generation Parameters
generation_config = {
"max_new_tokens": 256,
"temperature": 0.7,
"top_p": 0.9,
"do_sample": True,
"repetition_penalty": 1.1
}
outputs = model.generate(**inputs, **generation_config)
Abliteration Notice
This model has been abliterated (safety filters removed) for:
- Unrestricted creative content generation
- Research and experimentation
- Artistic applications without content restrictions
Important: Users are responsible for ethical use and compliance with local laws. This model may generate unrestricted content.
License
Licensed under Apache 2.0. Free for commercial and research use with attribution.
Key provisions:
- ✅ Commercial use permitted
- ✅ Modification and distribution allowed
- ✅ Private use permitted
- ⚠️ Provide attribution and license notice
- ⚠️ State changes if modified
Full license: Apache License 2.0
Citation
@misc{qwen3vl2b-thinking-abliterated,
title={Qwen3-VL-2B-Thinking-Abliterated},
author={Qwen Team and Community Contributors},
year={2025},
howpublished={\url{https://huggingface.co/Qwen}},
note={Abliterated vision-language model with enhanced reasoning}
}
Official Resources
- Qwen Official: https://github.com/QwenLM/Qwen
- Transformers Docs: https://huggingface.co/docs/transformers
- llama.cpp: https://github.com/ggerganov/llama.cpp
- Model Family: https://huggingface.co/Qwen
Acknowledgments
- Qwen Team: Original Qwen3-VL architecture and pretraining
- Community: Abliteration techniques and reasoning enhancements
- Hugging Face: Model hosting and transformers library
- Downloads last month
- 16
16-bit