Skip to content

Instantly share code, notes, and snippets.

View luisalima's full-sized avatar

Luisa Lima luisalima

View GitHub Profile
@luisalima
luisalima / microgpt.py
Created February 12, 2026 12:32 — 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
@luisalima
luisalima / 0_reuse_code.js
Created August 14, 2014 09:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console