rVL and Captioning Models
Collection
Image and video frame understanding, contextual analysis, and natural language reasoning, Abliterated Captioning / Uncensored Image Captioning, • 2 items • Updated • 2
The Chamaeleontis-7B-Reason-rVL model is a general-purpose multimodal reasoning model built on Qwen2.5-VL-7B-Instruct, optimized for image and video frame understanding, contextual analysis, and natural language reasoning. It excels at extracting structured insights from both static visuals and video streams through step-by-step logical interpretation and visual common sense grounding.
Chamaeleontis: Reason-based Qwen2.5VL model for visual understanding and CoT reasoning
from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
from qwen_vl_utils import process_vision_info
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
"prithivMLmods/Chamaeleontis-7B-Reason-rVL", torch_dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained("prithivMLmods/Chamaeleontis-7B-Reason-rVL")
messages = [
{
"role": "user",
"content": [
{"type": "video", "video": "path/to/your/video.mp4"},
{"type": "text", "text": "Briefly describe the physical events and interactions in this video using logical steps."},
],
}
]
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",
)
inputs = inputs.to("cuda")
generated_ids = model.generate(**inputs, max_new_tokens=512)
generated_ids_trimmed = [
out_ids[len(in_ids):] for in_ids, out_ids 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)