Model reference · open weights
gpt-neox is an open-weight language model from EleutherAI. gpt-neox-20b (FP16) weighs 41.3 GB; the smallest configuration that runs it is 2× RTX 5090 32 GB.
Summary of the EleutherAI/gpt-neox-20b model card, 2026-10-01
What it is
| Released by | EleutherAI |
|---|---|
| Released | 2022-04-07 |
| Parameters | 20.7B |
| VRAM | 41.3 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory |
|---|---|---|---|
| 2K each | |||
| RTX 3060 12 GB … RTX 5090 32 GB 5 smaller cards | — | — | |
| L40S 48 GB | — | 1K | 44.0 GB |
| A100 80 GB | 16 | all 2K | 78.2 GB |
| H100 80 GB | 14 | all 2K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 21 | all 2K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 27 | all 2K | 107 GB |
| H200 141 GB | 41 | all 2K | 138 GB |
| B200 180 GB | 58 | all 2K | 176 GB |
| 2× RTX 5090 32 GB tensor parallel | 8 | all 2K | 31.0 GB a card |
| 2× L40S 48 GB tensor parallel | 20 | all 2K | 44.0 GB a card |
| 4× RTX 4090 24 GB tensor parallel | 22 | all 2K | 23.4 GB a card |
| 4× RTX 3090 24 GB tensor parallel | 22 | all 2K | 23.4 GB a card |
| Requests at once | 2K tokens each |
|---|---|
| 1 | 44.3 GB |
| 5 | 53.1 GB |
| 8 | 59.8 GB |
| 16 | 77.5 GB |
| 32 | 113 GB |
| 64 | 184 GB |
One card, with vLLM's small-card settings.
From the model card
GPT-NeoX-20B is a 20 billion parameter autoregressive language model trained on the Pile using the GPT-NeoX library. Its architecture intentionally resembles that of GPT-3, and is almost identical to that of GPT-J- 6B. Its training dataset contains a multitude of English-language texts, reflecting the general-purpose nature of this model. See the accompanying paper for details about model architecture (including how it differs from GPT-3), training procedure, and additional evaluations.
#release-discussion.
Please read the existing GPT-NeoX-20B documentation before asking about the model
on Discord. For general correspondence: contact@eleuther.
ai.| Hyperparameter | Value |
|---|---|
| nparameters | 20554567680 |
| nlayers | 44 |
| dmodel | 6144 |
| nheads | 64 |
| dhead | 96 |
| nvocab | 50257 |
| Sequence Length | 2048 |
| Learning Rate | 0.97 x 10-5 |
| Positional Encoding | Rotary Position Embedding (RoPE) |
GPT-NeoX-20B was developed primarily for research purposes. It learns an inner representation of the English language that can be used to extract features useful for downstream tasks.
In addition to scientific uses, you may also further fine-tune and adapt GPT-NeoX-20B for deployment, as long as your use is in accordance with the Apache 2.0 license. This model works with the Transformers Library. If you decide to use pre-trained GPT-NeoX-20B as a basis for your fine-tuned model, please note that you need to conduct your own risk and bias assessment.
GPT-NeoX-20B is not intended for deployment as-is. It is not a product and cannot be used for human-facing interactions without supervision.
GPT-NeoX-20B has not been fine-tuned for downstream tasks for which language models are commonly deployed, such as writing genre prose, or commercial chatbots. This means GPT-NeoX-20B will likely not respond to a given prompt the way products such as ChatGPT do. This is because, unlike GPT-NeoX-20B, ChatGPT was fine-tuned using methods such as Reinforcement Learning from Human Feedback (RLHF) to better “understand” human instructions and dialogue.
This model is English-language only, and thus cannot be used for translation or generating text in other languages.
The core functionality of GPT-NeoX-20B is to take a string of text and predict the next token. Remember that the statistically most likely next token need not result in the most “accurate” text. Never rely on GPT-NeoX-20B to produce factually accurate output.
This model was trained on the Pile, a dataset known to contain profanity and texts that are lewd or otherwise offensive. See Section 6 of the Pile paper for a discussion of documented biases with regards to gender, religion, and race. GPT-NeoX-20B may produce socially unacceptable or undesirable text, even if the prompt itself does not include anything explicitly offensive.
We recommend curating the outputs of this model before presenting it to a human reader. Please inform your audience that you are using artificially generated text.
If you simply want to try out some prompts, check out this playground.
GPT-NeoX-20B can be loaded using the AutoModelForCausalLM functionality:
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("EleutherAI/gpt-neox-20b")
model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-neox-20b")
The Pile is a 825GiB general-purpose dataset in English. It was created by EleutherAI specifically for training large language models. It contains texts from 22 diverse sources, roughly broken down into five categories: academic writing (e.g. arXiv), internet (e.g. CommonCrawl), prose (e.g. Project Gutenberg), dialogue (e.g. YouTube subtitles), and miscellaneous (e.g. GitHub, Enron Emails). See the Pile paper for a breakdown of all data sources, methodology, and a discussion of ethical implications. Consult the datasheet for more detailed documentation about the Pile and its component datasets. The Pile can be downloaded from the official website, or from a community mirror.
The Pile was not deduplicated before being used to train GPT-NeoX-20B.
GPT-NeoX-20B was trained with a batch size of approximately 3.15M tokens (1538 sequences of 2048 tokens each), for a total of 150,000 steps. Tensor parallelism and pipeline parallelism were used to distribute the model across GPUs. Additional details about the training procedure are in Section 3 of the accompanying paper.
| Model | OpenAI’s LAMBADA | SciQ | PIQA | TriviaQA | ARC (Challenge) | | ------------- |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.