markusheimerl/gpt
View on GitHub ↗ ★ 94 C
A generative pretrained transformer implementation
4 mentions on Hacker News by 2 people: 1 story, 3 comments · first 2026-06-05 · latest 2026-06-08
20082026
-
https://github.com/markusheimerl/gpt/blob/main/train.c - in this file, search for the line "const int batch_size = 15;" - reduce this number
comment by markusheimerl · 2026-06-08 · in Tiny hackable CUDA language model implementation -
…a while back after confirming the backward pass is correct to keep the code base lean - running https://github.com/markusheimerl/gpt/blob/main/transformer/a... is also somewhat of a confirmation that the backward pass is correct, since an…
comment by markusheimerl · 2026-06-08 · in Tiny hackable CUDA language model implementation -
…find numerical gradient checks, which is helpful when verifying that backward pass is correct: https://github.com/markusheimerl/gpt/blob/main/transformer/a...
comment by yobbo · 2026-06-08 · in Tiny hackable CUDA language model implementation