feat(multimodal): add COINCIDE selector and improve ICONS training - #65
Merged
Merged
Conversation
Add the COINCIDE selector, component registration, and selection configs. Update ICONS selection and DeepSpeed batch device handling. Add full fine-tuning configs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
概述
新增 COINCIDE 在线动态数据选择器,通过概念与技能特征聚类、基于迁移性与密度的采样预算分配,以及簇内贪心 MMD 采样,为多模态指令微调选择训练子集。COINCIDE 论文(arXiv:2406.10995)
同时,调整 ICONS 在 DeepSpeed ZeRO-3 下的梯度采集、设备放置与分布式同步逻辑,并补充 LoRA、全参数微调及 SFT 示例配置。
主要改动
src/dataflex/train/selector/coincide_selector.pysrc/dataflex/train/selector/icons_selector.pysrc/dataflex/train/selector/__init__.pysrc/dataflex/configs/components.yamlcoincide组件及参数配置examples/train_lora/selectors/coincide.yamlexamples/train_lora/selectors/icons.yamlexamples/train_full/selectors/coincide.yamlexamples/train_full/selectors/icons.yamlexamples/train_full/sft/multimodal_fullsft.yaml使用方式
COINCIDE LoRA 微调
COINCIDE 全参数微调
ICONS 全参数微调