Installation
About 161 wordsLess than 1 minute
2025-06-09
Run the following commands to install:
git clone https://github.com/OpenDCAI/DataFlex.git
cd DataFlex
pip install -e .
pip install llamafactoryUsage Example
The training command is very similar to LlamaFactory. Below is an example using LESS, refer to the paper for details https://arxiv.org/abs/2402.04333:
FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/selectors/less.yamlNote: Unlike standard LlamaFactory, your .yaml configuration file must include DataFlex-specific parameters in addition to LlamaFactory's standard training parameters.
Integration with LlamaFactory
DataFlex is fully compatible with LlamaFactory's configuration and usage:
- Configuration Compatibility: Add DataFlex parameters on top of LlamaFactory configuration
- Consistent Commands: Use
dataflex-cliinstead ofllamafactory-cli - Feature Preservation: Supports all original LlamaFactory functionality
- Seamless Switching: Can fallback to original training mode with
train_type: static
This design ensures users can progressively adopt DataFlex functionality without major modifications to existing workflows.

