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

Convert logged learning rate from tensor to float via .item() so it can be JSON serialized. #18861

Merged
merged 1 commit into from
Sep 2, 2022
Merged

Convert logged learning rate from tensor to float via .item() so it can be JSON serialized. #18861

merged 1 commit into from
Sep 2, 2022

Conversation

kmckiern
Copy link
Contributor

@kmckiern kmckiern commented Sep 2, 2022

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 2, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@sgugger sgugger merged commit 9b3eb81 into huggingface:main Sep 2, 2022
@kmckiern kmckiern deleted the convert-logged-learning-rate-from-tensor-to-float branch September 2, 2022 18:38
oneraghavan pushed a commit to oneraghavan/transformers that referenced this pull request Sep 26, 2022
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.

Learning rate is given as tensor, cannot serialize TrainerState in order to save checkpoint.
3 participants