Views
No views yet
Qwen/Qwen2.5-VL-7B-Instruct on document, infographic, and chart visual question answering using TRL SFTTrainer with QLoRA.| Component | Detail |
|---|---|
| Base Model | Qwen/Qwen2.5-VL-7B-Instruct |
| Method | SFT + QLoRA (r=16, alpha=32) |
| Dataset | HuggingFaceM4/the_cauldron (docvqa + chartqa + ai2d) - ~50K samples |
| Epochs | 3 |
| Learning Rate | 1e-4 (LoRA), cosine schedule |
| Warmup | 3% of steps |
| Batch Size | 2 per device x 8 grad accum = 16 effective |
| Precision | bf16, 4-bit NF4 quantization |
| max_pixels | 1280x28x28 (~1M pixels for high-res docs) |
| Reference | Chart-RVR (arxiv:2510.10973) + TRL v1.2.0 SFT VLM docs |
1pip install torch transformers trl datasets peft bitsandbytes accelerate trackio qwen-vl-utils
2python train.py