Running a 260K-parameter LLM in F# on a 1982 Commodore 64

FlorianGallwitz · x · 2026-11-28

Developer Onur Gumus demoed an LLM written entirely in Frunning on a 1982 Commodore 64: 260K parameters, native 6502 machine code, no .NET runtime, no GC, and reportedly faster than his own C implementation — "seconds per token" instead of tokens per second.

The trick is a fork of bflat that compiles C#/Fstraight to small native binaries, keeping type checking, generics and pattern matching while dropping the runtime and GC in favor of arena-based memory. The same source runs on Linux/macOS/Windows, WebAssembly, DOS on a 386, bare UEFI hardware, and the C64, with hello-world binaries of just 11–40 KB.

Original post →

More from Fun

Fun channel →