Created
May 9, 2021 08:22
-
-
Save prakhar21/c5fc81970915f2987ef4b19d0f7255c9 to your computer and use it in GitHub Desktop.
gptneo train
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
from happytransformer import HappyGeneration, GENTrainArgs | |
gpt_neo = HappyGeneration("GPT-Neo", "EleutherAI/gpt-neo-125M") | |
train_args = GENTrainArgs(num_train_epochs=1, learning_rate=2e-05, batch_size=2) | |
gpt_neo.train("train.txt", args=train_args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment