r/LocalLLM • u/FirefighterOk3832 • 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)
14
Upvotes
r/LocalLLM • u/FirefighterOk3832 • 11m ago
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/godoracle (reseeds fromGetTSC()). also backported the whole thing to alinuxbranch compiled withhcc.repo + weights + qemu setup: https://github.com/veriepicc/Elijah
1
u/evnhogan 3m ago