快速开始
97 字小于 1 分钟
2025-06-30
启动命令类似于 LlamaFactory。以下是使用损失加权器的示例:
FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/weighters/loss.yaml与普通的 LlamaFactory 不同,您的 .yaml 配置文件必须包含 DataFlex 特定的参数:
### dynamic_train
train_type: dynamic_weight
components_cfg_file: src/dataflex/configs/components.yaml
component_name: loss
warmup_step: 1
train_step: 3 # 总训练步数(包括warm_up)
