Skip to content

Instantly share code, notes, and snippets.

View premdevai's full-sized avatar
💻
Learning

PREM KUMAR premdevai

💻
Learning
View GitHub Profile
"""
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
@lmcneel
lmcneel / remove-node-modules.md
Last active November 5, 2025 11:41
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a