gpt2
GPT-2 is OpenAI’s foundational decoder-only transformer. NeMo AutoModel uses it as a baseline for the Megatron pretraining smoke test and tutorials - its small footprint makes it a convenient target to validate data pipelines, distributed configs, and logging without needing large compute.
Set up NeMo AutoModel with the latest container or follow the installation instructions.
Pretrain gpt2
From the repository root, run: