Views
No views yet

The VIREX-062225-exp (Video Information Retrieval and Extraction eXpert - experimental) model is a fine-tuned version of Qwen2.5-VL-7B-Instruct, specifically optimized for advanced video understanding, image comprehension, sense of reasoning, and natural language decision-making through long chain-of-thought (CoT) reasoning. Built on the robust Qwen2.5-VL architecture, this experimental model excels at extracting meaningful insights from visual content through sophisticated video-image frame sampling and multimodal reasoning.
[!note] VIREX: Video Information Retrieval and Extraction eXpert [ experimental ]
1from transformers import Qwen2_5_VLForConditionalGeneration, AutoTokenizer, AutoProcessor
2from qwen_vl_utils import process_vision_info
3
4model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
5 "prithivMLmods/VIREX-062225-exp", torch_dtype="auto", device_map="auto"
6)
7
8processor = AutoProcessor.from_pretrained("prithivMLmods/VIREX-062225-exp")
9
10messages = [
11 {
12 "role": "user",
13 "content": [
14 {
15 "type": "video",
16 "video": "path/to/your/video.mp4",
17 },
18 {"type": "text", "text": "Analyze this video and explain the physical interactions you observe using chain-of-thought reasoning."},
19 ],
20 }
21]
22
23text = processor.apply_chat_template(
24 messages, tokenize=False, add_generation_prompt=True
25)
26image_inputs, video_inputs = process_vision_info(messages)
27inputs = processor(
28 text=[text],
29 images=image_inputs,
30 videos=video_inputs,
31 padding=True,
32 return_tensors="pt",
33)
34inputs = inputs.to("cuda")
35
36generated_ids = model.generate(**inputs, max_new_tokens=512)
37generated_ids_trimmed = [
38 out_ids[len(in_ids):] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
39]
40output_text = processor.batch_decode(
41 generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
42)
43print(output_text)| Parameter | Value |
|---|---|
| Dataset Size | 11,750 samples (Modular Combination of FineVideo and UltraVideo) |
| Model Architecture | Qwen2_5_VLForConditionalGeneration |
| Hardware | 3 × NVIDIA A40 (27 vCPUs) |
| Total Disk | 250,000 MB |
| Training Time | 4,489 seconds (~1.25 hours) |
| Learning Rate | 1e-5 |
| Scheduler | Linear Decay |
| Warmup Steps | 500 |
| Precision | bfloat16 |
| Training Method | Custom dataset with redesigned video-to-image frame sampling |