Support VLM Eagle3 Training #141
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODOs:
AI Summary:
This pull request introduces support for Vision-Language Model (VLM) data handling and refactors trainer and data collator imports for better modularity. The main changes include adding new VLM-specific data collators, updating chat template types to support VLM, introducing new model configuration files, and cleaning up unused imports related to trainers and data collators.
Vision-Language Model (VLM) Support:
VLMDataCollatorWithPaddingand supporting tensor padding functions todata_utils.pyfor handling VLM-specific batch data, including images and videos. [1] [2] [3]QWEN3_VLtype and its mapping, enabling VLM-specific system prompts and headers. [1] [2]qwen3-vl-4b-eagle3.jsonandqwen3-vl-4b-eagle3-mrope.json. [1] [2]Trainer and Data Collator Refactoring:
OfflineEagle3Trainer,OnlineEagle3Trainer, andDataCollatorWithPaddingin__init__.pyfiles, replacing them withEagle3TrainerFactoryfor cleaner and more maintainable code. [1] [2] [3] [4] [5]Dataset Builder Modularization:
dataset_buildermodule with factory and builder classes for both online and offline LLM/VLM datasets, improving extensibility and code organization.