Instructions to use prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1") 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 AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1") model = AutoModelForImageTextToText.from_pretrained("prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1") 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?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1", "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/prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1
- SGLang
How to use prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1 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 "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1" \ --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": "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1", "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 "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1" \ --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": "prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1", "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" } } ] } ] }' - Docker Model Runner
How to use prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1 with Docker Model Runner:
docker model run hf.co/prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1
Qwen3-VL-2B-Thinking-abliterated
Qwen3-VL-2B-Thinking-abliterated is an abliterated (v1.0) variant of Qwen3-VL-2B-Thinking, designed for Abliterated Reasoning and Captioning. This model is optimized to generate detailed, descriptive captions and reasoning outputs across a wide range of visual and multimodal contexts—including complex, sensitive, or nuanced content—while supporting diverse aspect ratios and resolutions.
Key Highlights
- Abliterated / Uncensored Captioning – Fine-tuned to bypass conventional content filters while preserving factual, descriptive, and reasoning-rich outputs.
- High-Fidelity Descriptions – Generates comprehensive captions and reasoning for general, artistic, technical, abstract, or low-context images.
- Robust Across Aspect Ratios – Performs consistently across wide, tall, square, and irregular image dimensions.
- Variational Detail Control – Capable of producing outputs ranging from concise summaries to fine-grained, intricate descriptions and reasoning.
- Foundation on Qwen3-VL-2B-Thinking Architecture – Built upon Qwen3-VL-2B-Thinking’s strong multimodal reasoning and instruction-following capabilities.
- Multilingual Output Capability – Primarily optimized for English, with adaptability for multilingual prompts through prompt engineering.
Base Model Signatures:
This model has been re-sharded and optimized for the latest Transformers version from the base model: https://huggingface.co/huihui-ai/Huihui-Qwen3-VL-2B-Thinking-abliterated.
Quick Start with Transformers
from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info
import torch
model = Qwen3VLForConditionalGeneration.from_pretrained(
"prithivMLmods/Qwen3-VL-2B-Thinking-abliterated",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained("prithivMLmods/Qwen3-VL-2B-Thinking-abliterated")
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
},
{"type": "text", "text": "Provide a detailed caption and reasoning for this image."},
],
}
]
text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
text=[text],
images=image_inputs,
videos=video_inputs,
padding=True,
return_tensors="pt",
).to("cuda")
generated_ids = model.generate(**inputs, max_new_tokens=128)
generated_ids_trimmed = [out[len(inp):] for inp, out in zip(inputs.input_ids, generated_ids)]
output_text = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False
)
print(output_text)
Intended Use
This model is suited for:
- Generating detailed, uncensored captions and reasoning for general-purpose or artistic datasets.
- Research in content moderation, red-teaming, and generative safety evaluation.
- Enabling descriptive captioning and reasoning for visual datasets typically excluded from mainstream models.
- Creative applications such as storytelling, art generation, or multimodal reasoning tasks.
- Captioning and reasoning for non-standard aspect ratios and stylized visual content.
Limitations
- May produce explicit, sensitive, or offensive descriptions depending on the image content and prompts.
- Not recommended for production systems requiring strict content moderation.
- Output style, tone, and reasoning may vary based on input phrasing.
- Accuracy can fluctuate for unfamiliar, synthetic, or highly abstract visual content.
- Downloads last month
- 18
Model tree for prithivMLmods/Qwen3-VL-2B-Thinking-abliterated-v1
Base model
Qwen/Qwen3-VL-2B-Thinking