smolGPT
smolGPT is a minimalist PyTorch implementation for training small LLMs from scratch, designed for education and simplicity. It adopts a modern architecture including Flash Attention, RMSNorm, SwiGLU, RoPE, etc., supports training features such as mixed precision training, gradient accumulation, and learning rate decay, and includes built-in TinyStories dataset processing and SentencePiece tokenizer training. The project provides a pretrained model (4096 vocabulary, 8-layer Transformer, 512 embedding dimension, trained on about 4 billion tokens for 18.5 hours, validation loss 1.0491), suitable for learning the LLM training process.