OpenDCAI/DataFlex
[NeurIPS 2026] DataFlex: A Unified Benchmark and Evaluation Platform for Data-Centric Training of Large Language Models
What it solves
DataFlex addresses the difficulty of reproducing and implementing data-centric training strategies for Large Language Models (LLMs). It provides a unified framework to dynamically manage training data during the optimization process, replacing the need to manually integrate fragmented and often undocumented repositories for data selection, mixing, and reweighting.
How it works
Built as an extension of LLaMA-Factory, DataFlex integrates directly into the LLM training loop to intelligently schedule data. It implements three primary data-centric mechanisms:
- Data Selection: Uses strategies like gradient-based (LESS, NICE), loss-based, or distribution-based (NEAR, TSDS) methods to pick specific samples (e.g., "hard" samples) for training.
- Data Mixture: Dynamically adjusts the ratio of data from different domains during training using methods like DoReMi (offline) or ODM (online).
- Data Reweighting: Adjusts the weight of individual samples during backpropagation to emphasize preferred data using loss-based or batch-aware techniques.
Who it’s for
It is designed for AI researchers and developers who want to improve model performance and experimental reproducibility by applying advanced data-centric training techniques without building the infrastructure from scratch.
Highlights
- LLaMA-Factory Integration: Acts as a drop-in replacement that is fully compatible with LLaMA-Factory.
- Unified Implementation: Consolidates multiple data-centric algorithms (LESS, NICE, DoReMi, ODM, etc.) into one platform.
- Scalability: Supports gradient computation under DeepSpeed ZeRO-3 for training larger models.
- Extensible: Includes a registry system and base class interfaces for adding new selectors, mixers, or weighters.
Related
- Project
- Project
- Project
- Project
- Project