Skip to content

Instantly share code, notes, and snippets.

View Getmrahul's full-sized avatar
🎯
Focusing

Rahul M Getmrahul

🎯
Focusing
View GitHub Profile
@Getmrahul
Getmrahul / microgpt.py
Last active February 12, 2026 16:10 — forked from karpathy/microgpt.py
microgpt + hyperparam
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
Original concept and baseline style by Andrej Karpathy.
This local version adds super-minimal hyperparameter tuning.
@karpathy
"""