9 billion parameters reasoning about bleeding-edge physics on a $200 GPU. Full thinking chain visible. Nothing cherry-picked.
| Field | Value |
|---|---|
| GPU | RTX 3060 12GB |
| Model | Qwen 3.5 9B Q4_K_M (5.3GB) |
| """ | |
| 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 |
| // For use on https://twitter.com/settings/your_twitter_data/twitter_interests | |
| function uncheckAll() { | |
| let inputs = document.querySelectorAll('input[type="checkbox"]'); | |
| let delay = 0 | |
| for (let i = 0; i < inputs.length; i++) { | |
| if (inputs[i].checked) { | |
| setTimeout(() => { inputs[i].click( new Event('change') ) ; console.log(i) }, delay); | |
| delay += 1000; | |
| } else { | |
| console.log("Skipped " + i) |
| #!/bin/sh | |
| # rename-pictures.sh | |
| # Author: Justine Tunney <jtunney@gmail.com> | |
| # License: Apache 2.0 | |
| # | |
| # This shell script can be used to ensure all the images in a folder | |
| # have good descriptive filenames that are written in English. It's | |
| # based on the Mistral 7b and LLaVA v1.5 models. | |
| # | |
| # For example, the following command: |
See the new site: https://postgresisenough.dev
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| make clean | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin |
| import network | |
| import socket | |
| import time | |
| import struct | |
| from machine import Pin | |
| NTP_DELTA = 2208988800 | |
| host = "pool.ntp.org" |
| SSID = "" | |
| PSK = "" |
| sqlcsv() { | |
| if [ $# -lt 2 ] | |
| then | |
| echo "USAGE: sqlcsv [filename.csv] [SQL]" | |
| echo "In the SQL, refer to the data sourse as [filename]" | |
| else | |
| filename="$1" | |
| dataname=${filename%????} | |
| sqlite3 :memory: -cmd '.mode csv' -cmd ".import $filename $dataname" -cmd '.mode markdown' $2 | |
| fi |