Views
No views yet

Qwen3-VL-4B-Thinking-Unredacted-MAX is an optimized release built on top of huihui-ai/Huihui-Qwen3-VL-4B-Thinking-abliterated. This version focuses on updated packaging, improved Transformers compatibility, and stable multimodal inference behavior, while preserving the core reasoning capabilities of the original architecture. The result is a capable 4B vision-language model designed for efficient deployment, research workflows, and multimodal experimentation.
1from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
2from qwen_vl_utils import process_vision_info
3import torch
4
5model = Qwen3VLForConditionalGeneration.from_pretrained(
6 "prithivMLmods/Qwen3-VL-4B-Thinking-Unredacted-MAX",
7 torch_dtype="auto",
8 device_map="auto"
9)
10
11processor = AutoProcessor.from_pretrained(
12 "prithivMLmods/Qwen3-VL-4B-Thinking-Unredacted-MAX"
13)
14
15messages = [
16 {
17 "role": "user",
18 "content": [
19 {
20 "type": "image",
21 "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
22 },
23 {"type": "text", "text": "Provide a detailed caption for this image."},
24 ],
25 }
26]
27
28text = processor.apply_chat_template(
29 messages,
30 tokenize=False,
31 add_generation_prompt=True
32)
33
34image_inputs, video_inputs = process_vision_info(messages)
35
36inputs = processor(
37 text=[text],
38 images=image_inputs,
39 videos=video_inputs,
40 padding=True,
41 return_tensors="pt",
42).to("cuda")
43
44generated_ids = model.generate(**inputs, max_new_tokens=256)
45
46output_text = processor.batch_decode(
47 [out[len(inp):] for inp, out in zip(inputs.input_ids, generated_ids)],
48 skip_special_tokens=True,
49 clean_up_tokenization_spaces=False
50)
51
52print(output_text)Important Note: This model inherits constraints and behavior from its base architecture.