History2.5 kB
| 1 | # gpt2-large |
| 2 | |
| 3 | **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. |
| 4 | |
| 5 | ## Model details |
| 6 | |
| 7 | ### Model description |
| 8 | |
| 9 | - **Developed by:** openai-community |
| 10 | - **Model type:** llama (Text Generation) |
| 11 | - **Parameters:** 3.0B |
| 12 | - **Language(s):** English (primary), multilingual |
| 13 | - **License:** cc-by-4.0 |
| 14 | |
| 15 | ### Model sources |
| 16 | |
| 17 | - **Repository:** `openai-community/gpt2-large` |
| 18 | - **Report:** coming soon |
| 19 | |
| 20 | ## Uses |
| 21 | |
| 22 | ### Direct use |
| 23 | |
| 24 | 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. |
| 25 | |
| 26 | ### Out-of-scope use |
| 27 | |
| 28 | 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. |
| 29 | |
| 30 | ## How to use |
| 31 | |
| 32 | ```python |
| 33 | from transformers import AutoModelForCausalLM, AutoTokenizer |
| 34 | |
| 35 | model_id = "openai-community/gpt2-large" |
| 36 | tokenizer = AutoTokenizer.from_pretrained(model_id) |
| 37 | model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto") |
| 38 | |
| 39 | messages = [{"role": "user", "content": "Give me a short introduction to large language models."}] |
| 40 | inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to(model.device) |
| 41 | outputs = model.generate(inputs, max_new_tokens=512) |
| 42 | print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True)) |
| 43 | ``` |
| 44 | |
| 45 | ## Training data |
| 46 | |
| 47 | 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. |
| 48 | |
| 49 | ## Evaluation |
| 50 | |
| 51 | | Benchmark | gpt2-large | Previous release | |
| 52 | | --- | --- | --- | |
| 53 | | MMLU-Pro | **47.7** | 41.9 | |
| 54 | | GPQA Diamond | **48.2** | 41.4 | |
| 55 | | LiveCodeBench v7 | **88.7** | 82.0 | |
| 56 | | AIME 2026 | **63.3** | 60.1 | |
| 57 | | IFEval | **91.1** | 83.8 | |
| 58 | |
| 59 | Scores are self-reported by the authors with greedy decoding unless stated otherwise. |
| 60 | |
| 61 | ## Limitations and bias |
| 62 | |
| 63 | Like other models of its class, gpt2-large can produce inaccurate or biased outputs. Evaluate it on your own use case before deploying it. |
| 64 | |
| 65 | ## Citation |
| 66 | |
| 67 | ```bibtex |
| 68 | @misc{openaicommunity2026gpt2large, |
| 69 | title = {gpt2-large}, |
| 70 | author = {openai-community Team}, |
| 71 | year = {2026}, |
| 72 | note = {Model card} |
| 73 | } |
| 74 | ``` |