Quick Start
About 103 wordsLess than 1 minute
2025-06-30
The launch command is similar to LlamaFactory. Below is an example using a loss weighter:
FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/weighters/loss.yamlUnlike vanilla LlamaFactory, your .yaml config file must include DataFlex-specific parameters:
### dynamic_train
train_type: dynamic_weight
components_cfg_file: src/dataflex/configs/components.yaml
component_name: loss
warmup_step: 1
num_train_epochs: 1.0
train_step: 0 # set positive to fix total steps and override num_train_epochsFor multi-epoch runs, set num_train_epochs: N and keep train_step: 0. warmup_step is a global step threshold and does not reset each epoch.

