10000
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Remove offline training, refactor train.py
and logging/checkpointing
#670
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
Merged
aliberts
merged 29 commits into
main
from
user/aliberts/2025_01_31_safetensors_training_state
Feb 11, 2025
Merged
Remove offline training, refactor train.py
and logging/checkpointing
#670
aliberts
merged 29 commits into
main
from
user/aliberts/2025_01_31_safetensors_training_state
Feb 11, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
training_state
serialization to safetensors
training_state
serialization to safetensorsLogger
…_31_safetensors_training_state
train.py
and logging/checkpointingtrain.py
and logging/checkpointing
Cadene
approved these changes
Feb 10, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful
Could you remove all appearance of ema
?
There were added by default
Co-authored-by: Remi <remi.cadene@huggingface.co>
aliberts
added a commit
that referenced
this pull request
Feb 12, 2025
JIy3AHKO
pushed a commit
to vertix/lerobot
that referenced
this pull request
Feb 27, 2025
huggingface#670) Co-authored-by: Remi <remi.cadene@huggingface.co>
JIy3AHKO
pushed a commit
to vertix/lerobot
that referenced
this pull request
Feb 27, 2025
Sign up for free
to join this conversation on
5F77
GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this does
train.py
script: online training will be handled by the training scripts from Port HIL SERL #644.offline
and.online
are removed fromTrainPipelineConfig
. To set the number of offline training step, simply use--steps
:wandb_utils.py
and turnsLogger
intoWandBLogger
to remove responsibilities from this class so that it only manages wandb stuff.training_state
serialization withtorch.save/load
tosafetensors.save_file/load_file
. We shouldn't usetorch.load()
for this and in fact it breaks in 2.6 due toweights_only=True
by default.train_utils.py
to handle training checkpoints logic (including training state).random_utils.py
.forward()
output format for clarity. It now returns atuple[Tensor, dict | None]
instead of just adict
, the first element being the loss:How it was tested
Adds the following tests:
tests/test_schedulers.py
tests/test_optimizers.py
tests/test_train_utils.py
tests/test_random_utils.py
tests/test_io_utils.py
How to checkout & try? (for the reviewer)
Examples: