← Back to Leaderboard
GEleutherAI

EleutherAI/gpt-neox

Megatron and DeepSpeed tooling for distributed GPU training of autoregressive LLMs

Engineering Health (Methodology)
A+ · 89/100
Maintenance Activity
● Updated 2d ago
Latest Release
v2.0
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence11/20
License Clarity20/20
GPUCLI
Total Stars
★ 7,476
24h Growth
+2
7d Growth
+4
Forks
1,138

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

EleutherAI/gpt-neox Star History (2020-12-21 - 2026-12-04) ALL-TIME STAR HISTORY (2020-12 – 2026-12) +7.5k in 2174d · avg +3/day 7.9k 3.9k 0 2020-12-21: ★ 12021-05-08: ★ 6922021-09-18: ★ 1,0842022-01-29: ★ 1,2462022-06-11: ★ 2,0872022-10-22: ★ 2,4702023-03-04: ★ 3,8052023-07-15: ★ 5,5492023-11-25: ★ 5,9772024-04-06: ★ 6,3242024-08-17: ★ 6,5922024-12-28: ★ 6,8602025-05-10: ★ 7,0462025-09-20: ★ 7,2012026-01-31: ★ 7,3002026-06-13: ★ 7,3962026-12-04: ★ 7,476 ★ 7.5k 2020-12 2023-12 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

GPT-NeoX is a Python/PyTorch research trainer for autoregressive transformers. The megatron/ stack provides model-parallel building blocks, while the DeepSpeed-family runtime supports distributed execution and ZeRO. Data, tensor, and pipeline parallelism can be combined to fit a training job to a GPU allocation. deepy.py takes YAML configuration and launches workflows such as train.py and eval.py; generate.py provides a separate generation entry point.

The workflow is file-based. prepare_data.py creates tokenized .bin and .idx files, and data-path points to their common prefix. The configs/ directory is where operators select architecture, parallelism, and batch settings. The main integration points are configuration, checkpoint conversion in tools/ckpts/, and DeepSpeed launchers. For cluster schedulers outside the built-in options, customization may extend into DeepSpeed's multinode runner rather than stopping at NeoX YAML.

Key Capabilities & Differentiators

NeoX supports distributed pretraining and fine-tuning with rotary or ALiBi positional schemes, parallel attention and feed-forward layers, and curriculum learning. Example configurations cover Pythia, PaLM, Falcon, and LLaMA 1 and 2. Those templates describe model architectures, not a blanket guarantee of checkpoint import compatibility. The listed import families are Llama 1, Llama 2, CodeLlama, and Mistral-7B-v0.1, with separate tools for original Meta weights and supported Hugging Face checkpoints.

eval.py takes lm-evaluation-harness task names via --eval_tasks, so teams can evaluate a trained checkpoint through the same launcher used for training. FlashAttention and NVIDIA Transformer Engine are optional, version-sensitive acceleration paths; their benefits depend on the GPU and compatible builds. AMD MI100 and MI250X have a JIT fused-kernel path, which is distinct from the NVIDIA Transformer Engine path.

Trade-offs & Limitations

GPT-NeoX gives research teams controls over model design, partitioning, and training that also make it more work to operate. Treat the example YAML files as starting points, not tuned profiles. model-parallel-size, pipe-parallel-size, train_micro_batch_size_per_gpu, gradient-accumulation-steps, and zero_optimization all affect whether a run fits and how it scales. Partitioning can reduce per-GPU memory pressure while adding communication or pipeline overhead, so test on the actual interconnect before reserving a large cluster allocation.

For routine inference, Hugging Face transformers is the simpler fit when it already loads the checkpoint. NeoX's generation entry point is useful within the training workflow, but it is not a reason on its own to adopt the distributed training stack. Pin the NeoX and Deep(er)Speed versions together, particularly for legacy checkpoints and optional kernels. Apache-2.0 covers the framework code; it does not determine the terms of imported weights or datasets.

Hardware & Deployment Guide

