Downloads · 30 days
73
12% of all-time downloads
wangkanai/qwen3-vl-2b-thinking
qwen3-vl-2b-thinking is a image-text-to-text model from wangkanai. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
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…
Downloads · 30 days
73
12% of all-time downloads
All-time downloads
599
Public
Repo size
7.7 GB
Likes
2
Public
Click a slice to open those files.
.safetensors4.3 GB · 55%
From the Hugging Face model README
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.
Qwen3-VL-2B-Thinking-Abliterated is a modified version of Qwen3-VL-2B optimized for:
Key Features:
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
| 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 |
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)
# 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
# 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"
# 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
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:
--n-gpu-layers 32 for GPU acceleration--ctx-size based on available VRAM--threads for CPU optimizationgeneration_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)
This model has been abliterated (safety filters removed) for:
Important: Users are responsible for ethical use and compliance with local laws. This model may generate unrestricted content.
Licensed under Apache 2.0. Free for commercial and research use with attribution.
Key provisions:
Full license: Apache License 2.0
@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}
}