Deep Learning Infrastructure From Scratch.
Standard machine learning workflows pull in gigabyte-scale Python virtual environments, dynamic allocator pools, and sprawling runtime layers. Entropy Research Lab builds compact, auditable alternatives in Rust and CUDA.
Background
Entropy Research Lab was started in 2024 by Swasthik Shetty as an independent systems engineering effort focused on understanding and implementing every layer of a modern training stack — from strided host buffers and reverse-mode autograd tapes to custom CUDA attention kernels and socket-level collective communication.
Rather than wrapping an existing C++ backend, Project Maximus tracks the step-by-step construction of Dark Forest: a standalone Rust and CUDA runtime that compiles into a single <12 MB native executable with zero Python interpreter dependencies.
Development follows a strict verification rule: numerical parity precedes optimization. Forward activations, backward gradients, and optimizer updates are cross-checked against PyTorch reference runs before benchmarking execution speed.
Engineering Rules
Reference Cross-Checks
Every operator and optimizer step is verified against PyTorch reference trajectories within IEEE-754 floating-point tolerances before tuning throughput.
Explicit Memory Layouts
64-byte aligned host buffers, signed strided views, iterative backward worklists, and pre-allocated static GPU arenas eliminate mid-step allocator stalls.
Committed Test Harnesses
Published numbers come from committed benchmark scripts and JSON artifacts; unexecuted hardware configurations remain labeled as PENDING.
Project Maximus Roadmap
Inspect completed parity milestones and upcoming compiler phases.