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

fix param overwrite problem in saver_mcore #1351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Force1ess
Copy link

As shown in the images below, I found that the following four arguments are being wrongly overwritten in tools.checkpoint.saver_mcore.save_checkpoint:

  • main_params_dtype
  • main_grads_dtype
  • exp_avg_dtype
  • exp_avg_sq_dtype

This issue prevents these arguments from passing the validation performed by the validate_args function. To resolve this, I added them to the args_to_keep list within the save_checkpoint function.

Supporting Images:
image
image

If any additional details or discussions are required, feel free to reach out.

Thank you for your time and feedback!

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.

1 participant