GPT-Neo: The Open-Source Cure For GPT-3 FOMO

   2021-04-04 10:04

GPT-3 was the largest language model when OpenAI released it last year. Now, Google Brain’s 1.6 trillion parameters language model (as opposed to GPT-3’s 175 billion parameters) has replaced GPT-3 as the largest language model. Both GPT-3 and Google Brain model are transformer-based neural networks.

Developers across the world were waiting for the arrival of GPT-3 with bated breath. But much to their disappointment, and a departure from their earlier signals, OpenAI exclusively sold the source code of GPT-3 to Microsoft. Interestingly, GPT and GPT-2 were open-source projects.

Ever since, the internet hive mind, developers and researchers ached for an open-source version of GPT-3. Now, it looks like their dream has finally come true.

Enter GPT-Neo, the brainchild of EleutherAI.

Connor Leahy, Leo Gao, and Sid Black founded EleutherAI in July 2020. It is a decentralized grassroots collective of volunteer developers, engineers, and researchers focused on AI alignment, scaling, and open-source AI research.

According to EleutherAI’s website, GPT‑Neo is the code name for a family of transformer-based language models loosely styled around the GPT architecture. The stated goal of the project is to replicate a GPT‑3 DaVinci-sized model and open-source it to the public, for free. 

GPT‑Neo is an implementation of model & data-parallel GPT‑2 and GPT‑3-like models, utilizing Mesh Tensorflow for distributed support. The codebase is optimized for TPUs, but also work on GPUs. Interestingly, Leahy had earlier attempted to replicate GPT-2 through Google’s Tensorflow Research Cloud (TFRC) program, which worked out to their advantage while working on GPT-Neo.

The researchers have now announced the release of two mid-sized models in their GPT-Neo library, pre-trained using 1.3 billion and 2.7 billion parameters, a far cry from GPT-3’s 175 billion parameter but in the ballpark of GPT-2 with 1.5 billion parameters.

An EleutherAI researcher tweeted:


GPT-Neo: A GPT-3-Sized Model

The researchers are working on two repositories — GPT-Neo (for training on TPUs) and GPT-NeoX (for training on GPUs)

See Also

The original codebases for GPT-Neo were built on TPUs, Google’s custom AI accelerator chips. The EleutherAI team realised even the generous amount of TPUs provided through TFRC wouldn’t be sufficient to train GPT-Neo. The research work got a huge boost when CoreWeave, a US-based cryptocurrency miner, approached EleutherAI. The former offered EleutherAI team access to its hardware in exchange for an open-source GPT-3-like model. No money changed hands as part of the deal.

While the model released is quite similar to GPT-3, it will differ in terms of the training dataset, refined by extensive bias analysis. The dataset, called The Pile, is an 835GB corpus consisting of 22 smaller datasets combined to ensure broad generalisation abilities. GPT-Neo was trained on The Pile, the weights and configs of which can be freely downloaded here

With the GPT-Neo implementation, researchers were able to make GPT-2 and GPT-3-like models while scaling them up to GPT3 sizes and more, using the mesh-TensorFlow library. 

It includes alternative model architectures and linear attention implementations that should enable scaling up to even larger model sizes & context lengths, including Local attention, Linear attention, Mixture of Experts, Axial Positional embedding and Masked Language Modelling. 

Way Forward

Researchers are now focusing on the development of the GPT-NeoX library using the hardware and compute-capabilities provided by Coreweave. EleutherAI is currently waiting for CoreWeave to finish building the final hardware for training. GPT-Neox will offer features such as 3D parallelism, model structuring and straightforward configuration using various files. 

GPT-NeoX is under active development and will be based on the DeepSpeed library. It is designed to be able to train models in the hundreds of billions of parameters or larger.

Subscribe to our Newsletter

Get the latest updates and relevant offers by sharing your email.

Join Our Telegram Group. Be part of an engaging online community. Join Here.

Original Source

CryptoCurrencyUSDChange 1hChange 24hChange 7d
Bitcoin64,329 0.10 % 3.04 % 10.79 %
Ethereum2,374.3 0.57 % 7.18 % 12.26 %
Binance Coin581.74 0.43 % 8.26 % 43.83 %
XRP1.900 1.25 % 18.01 % 73.49 %
Cardano1.550 2.00 % 17.67 % 23.23 %
Tether1.000 0.08 % 0.07 % 0.10 %
Polkadot43.85 0.06 % 6.35 % 0.98 %
Uniswap35.98 0.38 % 3.84 % 14.75 %
Litecoin276.49 0.57 % 4.71 % 16.39 %
Dogecoin0.07813 2.31 % 10.34 % 30.62 %
Chainlink37.30 0.19 % 12.09 % 7.25 %
Stellar0.6704 0.63 % 8.99 % 24.76 %
Bitcoin Cash817.85 0.67 % 16.77 % 23.24 %
Theta Network12.53 0.64 % 5.40 % 6.94 %
VeChain0.1421 1.71 % 5.32 % 36.45 %
USD Coin1.000 0.03 % 0.15 % 0.03 %
Filecoin164.03 0.04 % 1.51 % 1.09 %
TRON0.1511 0.88 % 13.66 % 20.96 %
Wrapped Bitcoin62,834 0.26 % 4.35 % 7.07 %
EOS7.810 1.06 % 16.45 % 17.27 %