Deploy GPT-NeoX as a self-hosted GPU CLI workload. The primary development and test ranges are Python 3.8–3.10 and PyTorch 1.8–2.0, not hard limits. Install the base stack from requirements/requirements.txt in an isolated environment; install FlashAttention or Transformer Engine from the corresponding optional requirements if needed. A suitable PyTorch NGC image is another route, but preinstalled versions are not automatically compatible. Stage the tokenizer, data, and any input checkpoint on storage the job can access.

Start with a model YAML and launch with python3 deepy.py train.py /path/to/configs/my_model.yml. For multi-node jobs, a hostfile maps nodes to GPU slot counts, and the YAML selects pdsh, MPI, or Slurm as appropriate. Version 2.0, released on March 10, 2023, moved to a DeepSpeed basis compatible with upstream features such as communication logging and autotuning. Version 1.0 preserves the DeeperSpeed 0.3.15-era stack associated with GPT-NeoX-20B and Pythia; pin the runtime and validate checkpoint loading before changing stacks.

Parallel training: Combines data, tensor, and pipeline parallelism with DeepSpeed-family ZeRO options.
Model architecture: Supports rotary and ALiBi positional schemes, parallel attention/feed-forward layers, and optional FlashAttention.
Training data: prepare_data.py emits paired .bin and .idx files referenced by their shared data-path prefix.
Checkpoint import: Separate tools handle original Meta Llama weights and supported Hugging Face checkpoints; raw Llama output shard count follows tensor parallelism.
Evaluation: deepy.py launches eval.py and passes lm-evaluation-harness task names through --eval_tasks.
Cluster operations: Supports Slurm, MPI, and pdsh; v2.0 moved to an upstream-compatible DeepSpeed basis, while v1.0 preserves the legacy stack.
Best For

Research and infrastructure teams pretraining billion-parameter models, fine-tuning supported checkpoints at scale, or studying parallelism and model architecture on GPU clusters.

Skip If

You only need generic text generation from an existing compatible checkpoint or are looking for an inference-first serving stack.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

GPUCLI
pip install -r requirements/requirements.txt
pip install -r requirements/requirements-wandb.txt # optional, if logging using WandB
pip install -r requirements/requirements-tensorboard.txt # optional, if logging via tensorboard
pip install -r requirements/requirements-comet.txt # optional, if logging via Comet

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
gpt-neox ★7.5k+4PythonApache-2.0Megatron and DeepSpeed tooling for distributed GPU training of autoregressive LL
peft21.9k+32PythonApache-2.0Python/PyTorch adapters for fine-tuning large models without updating base weigh
minimind75.4k+3.1kPythonApache-2.0Native PyTorch dense and MoE models for end-to-end LLM training on local GPUs
autoresearch101k+342Python—Single-GPU nanochat harness for agent-led, five-minute training experiments

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/EleutherAI/gpt-neox.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

EleutherAI/gpt-neox Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about gpt-neox

How do I bring an existing checkpoint into a distributed NeoX run?

Use tools/ckpts/convert_hf_to_sequential.py for supported Hugging Face checkpoints, or tools/ckpts/convert_raw_llama_weights_to_neox.py for original Meta Llama 1 or 2 weights. For the latter, set --num_output_shards to the tensor-parallel size. Test loading with the intended YAML configuration before committing cluster time.

How much GPU memory should I budget?

There is no single VRAM requirement for the framework. Size the job around the model, sequence length, per-GPU microbatch, and whether it is training or generation. For training, include activation and optimizer-state memory. Run a short test with the intended tensor and pipeline split and ZeRO settings; fitting in memory does not guarantee efficient scaling.

Can my organization self-host GPT-NeoX commercially?

Yes. GPT-NeoX is Apache-2.0 licensed and can be self-hosted commercially. Follow the license and applicable notice requirements when redistributing it. Review checkpoint, tokenizer, dataset, and dependency terms separately; the code license does not grant rights to those assets.

When should I choose GPT-NeoX over Hugging Face transformers?

Choose GPT-NeoX when the work is to train or fine-tune at scale, vary architecture or parallelism settings, or evaluate a checkpoint in its training environment. For routine generation from an already compatible checkpoint, use Hugging Face transformers rather than adopting NeoX's training-oriented runtime just to run inference.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining EleutherAI/gpt-neox? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature EleutherAI/gpt-neox on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare