Tiny local model writes a C program that nails 1,000 digits of pi after an hour on a laptop

yb2698 · x · 2026-12-01

sojoodi shared full instructions for running the Inkling-2-Mini pi-adapted GGUF model locally via Ollama: download the Q80 quant, write a Modelfile with 65536 context, then ollama create and ollama launch pi.

Prompted to "write a C program that calculates pi to any digit," the laptop fans roared for about an hour — but the result was impressive. Screenshots show the generated program uses exact fixed-point integers scaled by 10^(N+12) with 12 guard digits, verified correct against an independent Python reference for digits 1–500, with a working 1,000-digit run. Notes suggest switching to Chudnovsky+FFT above 1M digits.

Original post →

More from coding & agent

coding & agent channel →