Skip to content

Instantly share code, notes, and snippets.

@frankdenbow
frankdenbow / microgpt.py
Created March 2, 2026 06:15 — forked from karpathy/microgpt.py
microgpt
"""
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
sp = getSpotifyApi(1);
var models = sp.require('sp://import/scripts/api/models');
var gtrack = sp.require("sp://import/scripts/googletracker");
var tracker = new gtrack.GoogleTracker('UA–xxxxxxx–1');
var args = sp.core.getArguments();
var search = new models.Search("rhianna");
//console.log(args[1]);
function tabs() {