How to use from
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-4B-Thinking-Unredacted-MAX" \
    --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-4B-Thinking-Unredacted-MAX",
		"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-4B-Thinking-Unredacted-MAX" \
        --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-4B-Thinking-Unredacted-MAX",
		"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"
						}
					}
				]
			}
		]
	}'
Quick Links

1

Qwen3-VL-4B-Thinking-Unredacted-MAX

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.

Key Highlights

  • Optimized Release Structure Streamlined repository organization for easier loading, deployment, and inference workflows.

  • Modern Transformers Compatibility Updated for stable integration with recent Hugging Face Transformers versions.

  • 4B Thinking Vision-Language Architecture Built on Qwen3-VL-4B-Thinking, balancing reasoning strength with efficient compute requirements.

  • Stable Multimodal Inference Designed for consistent performance across image-text understanding tasks.

  • Efficient Caption Generation Produces structured and detailed descriptions suitable for annotation and dataset pipelines.

  • Dynamic Resolution Support Retains native support for varying image resolutions and aspect ratios.


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-4B-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-4B-Thinking-Unredacted-MAX",
    torch_dtype="auto",
    device_map="auto"
)

processor = AutoProcessor.from_pretrained(
    "prithivMLmods/Qwen3-VL-4B-Thinking-Unredacted-MAX"
)

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 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=256)

output_text = processor.batch_decode(
    [out[len(inp):] for inp, out in zip(inputs.input_ids, generated_ids)],
    skip_special_tokens=True,
    clean_up_tokenization_spaces=False
)

print(output_text)

Intended Use

  • Multimodal research and vision-language evaluation
  • Image captioning and dataset generation pipelines
  • Prototyping AI systems combining text and vision
  • Lightweight deployment on consumer or mid-range GPUs
  • Experimental workflows in multimodal understanding

Limitations & Risks

Important Note: This model inherits constraints and behavior from its base architecture.

  • Output quality depends heavily on image clarity and prompt design
  • May produce incomplete or inconsistent interpretations in complex scenarios
  • Requires sufficient GPU memory for stable inference
  • Performance varies with decoding settings and runtime optimization
Downloads last month
45
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for prithivMLmods/Qwen3-VL-4B-Thinking-Unredacted-MAX

Finetuned
(28)
this model
Quantizations
4 models

Collection including prithivMLmods/Qwen3-VL-4B-Thinking-Unredacted-MAX