SkillOpt icon indicating copy to clipboard operation
SkillOpt copied to clipboard

question about train config

Open three-watersss opened this issue 5 months ago • 2 comments

in config/searchqa/default.yaml,train_size is 400,epoch is 4,batch_size is 40 ,so the step is 4*(400/40)=40,but docs/guide/first_experiments.md note that searchqa train process will cost just 30 min and the stop num is 8. So what is the real default config of searchqa?

three-watersss avatar Jun 22 '26 07:06 three-watersss

The YAML config is the authoritative default; the console snippet in the doc is an illustrative mock, and its numbers don't correspond to the shipped defaults.

  • configs/searchqa/default.yaml: train_size: 400, batch_size: 40, and num_epochs: 4 inherited from configs/_base_/default.yaml → 10 steps/epoch × 4 epochs = 40 steps, exactly as you computed.
  • The [Step 1/8] output in docs/guide/first-experiment.md also shows 20-item rollouts and lr=8, neither of which matches the defaults (batch_size: 40, learning_rate: 4) — it's a made-up example, not a trace of a default run. The "~30 min" figure is a rough order of magnitude that depends heavily on backend latency and workers.

So: real default = 40 gate-evaluated steps; trust the YAML over the doc snippet.

LESdylan avatar Jul 07 '26 08:07 LESdylan

Thanks, and thanks to @LESdylan for the detailed answer. To confirm: configs/searchqa/default.yaml is authoritative. With train_size: 400, batch_size: 40 and the inherited num_epochs: 4, a default run is 40 steps, as you calculated. The illustrative console output and the "~30 min" estimate that caused the confusion no longer appear in the current docs/guide/first-experiment.md. Wall-clock time depends mainly on backend latency and concurrency. Please let us know if anything still looks inconsistent.

Yif-Yang avatar Nov 04 '26 09:11 Yif-Yang