Implementation of GPT from scratch. Design to be lightweight and easy to modify.
-
Updated
Oct 16, 2025 - Python
Implementation of GPT from scratch. Design to be lightweight and easy to modify.
Seq2Seq model implemented with pytorch, using temperature sampling, top-k sampling, top-p sampling / nucleus sampling, and beam search.
Demonstrates how GenAI parameters like Temperature, top-K and top-P work
Add a description, image, and links to the top-p-sampling topic page so that developers can more easily learn about it.
To associate your repository with the top-p-sampling topic, visit your repo's landing page and select "manage topics."