Skip to content

Instantly share code, notes, and snippets.

"""
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
@vukrosic
vukrosic / qwen3_from_scratch.ipynb
Last active July 22, 2026 11:32
qwen3_from_scratch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moneebullah25
moneebullah25 / 00_bigram.ipynb
Created November 9, 2023 14:49
Bigram Language Model
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ih2502mk
ih2502mk / list.md
Last active August 5, 2026 20:58
Quantopian Lectures Saved