Downloads · 30 days
16
2% of all-time downloads
vasudevgupta/dl-hack-distilgpt2
dl-hack-distilgpt2 is a text generation model from vasudevgupta. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads · 30 days
16
2% of all-time downloads
All-time downloads
773
Public
Repo size
996 MB
Likes
0
Public
Click a slice to open those files.
.bin334 MB · 50%
From the Hugging Face model README
DL research papers Title -> abstract
Using this model
from transformers import pipeline, GPT2LMHeadModel, GPT2Tokenizer
tokenizer = GPT2Tokenizer.from_pretrained("vasudevgupta/dl-hack-distilgpt2")
model = GPT2LMHeadModel.from_pretrained("vasudevgupta/dl-hack-distilgpt2")
agent = pipeline("text-generation", model=model, tokenizer=tokenizer)
print(agent("An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale", max_length=200))