Skip to content

Instantly share code, notes, and snippets.

View plitc's full-sized avatar

Daniel Plominski plitc

View GitHub Profile
"""
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
@chrisdone
chrisdone / gist:02e165a0004be33734ac2334f215380e
Last active March 1, 2026 08:52
Build and run minimal Linux / Busybox systems in Qemu

Common

export OPT=/opt
export BUILDS=/some/where/mini_linux
mkdir -p $BUILDS

Linux kernel