gpt2

Try Try

gpt2 has 137M parameters (137M active per token) and takes 548 MB on disk. See where its parameters live, layer by layer, and what hardware it needs.

At a glance

openai-community/gpt2
Repo createdMar 2, 2022updated Feb 19, 2024
Model typeDenseFull attention (MHA)
InputsText
Total parameters137M
Active per token137M100% of the model
ExpertsNone (dense)
Max context (from config)1K tokens
Layers12
On disk548 MB1 file
PrecisionFP32 (100%)
QuantizationNoneoriginal precision (FP32)
Fewest GPUs1× RTX 4060a single 8 GB card · weights only
Licensemit
GitHubopenai/gpt-2