Created
July 17, 2020 17:38
-
-
Save prateekjoshi565/ddd5a70a00d77a28ca013a70d9732ad3 to your computer and use it in GitHub Desktop.
This file contains 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
# optimizer from hugging face transformers | |
from transformers import AdamW | |
# define the optimizer | |
optimizer = AdamW(model.parameters(), | |
lr = 1e-5) # learning rate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment