Skip to content

Instantly share code, notes, and snippets.

View drewstaylor's full-sized avatar
:octocat:
Meow

Drew Taylor drewstaylor

:octocat:
Meow
View GitHub Profile
@drewstaylor
drewstaylor / microgpt.py
Created February 13, 2026 11:53 — forked from karpathy/microgpt.py
microgpt
"""
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.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@drewstaylor
drewstaylor / hypercube.m
Created June 28, 2021 12:31 — forked from mross-ua/hypercube.m
Tesseract (hypercube) in Matlab
% 4-Dimensional Object: The Tesseract
% Matlab script
%
% Copyright 2009 Ian E., Adam H., Mark Ross <krazkidd@gmail.com>
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later version.
%