karpathy/tiny_shakespeare
Updated • 5.91k • 86
A 3.307M-parameter char-level decoder-only transformer trained from scratch on Tiny Shakespeare. It exists to drive the benchmarks in the kv-cache-throughput-bench repo: a from-scratch KV cache, a cached-vs-uncached throughput sweep, and an eviction-policy study.
tinygpt.pt: state dict plus the config and char->id mapClone the repo and load with the provided code:
from src.train import load_model
model, stoi, itos = load_model("tinygpt.pt")
Educational. A char model this small produces locally-coherent but repetitive text under greedy decoding. It is not meant for downstream language tasks.