Default nanoGPT Training Iterations | Generated by AI

Home 2025.10

In the default configuration for nanoGPT (e.g., training on the Shakespeare character dataset), the model runs for a total of 5000 iterations.

This is set by max_iters = 5000 in the config/train_shakespeare_char.py file. You can override it via the command line with --max_iters=<value> when running train.py.

config/train_shakespeare_char.py


Back

x-ai/grok-4-fast

Donate