mirror of
https://github.com/huggingface/lerobot.git
synced 2026-07-30 21:19:40 +00:00
1fe58f2d3a
is_saving_step was the only step-frequency check without a `> 0` guard, so save_freq=0 raised ZeroDivisionError from `step % 0` on the first step. Route the decision through a should_save_checkpoint helper that treats a non-positive save_freq as "save only the final checkpoint", matching how log_freq/eval_freq handle non-positive values. Co-authored-by: Steven Palma <imstevenpmwork@ieee.org>