Last active
November 8, 2019 21:03
-
-
Save caleb-kaiser/ac26dfbcbcc67b4c5581415087118bda 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
# predictor.py | |
from transformers import GPT2Tokenizer, GPT2LMHeadModel | |
# download the pretrained DistilGPT2 model and set it to evaluation | |
model = GPT2LMHeadModel.from_pretrained("distilgpt2") | |
model.eval() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment