microgpt
gist.github.com · 1,270 words · saved by 1 readers
microgpt. GitHub Gist: instantly share code, notes, and snippets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters """ 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 import random # random.seed, random.choices, random.gauss,…
saved by
related reading
- microgptkarpathy.github.io
- GPT in 60 Lines of NumPy | Jay Modyjaykmody.com
- Transformer Explainer: LLM Transformer Model Visually Explainedpoloclub.github.io
- What Is ChatGPT Doing … and Why Does It Work?-Stephen Wolfram Writingswritings.stephenwolfram.com
- GitHub - rasbt/LLMs-from-scratch: Implement a ChatGPT-like LLM in PyTorch from scratch, step by stepgithub.com
- GitHub - karpathy/nanochat: The best ChatGPT that $100 can buy.github.com
- Llama 2 · Hugging Facehuggingface.co
- interpreting GPT: the logit lens — LessWronglesswrong.com
- Hugging Face – The AI community building the future.huggingface.co
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.github.com
- Tinkerthinkingmachines.ai
- GitHub - karpathy/nanoGPT: The simplest, fastest repository for training/finetuning medium-sized GPTs. · GitHubgithub.com