GPT-J (commonly GPT-J-6B) is a 6-billion-parameter autoregressive language model released by EleutherAI in June 2021 under the Apache 2.0 license.1 Developed primarily by Ben Wang with Aran Komatsuzaki, it was at release the largest publicly available dense Transformer language model with open weights, and it became a standard base model for research and fine-tuning during the period before LLaMA and other later open releases.

Architecture and training

GPT-J is a decoder-only Transformer broadly following the GPT-2 and GPT-3 design, with two notable departures. First, it uses rotary position embeddings (RoPE) in place of learned absolute positions, making it one of the earliest large models to adopt the technique later used by GPT-NeoX-20B, PaLM, and LLaMA. Second, its attention and feed-forward sublayers are computed in parallel within each block rather than sequentially, a change made for training throughput that PaLM later adopted at much larger scale. The model has 28 layers, a 4,096-dimensional hidden state, a 2,048-token context window, and the GPT-2 tokenizer vocabulary.1

Training used Mesh Transformer JAX, a codebase written by Wang for TPU pods, on hardware provided through Google's TPU Research Cloud. The training corpus was the Pile, EleutherAI's roughly 825 GiB curated text dataset spanning web text, academic papers, code, and other sources.2 The model saw approximately 400 billion tokens, a figure the developers reported; no instruction tuning or preference-based post-training was applied.

Release and reception

At release, EleutherAI reported that GPT-J's zero-shot performance was roughly comparable to the 6.7-billion-parameter Curie tier of GPT-3, and its code-heavy training data made it comparatively strong at program synthesis for its size.1 Because OpenAI's GPT-3 was available only through a gated API, GPT-J's permissive license and downloadable weights made it a popular substrate for fine-tuned chatbots, classifiers, and commercial products, distributed largely through Hugging Face.

Legacy

GPT-J sits between EleutherAI's earlier GPT-Neo models (up to 2.7 billion parameters, March 2021) and the larger GPT-NeoX-20B of early 2022.3 Together with the later Pythia suite, these releases established EleutherAI's role in open-weight model replication, prefiguring corporate open releases such as OPT, BLOOM, and LLaMA. Fine-tuned derivatives were numerous; Databricks' original Dolly model (March 2023) was a GPT-J fine-tune, and the model remained a common baseline in interpretability and evaluation research.

References


  1. Wang, B. and Komatsuzaki, A., "GPT-J-6B: A 6 Billion Parameter Autoregressive Language Model," Mesh Transformer JAX repository, June 2021. ↩↩↩

  2. Gao, L. et al., "The Pile: An 800GB Dataset of Diverse Text for Language Modeling," arXiv:2101.00027. ↩

  3. Black, S. et al., "GPT-NeoX-20B: An Open-Source Autoregressive Language Model," arXiv:2204.06745. ↩