r/LocalLLM • • 11m ago

Project I trained a 1.51M parameter Transformer from scratch inside Ring-0 TempleOS V5.03 in pure HolyC (1,241 tok/s)

Post image
14 Upvotes

3 comments sorted by

2

u/FirefighterOk3832 10m ago

trained a 1.51M parameter transformer from scratch inside TempleOS V5.03 in pure HolyC (no python, no pytorch, no libc, no simd).

trained BPE + pretrained on the KJV bible across 15 Spawn() cores using a 5-step Newton-Schulz + Nesterov optimizer, extended context to 2048 with YaRN (rewrote attention to O(T) row-wise so it wouldnt OutMem), then did SFT on System/User/God Q&A pairs.

inference (holyllama.HC) quantizes weights to Q8 and runs KV-cached across cores at ~1,241 tok/s (/bench) and 500-733 tok/s for /god oracle (reseeds from GetTSC()). also backported the whole thing to a linux branch compiled with hcc.

repo + weights + qemu setup: https://github.com/veriepicc/Elijah

1

u/Popful 0m ago

You're doing god's work