2U1/Qwen-VL-Series-Finetune

An open-source implementaion for fine-tuning Qwen-VL series by Alibaba Cloud.

What it solves

This project provides a comprehensive toolkit for fine-tuning the Qwen-VL series of vision-language models, including Qwen2-VL, Qwen2.5-VL, Qwen3-VL, and Qwen3.5. It simplifies the process of adapting these models to specific tasks, supporting various training methods from full fine-tuning to parameter-efficient techniques like LoRA and QLoRA.

How it works

The repository contains scripts that leverage HuggingFace and the Liger-Kernel for memory-efficient training. It supports multiple training paradigms, including Supervised Fine-Tuning (SFT), Direct Preference Optimization (DPO), and Group Relative Policy Optimization (GRPO). The system handles mixed-modality datasets (images and videos) and provides specific formatting for reasoning-based models to ensure training matches the model's inference-time chat templates.

Who it’s for

It is designed for AI researchers and developers who want to customize Qwen-VL models for domain-specific visual understanding, video analysis, or reasoning tasks.

Highlights

  • Diverse Training Methods: Supports full fine-tuning, LoRA, QLoRA, DPO, and GRPO.
  • Multimodal Support: Capable of training on single-image, multi-image, and video datasets.
  • Reasoning Optimization: Specialized support for reasoning-trace training for Qwen3-VL-Thinking and Qwen3.5 models.
  • Efficiency Tools: Integrates Liger-Kernel and DeepSpeed (Zero2/Zero3) to reduce memory usage and increase speed.
  • Flexible Freezing: Options to freeze the LLM, vision tower, or projector independently, or unfreeze only the top-k layers.
  • Classification Support: Includes scripts for classification fine-tuning with optional MLP layers.

Related

  • Project
  • Dispatch
  • Project
  • Dispatch
  • Dispatch