How evolvinglmms-lab/longvt works
LongVT is a long-video reasoning project built around an agent that alternates broad video understanding with native clip-cropping tool calls, grounding answers in retrieved visual evidence. Its documented workflow spans curated data, staged SFT/RL/RFT training, and evaluation; the repository also includes a detached verl training runtime and a data-processing pipeline. The README establishes the product-level stages, while sampled source mainly exposes verl workers, checkpointing, dispatch, and device support. Several data, evaluation, and training details are represented at their exact enclosing directories because their implementations were not sampled.
Main entry points: vl_agent.py LongVT reasoning loop · fsdp_workers.py Distributed workers · data VideoSIAH data · ray_trainer.py PPO orchestration
Components 17
Video agent
- LongVT reasoning loop
custom_rewards/vl_agent.py - Video crop tools
custom_tools/video_tools.py
Training
- Cold-start SFT
recipe - Agentic RL
verl/trainer/main_ppo.py - Reinforcement fine-tuning
recipe
Data and evaluation
- VideoSIAH data
data - Data processing
data/launch - Video reasoning evaluation
lmms_eval_tasks
RL runtime
- PPO orchestration
verl/trainer/ppo/ray_trainer.py - Distributed workers
verl/workers/fsdp_workers.py - Model rollout
verl/workers/rollout - Reward scoring
verl/workers/reward_manager - Worker dispatch
verl/single_controller/base/decorator.py - FSDP checkpoints
verl/utils/checkpoint/fsdp_checkpoint_manager.py - Device support
verl/utils/device.py
Other components
- Video questioner
- Long video
Connections 17
- Video questioner → LongVT reasoning loop: asks about
README.md - Long video → LongVT reasoning loop: provides video
README.md - LongVT reasoning loop → Video crop tools: crops clips
README.md - Video crop tools → LongVT reasoning loop: returns evidence
README.md - LongVT reasoning loop → VideoSIAH data: uses training data
README.md - Data processing → VideoSIAH data: curates data
README.md - VideoSIAH data → Cold-start SFT: trains cold-start
README.md - VideoSIAH data → Agentic RL: trains agent
README.md - VideoSIAH data → Reinforcement fine-tuning: trains refinement
README.md - LongVT reasoning loop → Video reasoning evaluation: benchmarked on
README.md - Agentic RL → PPO orchestration: runs through
README.md - PPO orchestration → Distributed workers: dispatches work
- Distributed workers → Worker dispatch: uses dispatch
verl/workers/fsdp_workers.py - Distributed workers → FSDP checkpoints: loads checkpoints
verl/workers/fsdp_workers.py - Distributed workers → Device support: selects device
verl/workers/fsdp_workers.py - Distributed workers → Model rollout: generates samples
verl/workers/fsdp_workers.py - PPO orchestration → Reward scoring: scores samples