Skip to content

Commit

Permalink
updated with pull requests, fixed logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkemgoknar committed Dec 21, 2020
1 parent af3bab1 commit 898c902
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ def train():
tokenizer_class = GPT2Tokenizer if "gpt2" in args.model_checkpoint else OpenAIGPTTokenizer # cant use Autotokenizer because checkpoint could be a Path
tokenizer = tokenizer_class.from_pretrained(args.model_checkpoint)


model_class = GPT2DoubleHeadsModel if "gpt2" in args.model_checkpoint else OpenAIGPTDoubleHeadsModel
model = model_class.from_pretrained(args.model_checkpoint)
model.to(args.device)
Expand Down

0 comments on commit 898c902

Please sign in to comment.