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

Stop using a deprecated AdamW implementation #262

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

Conversation

RedTachyon
Copy link

According to the transformers library, transformers.AdamW is deprecated, and instead users should use torch.optim.AdamW

This PR changes the import in this exact way, so that AdamW is still imported to the global namespace (so no other code changes are necessary)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Copy link
Member

@lewtun lewtun left a comment

Choose a reason for hiding this comment

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

Thanks you very much for working on this @RedTachyon! This import also occurs in:

  • chapter3/4.mdx
  • chapter7/4.mdx

Would you be happy to make the changes here, as well as for all the translated sections (e.g. de/chapter3/2.mdx etc)?

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.

3 participants