Downloads · 30 days
6.3K
2% of all-time downloads
demo-leaderboard/gpt2-demo
gpt2-demo is a text generation model from demo-leaderboard. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
Downloads · 30 days
6.3K
2% of all-time downloads
All-time downloads
280K
Public
Parameters
137M
1.1 GB on disk
Likes
4
Public
Click a slice to open those files.
.bin548 MB · 50%
From the Hugging Face model README
Test copy of openai-community/gpt2
GPT-2 is a transformers model pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences.
More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token i only uses the inputs from 1 to i but not the future tokens.
This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks. The model is best at what it was pretrained for however, which is generating texts from a prompt.
This is the smallest version of GPT-2, with 124M parameters.