Skip to content

Instantly share code, notes, and snippets.

View doughgle's full-sized avatar

Douglas Hellinger doughgle

View GitHub Profile
@doughgle
doughgle / microgpt.py
Created February 17, 2026 23:25 — 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
@doughgle
doughgle / gist:b22e0e0ccdb02ec6b61a04b4c9ae9f2e
Last active January 17, 2023 14:42 — forked from mkweskin/gist:e531e65791c1d8036dd720ef3baf8af6
Github markdown to Jira/Confluence markup using pandoc

using doughgle/docs-as-code:main

$ docker run -it ghcr.io/doughgle/docs-as-code:main bash

Example markdown

hugo:/src$ cat test.md