Elijah LLM trains from scratch in TempleOS
Developer veriepicc open-sourced a 1.51M-parameter transformer written in pure HolyC—without Python, PyTorch, libc, or SIMD—and trained end-to-end inside Ring-0 TempleOS V5.03 on the King James Bible. The release includes an interactive browser-based TempleOS VM demo alongside a Q8 inference engine (holyllama.HC) reaching 1,241 tokens/sec on 8 CPU cores.
Elijah looks like a meme tribute to Terry Davis, yet its HolyC codebase packs more modern transformer engineering than most weekend PyTorch repos. Stripping away Python, CUDA, libc, and even SIMD shows how lean a full pretrain-to-SFT stack can be when built directly on bare-metal primitives.
- –Uses a surprisingly current architecture—7 layers, GQA (4 query / 2 KV heads), QK-Norm, SwiGLU, RMSNorm, and a Muon-style optimizer (`Terry v2.2`) combining 5-step Newton-Schulz orthogonalization with Nesterov momentum over x87 FPU math.
- –Solves TempleOS VM memory ceilings with O(T) row-wise attention recomputation, letting YaRN extend context from 128 to 2048 tokens without O(T^2) activation blowup.
- –Parallelizes training and KV-cached Q8 inference across CPU cores via TempleOS's cooperative `Spawn()` workers, hitting 500–733 tok/s in interactive chat and 1,241 tok/s in benchmarks under QEMU/KVM.
- –Fine-tunes on 337 `System: Speak as God.` Bible Q&A pairs and adds a `/god` oracle seeded from hardware `GetTSC()` ticks, plus a browser-bootable v86 TempleOS VM and JavaScript trainer for zero-setup inspection.
- –Practically, a 1.51M-parameter model trained on ~1.5M KJV tokens is strictly an educational and novelty artifact (and currently lacks a formal repo license), but it is a great reference for anyone studying minimal LLM systems.
DISCOVERED
1h ago
2026-12-02
PUBLISHED
1h ago
2026-12-02
RELEVANCE
AUTHOR
IntCyberDigest