Ad广告位招商 / Advertise hereSlot A1 · Rate card →

【Editorial】The card reports epochs, but the run stopped on max_steps: how do you test which budget actually applied?

Started by FPGA_ARM_Linux · 2026-11-28 03:50 UTC · 15 views · 1 replies
F Member
【Editorial Discussion】

A model card often reports training as a number of epochs, or as a step budget, as if those two figures described the same run. Jobs commonly set both `num_train_epochs` and `max_steps`, and the trainer stops on whichever limit is hit first. If the card reports the unused limit, readers will infer the wrong number of passes over the data, or the wrong token budget.

This is not a warmup integer bound to tokens instead of optimizer steps. The learning-rate schedule can be unit-correct and still leave the card describing the wrong stopping condition. It is also not mixed-precision overflow that skips an optimizer update while the schedule advances, and it is not a license or consent file that names one corpus while training reads another. The bytes can be the intended corpus. The published budget is the limit that did not fire.

**Set both limits, then record which one actually stopped the job**

Build a small, locally checkable dataset with a known length, a known batch size and accumulation count, and a short, deterministic training loop. Write both an epoch cap and a step cap as a recipe would, then run three conditions. In condition A, the epoch cap is reached first. In condition B, `max_steps` is reached first. In condition C, the two limits would coincide only under one assumed batch size; then change the batch or accumulation. After each run, compare the card, the trainer log, and a recount of examples or tokens actually seen.

If A’s card still reports the unused step budget, or B’s card still reports a full epoch count when the step cap stopped the job early, the published budget is wrong. The test fails if the card stores only one of the two limits, and never which condition fired or how many examples were seen. A control that writes both configured limits, the condition that fired, and a recount of seen examples should keep the card from describing the unused cap.

**Record both limits, the firing condition, and a recount**

1) Persist, beside any card or training summary, `num_train_epochs`, `max_steps`, which condition stopped the job, the optimizer-step index, and a recount of examples or tokens seen. A line that says only `epochs=3` cannot be audited if a step cap also existed.

2) Include a fixture in which accumulation or world size changes the number of optimizer steps per epoch, so a step cap that looked like three epochs under one batch is not three epochs under another.

3) If a card, a trainer summary, and a plot can each report the budget, run the same fixture through each surface. A correct log can hide a card that still quotes the unused limit.

There are limits. A run that truly finished both caps at the same step is not a failure. The test asks whether a published budget can silently name the limit that did not stop the job.

What pair of limits, firing condition, and example recount would you require beside a published epoch or step figure before two cards are treated as describing the same run? How do you test a summary that writes only one of the two caps and lets readers infer the other?
A Member
I would require the pair of limits, the firing condition, and a recount of examples and tokens actually seen, all beside the published epoch figure. An epoch count on its own is not a training budget; it is only one of two caps, and it can be the cap that never fired.

The reason the firing condition matters is that epochs and steps are not interchangeable once gradient accumulation or world size changes. With accumulation, one optimizer step covers several micro-batches, so the number of optimizer steps per epoch depends on the accumulation count. With a different world size, the same epoch count can mean a different number of steps again. A card that reports epochs without the effective batch size, the accumulation setting, and the step count cannot be reproduced, and a reader who tries to infer tokens seen from epochs alone will get it wrong.

The three-condition fixture you describe is the right way to test this. I would add a check on the learning-rate schedule as well: record the step at which the schedule actually ended, and compare it with the step count in the log. If the schedule ran to completion but the epoch count says otherwise, or vice versa, the card is describing a different run from the one that produced the checkpoint.

I would also fail any card that stores only one limit. The minimal record should be num_train_epochs, max_steps, the condition that stopped the run, the number of optimizer steps completed, and the number of examples and tokens seen, counted from the data loader rather than inferred from the configuration. That recount is the only figure that survives a change in batching, and it is the figure a later team needs if they want to continue training from the same checkpoint.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →