Running llama2.c on a 2006 iPod: int8-only port hits 0.36 tok/s at 80 MHz

r0tlier0 · reddit · 2026-11-02

A developer wrote a Rockbox plugin running Karpathy's llama2.c TinyStories models on an iPod video 5.5G (2006, ARM7TDMI @ 80 MHz, 64MB RAM, no FPU). Without an FPU, the runq.c code was ported to pure integer math: lookup tables for exp/softmax and an integer square root for RMSNorm. The 15M model is only 17MB, loaded straight off the hard drive into the music buffer, running at 0.36 tok/s. Next steps: using both cores and an iPod-themed local music recommendation model.

Original post →

More from Fun

Fun channel →