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.
- Provider
- Stanford University
- 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
- GPT-2 Medium (FlashAttention) vs opt-125m
- GPT-2 Medium (FlashAttention) vs OPT-350M
- GPT-2 Medium (FlashAttention) vs reformer-crime-and-punishment
- GPT-2 Medium (FlashAttention) vs reformer-enwik8
- GPT-2 Medium (FlashAttention) vs DialoGPT-medium
- GPT-2 Medium (FlashAttention) vs codegen-350M-mono
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| opt-125mopen | Meta | May 2022 | — | — | — | — | — |
| OPT-350Mopen | Meta | Jun 2022 | 350M | — | — | — | — |
| reformer-crime-and-punishmentopen | Google DeepMind | Mar 2022 | — | — | — | — | — |
| reformer-enwik8open | Google DeepMind | Mar 2022 | — | — | — | — | — |
| DialoGPT-mediumopen | Microsoft | Mar 2022 | — | — | — | — | — |
| codegen-350M-monoopen | Salesforce | Apr 2022 | — | — | — | — | — |
| biogptopen | Microsoft | Nov 2022 | — | — | — | — | — |
| ctrlopen | Salesforce | Mar 2022 | — | — | — | — | — |
More models from Stanford University
All Stanford University models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| GPT3-2.7B (FlashAttention-2) | Jul 2023 | 2.7B | — | — | — |
| DPO on Pythia-2.8B | May 2023 | 2.8B | — | — | — |
| minChatGPTopen | Mar 2023 | 1.6B | — | — | — |
| Alpacaopen | Mar 2023 | 7B | — | — | — |
| Hyena 1.3B | Feb 2023 | 1.3B | — | — | — |
| Hyena-2 153Mopen | Feb 2023 | 153M | — | — | — |
| Hybrid H3-2.7Bopen | Dec 2022 | 2.7B | — | — | — |
| Hybrid H3-125Mopen | Dec 2022 | 125M | — | — | — |
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.