MixLoRA-Qwen2VL-80GB: High-Performance Multimodal Training
This model is a 80GB GPU optimized version of MixLoRA-Qwen2VL, trained on 19 diverse multimodal datasets using continuous learning with label-based expert routing.
Model Description
Base Model: Qwen2-VL-7B (7.7B parameters)
Architecture: Conditional Mixture of Adapters (CMOA) with 8 LoRA experts
Training Method: Continuous learning across 19 datasets with label-based expert selection
Total Size: ~7.7B (base) + ~83MB (LoRA adapters)
Expert Selection: Label-based routing (Uni, Syn, Red categories)
Qwen2-VL-7B (Base)
├── Vision Encoder: CLIP-ViT-Large-336
├── MLP Projector: 2-layer with GELU
└── Language Model: Qwen2-7B with 8 LoRA Experts
├── Expert 0, 1: Uni tasks (7 datasets)
├── Expert 3, 4: Syn tasks (6 datasets)
└── Expert 6, 7: Red tasks (6 datasets)
Expert Selection: Based on dataset label (Uni/Syn/Red), automatically routes to appropriate expert pair.
Training Methodology
Continuous Learning Strategy
Dataset 1 (screen2words): Train from base model → Save checkpoint
Dataset 2 (decimer): Load checkpoint → Continue training → Save
Dataset 3-19: Repeat, each building on all previous datasets
This ensures:
Knowledge accumulation across all 19 datasets
No catastrophic forgetting
Each expert specializes in its category (Uni/Syn/Red)
Bug Fixes Applied
8 critical bugs were fixed during development:
HuggingFace Hub version compatibility
TrainerControl initialization
Checkpoint state_dict validation
Resume logic for continuous training
Variable scope issues
Optimizer state handling
Critical: Continuous training checkpoint logic
Critical: Grayscale/BW image processing
See training repository for full bug documentation.
Performance
The model demonstrates strong performance across diverse multimodal tasks:
Visual Question Answering (multiple domains)
Image Captioning
Image Classification
Visual Reasoning
Meme Understanding
Medical Image Analysis
Scientific Reasoning
Specific benchmark scores coming soon
Comparison with Standard Version
Feature
Standard (40GB)
80GB Optimized
Batch Size
4
16
Sequence Length
2048
4096
Training Time
15-20 hours
8-10 hours
Long Context
Good
Excellent
Memory Usage
40GB
80GB
Model Quality
Excellent
Excellent
Use 80GB version if:
You need better long-context understanding
You want faster training/fine-tuning
You have access to 80GB GPUs
Use standard version if:
You have 40GB GPUs
Memory efficiency is priority
Limitations
Trained on English datasets primarily
May have biases present in training data
Optimal for tasks similar to training datasets
Requires ~16GB VRAM for inference (bfloat16)
Training requires 80GB GPU
Citation
If you use this model, please cite the original MixLoRA paper:
bibtex
1@article{shen2024multimodal,
2 title={Multimodal Instruction Tuning with Conditional Mixture of LoRA},
3 author={Shen, Ying and Xu, Zhiyang and Wang, Qifan and Cheng, Yu and Yin, Wenpeng and Huang, Lifu},
4 journal={arXiv preprint arXiv:2402.15896},
5 year={2024}
6}
And the Qwen2-VL paper:
bibtex
1@article{qwen2vl,
2 title={Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution},
3 author={Qwen Team},
4 journal={arXiv preprint},
5 year={2024}
6}
License
This model inherits the license from Qwen2-VL-7B. The LoRA adapters are released under Apache 2.0.
Model Card Authors
sxj1215
Training Details
Trained by: sxj1215
Training Framework: HuggingFace Transformers + PEFT