From 8149c4ab13a924ac8a8c5074a4b8b0ea16b463a9 Mon Sep 17 00:00:00 2001 From: zzy1127 <1726073424@qq.com> Date: Mon, 29 Sep 2025 11:48:32 +0800 Subject: [PATCH] Fix YAML configuration examples in documentation - Fix YAML syntax errors in mixer and weighter quickstart guides - Update configuration examples for both English and Chinese docs - Ensure consistency with actual YAML schema requirements --- docs/en/notes/guide/mixer/quickstart.md | 2 -- docs/en/notes/guide/weighter/quickstart.md | 7 +++---- docs/zh/notes/guide/mixer/quickstart.md | 2 -- docs/zh/notes/guide/weighter/quickstart.md | 7 +++---- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/docs/en/notes/guide/mixer/quickstart.md b/docs/en/notes/guide/mixer/quickstart.md index 7e902a8..0e404ae 100644 --- a/docs/en/notes/guide/mixer/quickstart.md +++ b/docs/en/notes/guide/mixer/quickstart.md @@ -23,6 +23,4 @@ component_name: random warmup_step: 100 update_step: 200 update_times: 3 - -eval_dataset: mmlu_eval ``` \ No newline at end of file diff --git a/docs/en/notes/guide/weighter/quickstart.md b/docs/en/notes/guide/weighter/quickstart.md index 5643bb0..69fa692 100644 --- a/docs/en/notes/guide/weighter/quickstart.md +++ b/docs/en/notes/guide/weighter/quickstart.md @@ -17,10 +17,9 @@ Unlike vanilla LlamaFactory, your `.yaml` config file must include **DataFlex-sp ```yaml ### dynamic_train -train_type: dynamic_weight +train_type: dynamic_weight components_cfg_file: src/dataflex/configs/components.yaml component_name: loss -warmup_step: 200 -update_step: 400 -update_times: 5 +warmup_step: 1 +train_step: 3 # total train steps (including warmup) ``` \ No newline at end of file diff --git a/docs/zh/notes/guide/mixer/quickstart.md b/docs/zh/notes/guide/mixer/quickstart.md index 9bc36e3..ca05ef3 100644 --- a/docs/zh/notes/guide/mixer/quickstart.md +++ b/docs/zh/notes/guide/mixer/quickstart.md @@ -23,6 +23,4 @@ component_name: random warmup_step: 100 update_step: 200 update_times: 3 - -eval_dataset: mmlu_eval ``` \ No newline at end of file diff --git a/docs/zh/notes/guide/weighter/quickstart.md b/docs/zh/notes/guide/weighter/quickstart.md index 2e4bf4b..8c09ef0 100644 --- a/docs/zh/notes/guide/weighter/quickstart.md +++ b/docs/zh/notes/guide/weighter/quickstart.md @@ -17,10 +17,9 @@ FORCE_TORCHRUN=1 DISABLE_VERSION_CHECK=1 dataflex-cli train examples/train_lora/ ```yaml ### dynamic_train -train_type: dynamic_weight +train_type: dynamic_weight components_cfg_file: src/dataflex/configs/components.yaml component_name: loss -warmup_step: 200 -update_step: 400 -update_times: 5 +warmup_step: 1 +train_step: 3 # 总训练步数(包括warm_up) ``` \ No newline at end of file