gpt2
transformerspytorchtfjaxtfliterustonnxsafetensorsgpt2text-generationexbertendoi:10.57967/hf/0039license:mittext-generation-inferenceendpoints_compatibledeploy:azureregion:us
Context
1,024 tokens
Max Output
512 tokens
Released
3/2/2022
Providers
1
Overview
gpt2 is a large language model developed by openai-community. It supports 1,024 tokens context and is available through 1 API provider(s).
Key Highlights
- Unknown / Not disclosed
Brand
openai-community
Community
View all models, pricing and details from openai-community.
Specifications
Basic Information
| Model | gpt2 |
| Brand | openai-community |
| Version | 2 |
| Model Type | transformers |
| Status | stable |
| Released | 3/2/2022 |
| Popularity | 15577300 |
Architecture
| Parameter Size | 137.0M |
| Architecture Type | gpt2 |
| Attention Mechanism | causal-mha |
| Tokenizer | Unknown / Not disclosed |
| Vocabulary Size | Unknown / Not disclosed |
Context & I/O
| Context | 1,024 tokens |
| Max Output | 512 tokens |
| Modalities | Unknown / Not disclosed |
| Languages | en |
Capabilities
| Vision | No |
| Audio | No |
| Reasoning | No |
| Function Call | No |
| MCP | No |
| JSON Mode | No |
| Embedding | No |
Training Data
| Training Dataset | Unknown / Not disclosed |
| Estimated Data Size | Unknown / Not disclosed |
| Knowledge Cutoff | Unknown / Not disclosed |
Inference & Deployment
| API Access | Yes |
| VRAM Estimate | Unknown / Not disclosed |
| Quantization Support | Unknown / Not disclosed |
| Hardware Requirements | Unknown / Not disclosed |
Safety & Compliance
| Safety Evaluations | Unknown / Not disclosed |
| Content Policy | Unknown / Not disclosed |
| Region Restrictions | Unknown / Not disclosed |
License & Pricing
| License | mit |
| Commercial Use | Unknown / Not disclosed |
| Open Source | Yes |
Provider & Pricing
| Provider | Input | Output | Cache | Batch | Website |
|---|---|---|---|---|---|
| openai-community | $0.000/1M | $0.000/1M | - | - | Visit Website |
Price Changes
No recorded price changes.
Benchmarks
No benchmark data available.
Changelog
- Page created / data imported9/23/2026
- Last updated9/23/2026
Frequently Asked Questions
What is gpt2?
gpt2 is a large language model developed by openai-community.
Who developed gpt2?
gpt2 was developed by openai-community. You can learn more on the brand page or official website.
What is the context length of gpt2?
gpt2 supports up to 1,024 tokens of context.
How much does gpt2 API cost?
API pricing for gpt2 starts at $0.000/1M per 1M input tokens and $0.000/1M per 1M output tokens. See the pricing table above for provider-specific rates.