Skip to content

Instantly share code, notes, and snippets.

View Shewart's full-sized avatar
🎯
Focusing

Shewart Shewart

🎯
Focusing
View GitHub Profile
@Shewart
Shewart / microgpt.py
Created February 11, 2026 22:43 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT LLM in pure, dependency-free Python.
Differences from GPT-2 are minor: rmsnorm instead of layer norm, no biases, square ReLU instead of GeLU nonlinearity.
The contents of this file is everything algorithmically needed to train a GPT. Everything else is just efficiency.
Art project by @karpathy.
"""
import os # for os.path.exists
import math # for math.log, math.exp
import random # for random.seed, random.choices
@Shewart
Shewart / App.css
Created December 14, 2023 14:10 — forked from adrianhajdin/App.css
Movie App
@import url("https://fonts.googleapis.com/css?family=Roboto+Slab:100,300,400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i");
* {
margin: 0;
border: 0;
box-sizing: border-box;
}
:root {