Views
No views yet

Qwen3-VL-8B-Abliterated-Caption-it-FP8 is an FP8-compressed variant built on top of prithivMLmods/Qwen3-VL-8B-Abliterated-Caption-it. This edition applies BF16 · FP8 (F8_E4M3) precision formats to significantly reduce memory usage and improve inference throughput while preserving the dense captioning strength and abliterated behavioral characteristics of the original 8B architecture. The base Qwen3-VL-8B-Abliterated-Caption-it model is a fine-tuned version of Qwen3-VL-8B-Instruct, tailored for Abliterated Captioning and uncensored image description. It is designed to generate highly detailed, descriptive captions across a broad range of visual categories, including complex, sensitive, or nuanced content, while supporting varying aspect ratios and resolutions.
1from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
2from qwen_vl_utils import process_vision_info
3import torch
4
5# Load the 8B Abliterated Caption FP8 model
6model = Qwen3VLForConditionalGeneration.from_pretrained(
7 "prithivMLmods/Qwen3-VL-8B-Abliterated-Caption-it-FP8",
8 torch_dtype="auto",
9 device_map="auto"
10)
11
12processor = AutoProcessor.from_pretrained(
13 "prithivMLmods/Qwen3-VL-8B-Abliterated-Caption-it-FP8"
14)
15
16messages = [
17 {
18 "role": "user",
19 "content": [
20 {
21 "type": "image",
22 "image": "https://qianwen-res.oss-cn-beijing.aliyuncs.com/Qwen-VL/assets/demo.jpeg",
23 },
24 {"type": "text", "text": "Generate a highly detailed caption for this image."},
25 ],
26 }
27]
28
29text = processor.apply_chat_template(
30 messages, tokenize=False, add_generation_prompt=True
31)
32
33image_inputs, video_inputs = process_vision_info(messages)
34
35inputs = processor(
36 text=[text],
37 images=image_inputs,
38 videos=video_inputs,
39 padding=True,
40 return_tensors="pt",
41).to("cuda")
42
43generated_ids = model.generate(**inputs, max_new_tokens=512)
44
45generated_ids_trimmed = [
46 out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
47]
48
49output_text = processor.batch_decode(
50 generated_ids_trimmed,
51 skip_special_tokens=True,
52 clean_up_tokenization_spaces=False
53)
54
55print(output_text)Critical Note: This model minimizes built-in refusal behaviors.