xmodel-vl
a specialized model for second-by-second video action analysis and clipping
2 min readupdated
The model is designed for automatic analysis of first-person video (egocentric video) and breaking it down into semantic subtasks with precise start and end timestamps. The output is a structured JSON array containing action descriptions and timecodes. Built on an advanced Qwen3.5-VL architecture (around 27B parameters) featuring hybrid linear attention, it was fine-tuned in two stages using SFT (supervised fine-tuning) and GRPO (reinforcement learning with temporal metrics). The new model significantly outperforms the base version in temporal boundary accuracy and will be useful for developers of video analytics systems and robotics.
Key features
- Built on the modern Qwen3.5-VL multimodal architecture (27B parameters, BF16).
- Two-stage training (SFT + GRPO) focusing on precise temporal interval matching.
- Outputs ready-to-use results in JSON format with a description and timecode for each subtask.
- Weights are supplied as a fully merged checkpoint (SFT + GRPO LoRA), ready for inference without extra adapters.
What you can do
- Integrate the model into automated video annotation pipelines for first-person camera footage.
- Build tools for quickly splitting videos into logical episodes based on specified time segments.
- Use it for action analysis in educational or industrial video materials.
Example
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText
model_id = "heitong/xmodel-vl"
processor = AutoProcessor.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForImageTextToText.from_pretrained(
model_id, torch_dtype=torch.bfloat16, device_map="auto", trust_remote_code=True
)
instruction = (
"以下是一段第一人称视频中均匀抽取的 32 帧,每帧前方括号是该帧时间戳(秒)。"
"按时间顺序切分动作子任务,输出JSON数组,每个元素为 "
'{"description": 动作描述, "start_time": 起始秒, "end_time": 结束秒}。只输出JSON数组。'
)
Read more
DetailsBenchmarks (egodemo 422): F1@50 increased from 0.515 to 0.766, and boundary MAE dropped to 2.60 seconds.
Requirements: requires the transformers>=5.2.0 library and the trust_remote_code=True parameter.
Limitations: optimized for 10–25 second segments, accuracy is limited by frame density.










Comments