From-scratch PyTorch comparison: 42M Dense vs 117M-A67M MoE vs 20M Looped transformer

BitPoper29 · reddit · 2026-12-06

A Reddit user built Spell-Talker, comparing three transformer architectures implemented from scratch in pure PyTorch with no high-level training wrappers, all sharing a fixed backbone (512 context, 8 heads, 512 dim, RMSNorm, SwiGLU, weight-tied 32k vocab):

All were trained on TinyStories on a single consumer RTX 3050, with a side-by-side benchmark UI (shown in the image) racing two models on real recorded runs. Code and HF checkpoints are open-sourced; the author invites discussion of MoE router stability and truncated BPTT in looped blocks.

Original post →

More from Models

Models channel →