HubCloneHubClone

gpt2-large

gpt2-large is a decoder-only language model tuned for instruction following, multi-turn chat, coding and tool use. It was released by openai-community with 3.0B parameters.

Model details

Model description

  • Developed by: openai-community
  • Model type: llama (Text Generation)
  • Parameters: 3.0B
  • Language(s): English (primary), multilingual
  • License: cc-by-4.0

Model sources

  • Repository: openai-community/gpt2-large
  • Report: coming soon

Uses

Direct use

gpt2-large can be used out of the box for text generation. Typical uses include prototyping, research on reasoning and instruction following, and building applications on top of the released weights.

Out-of-scope use

The model should not be used to generate content that violates the license, to impersonate real people, or for high-stakes decisions without human review.

How to use

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "openai-community/gpt2-large"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")

messages = [{"role": "user", "content": "Give me a short introduction to large language models."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=512)
print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))

Training data

The model was trained on a mixture of 36T tokens of licensed, publicly available and synthetic data, followed by supervised fine-tuning and preference optimization. Data was filtered for quality, deduplicated and decontaminated against the evaluation sets listed below.

Evaluation

Benchmarkgpt2-largePrevious release
MMLU-Pro47.741.9
GPQA Diamond48.241.4
LiveCodeBench v788.782.0
AIME 202663.360.1
IFEval91.183.8

Scores are self-reported by the authors with greedy decoding unless stated otherwise.

Limitations and bias

Like other models of its class, gpt2-large can produce inaccurate or biased outputs. Evaluate it on your own use case before deploying it.

Citation

@misc{openaicommunity2026gpt2large,
  title  = {gpt2-large},
  author = {openai-community Team},
  year   = {2026},
  note   = {Model card}
}