Skip to content

Instantly share code, notes, and snippets.

View hdocmsu's full-sized avatar
🎯
working

hdocmsu

🎯
working
View GitHub Profile
@hdocmsu
hdocmsu / microgpt.py
Created March 1, 2026 21:44 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@hdocmsu
hdocmsu / an-inquiry-into-matplotlib-figures.ipynb
Created December 24, 2019 06:32 — forked from akashpalrecha/an-inquiry-into-matplotlib-figures.ipynb
This notebook dives deep into Matplotlib's Figures, Axes, subplots and the very amazing GridSpec!
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.