Skip to content
llmmodels
Chat LLMOpen weightsHistorical

GPT-2 Medium (FlashAttention)

by Stanford University · May 27, 2022

GPT-2 Medium (FlashAttention) is an open-weight chat llm from Stanford University, released May 27, 2022. It has 355M parameters.

Released
May 27, 2022
Type
Chat LLM
Parameters
355M
Context window
—
Max output
—
Input
text
Output
text
Weights
Open weights
License
Open (permissive)
Knowledge cutoff
—
Status
Historical
Training compute
8.9e+20 FLOP
Training data
10.1B tokens/words

About GPT-2 Medium (FlashAttention)

Transformers are slow and memory-hungry on long sequences, since the time and memory complexity of self-attention are quadratic in sequence length. Approximate attention methods have attempted to address this problem by trading off model quality to reduce the compute complexity, but often do not achieve wall-clock speedup. We argue that a missing principle is making attention algorithms IO-aware -- accounting for reads and writes between levels of GPU memory.

How to run GPT-2 Medium (FlashAttention)

GPT-2 Medium (FlashAttention) is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 355M parameters it needs roughly 1 GB of memory at 4-bit quantization.

GPT-2 Medium (FlashAttention) vs alternatives

Alternatives to GPT-2 Medium (FlashAttention)
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
opt-125mopenMetaMay 2022—————
OPT-350MopenMetaJun 2022350M————
reformer-crime-and-punishmentopenGoogle DeepMindMar 2022—————
reformer-enwik8openGoogle DeepMindMar 2022—————
DialoGPT-mediumopenMicrosoftMar 2022—————
codegen-350M-monoopenSalesforceApr 2022—————
biogptopenMicrosoftNov 2022—————
ctrlopenSalesforceMar 2022—————

More models from Stanford University

All Stanford University models →
ModelReleasedParamsContextInput $/1MOutput $/1M
GPT3-2.7B (FlashAttention-2)Jul 20232.7B———
DPO on Pythia-2.8BMay 20232.8B———
minChatGPTopenMar 20231.6B———
AlpacaopenMar 20237B———
Hyena 1.3BFeb 20231.3B———
Hyena-2 153MopenFeb 2023153M———
Hybrid H3-2.7BopenDec 20222.7B———
Hybrid H3-125MopenDec 2022125M———

Frequently asked questions

Who made GPT-2 Medium (FlashAttention)?

GPT-2 Medium (FlashAttention) was developed by Stanford University (United States of America,United States of America). It was released on May 27, 2022.

Is GPT-2 Medium (FlashAttention) open source?

Yes. GPT-2 Medium (FlashAttention)'s weights are publicly available, so you can download and run it yourself.

How many parameters does GPT-2 Medium (FlashAttention) have?

GPT-2 Medium (FlashAttention) has 355M parameters.

Sources: epoch · paper. Last updated 2026-11-22.