karpathy / build-nanogpt

Video+code lecture on building nanoGPT from scratch
3.61k stars 502 forks source link

Fix out of bounds check #42

Open lukasugar opened 4 months ago

lukasugar commented 4 months ago

In DataLoader, we need to check if the next batch of data is available. No need to multiply batch size with num_processes