Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

gpt-2

> 编程语言
Open source

Code for the paper "Language Models are Unsupervised Multitask Learners"

25.0K stars0 likes1 views
WebsiteGitHub

About

Code for the paper "Language Models are Unsupervised Multitask Learners"

Status: Archive (code is provided as-is, no updates expected)

gpt-2

Code and models from the paper "Language Models are Unsupervised Multitask Learners".

You can read about GPT-2 and its staged release in our original blog post, 6 month follow-up post, and final post.

We have also released a dataset for researchers to study their behaviors.

* Note that our original parameter counts were wrong due to an error (in our previous blog posts and paper). Thus you may have seen small referred to as 117M and medium referred to as 345M.

Usage

This repository is meant to be a starting point for researchers and engineers to experiment with GPT-2.

For basic information, see our model card.

Some caveats

  • GPT-2 models' robustness and worst case behaviors are not well-understood. As with any machine-learned model, carefully evaluate GPT-2 for your use case, especially if used without fine-tuning or in safety-critical applications where reliability is important.
  • The dataset our GPT-2 models were trained on contains many texts with biases and factual inaccuracies, and thus GPT-2 models are likely to be biased and inaccurate as well.
  • To avoid having samples mistaken as human-written, we recommend clearly labeling samples as synthetic before wide dissemination. Our models are often incoherent or inaccurate in subtle ways, which takes more than a quick read for a human to notice.

Work with us

Please let us know if you’re doing interesting research with or working on applications of GPT-2! We’re especially interested in hearing from and potentially working with those who are studying

  • Potential malicious use cases and defenses against them (e.g. the detectability of synthetic text)
  • The extent of problematic content (e.g. bias) being baked into the models and effective mitigations

Development

See DEVELOPERS.md

Contributors

See CONTRIBUTORS.md

Citation

Please use the following bibtex entry:

@article{radford2019language,
  title={Language Models are Unsupervised Multitask Learners},
  author={Radford, Alec and Wu, Jeff and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya},
  year={2019}
}

Future work

We may release code for evaluating the models on various benchmarks.

We are still considering release of the larger models.

License

Modified MIT

Issues· 197 open

View all issuesOpen on GitHub
  • #396

    Missing Required Dependency

    Updated Dec 30, 2025
  • #395

    .git/hooks/fsmonitor-watchman.sample: Contains several "Uncomment for debugging" comments on lines 21, 56, 101, 110, and 136. While not explicitly "TODO" or "FIXME", these indicate areas where code can be enabled for debugging purposes.

    Updated Dec 30, 2025
  • #394

    .git/hooks/sendemail-validate.sample: Contains several "TODO" comments on lines 22, 27, 35, and 41, instructing the user to replace placeholders with appropriate checks.

    Updated Dec 30, 2025
  • #393

    model_card.md: Discusses "issues relating to potential misuse of the model" and "detection issues" on line 67. This is part of the model's documentation regarding its limitations and potential societal impact.

    Updated Dec 30, 2025
  • #392

    model_card.md: Discusses "issues relating to potential misuse of the model" and "detection issues" on line 67. This is part of the model's documentation regarding its limitations and potential societal impact.

    Updated Dec 30, 2025
  • #391

    domains.txt: Contains "bugguide" on line 74. This appears to be a domain name related to a bug tracking website.

    Updated Dec 30, 2025
  • #389

    G

    Updated Dec 10, 2025
  • #374

    中国的建筑业未来

    Updated Sep 10, 2025
  • #384

    Humanize the paragraph

    Updated Aug 27, 2025
  • #377

    Link in the `Readme` is not working

    Updated Jun 28, 2025

> Tags

Pythonpaper

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言