Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkpoint on final step of training even when it doesn't coincide with save_freq. #284

Merged

Conversation

alexander-soare
Copy link
Collaborator

What this does

^

How it was tested / how to checkout and try

I ran training with 10 offline steps (and save_freq > 10) and verified that the checkpoint was saved.

JOB_NAME=test

python lerobot/scripts/train.py \
    hydra.job.name=$JOB_NAME \
    hydra.run.dir=outputs/train/$(date +'%Y-%m-%d/%H-%M-%S')_${JOB_NAME} \
    env=pusht \
    policy=diffusion \
    training.save_checkpoint=true \
    training.offline_steps=10 \
    training.save_freq=20000 \
    training.eval_freq=10000 \
    training.log_freq=50 \
    eval.n_episodes=50 \
    eval.batch_size=50 \
    wandb.enable=false \
    wandb.disable_artifact=true \
    device=cuda \
    use_amp=true

Copy link
Contributor

@marinabar marinabar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me !

@alexander-soare alexander-soare merged commit 9aa4cdb into huggingface:main Jun 20, 2024
5 checks passed
@alexander-soare alexander-soare deleted the checkpoint_on_final_step branch June 20, 2024 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants