Skip to content

Instantly share code, notes, and snippets.

View plitc's full-sized avatar

Daniel Plominski plitc

View GitHub Profile
@plitc
plitc / microgpt.py
Created February 22, 2026 06: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
@plitc
plitc / gist:29395db86c7d06a952024cffbdee057f
Created May 8, 2019 15:03 — forked from chrisdone/gist:02e165a0004be33734ac2334f215380e
Build and run minimal Linux / Busybox systems in Qemu

Common

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

Linux kernel