Quick Start
About 117 wordsLess than 1 minute
2025-06-30
The launch command is similar to LlamaFactory. Below is an example using LESS:
FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/selectors/less.yamlUnlike vanilla LlamaFactory, your .yaml config file must include DataFlex-specific parameters:
### dynamic_train
train_type: dynamic_select
components_cfg_file: src/dataflex/configs/components.yaml
component_name: less
warmup_step: 4
update_step: 3
update_times: 2
num_train_epochs: 1.0
train_step: 0
eval_dataset: alpaca_zh_demoupdate_times is the number of dynamic selections per Flex epoch. Use num_train_epochs: 1.0 for one Flex epoch; use num_train_epochs: N with train_step: 0 for multi-epoch runs. If train_step > 0, it fixes the total number of steps and overrides num_train_epochs.

