快速开始
142 字小于 1 分钟
2025-06-30
启动命令类似于 LlamaFactory。以下是使用 LESS 的示例:
FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/selectors/less.yaml与普通的 LlamaFactory 不同,您的 .yaml 配置文件必须包含 DataFlex 特定的参数:
### 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 表示每个 Flex epoch 内的动态选择次数。单个 Flex epoch 使用 num_train_epochs: 1.0;多 epoch 使用 num_train_epochs: N 且保持 train_step: 0。若 train_step > 0,则固定总步数并覆盖 num_train_epochs。

