Engineering Roadmap

Project Maximus

Staged roadmap for Dark Forest: prove numerical equivalence against PyTorch first, then lower static graphs and composable functional transforms.

PHASE 01CURRENT

Parity with PyTorch

Target: PyTorch 2.4+ Eager Mode
Match PyTorch on forward semantics, backward gradient trajectories, and core layer ergonomics.

Throughput optimizations are gated behind verified numerical and gradient parity against PyTorch reference implementations on identical workloads.

Phase Milestones

Milestone 1: Strided Tensor Core & MLP Parity GateDONE

Shipped. 90 core unit tests passing; 200-step MLP trajectory matches PyTorch 2.4 within 2.38e-7 max loss delta.

Milestone 2: Conv2d & ResNet-18 ParityIN_PROGRESS

Spatial 2D convolutions, BatchNorm, and residual block backward passes with CUDA kernel parity checks.

Milestone 3: Causal Attention & nanoGPT ParityPLANNED

End-to-end causal transformer training parity checks across bf16 mixed precision and activation checkpointing.

PHASE 02UPCOMING

Parity with TensorFlow

Target: Static Graph IR & Standalone Export
Whole-program intermediate representation (IR), operator fusion, and standalone binary deployment.

Lower eager tensor traces into a static intermediate representation supporting memory-bound operator fusion and Python-free deployment.

Phase Milestones

Static Graph Extraction & Operator FusionPLANNED

Capture computational graphs from eager traces and fuse elementwise producer-consumer chains.

Model Serialization & Standalone RuntimePLANNED

Export self-contained native executables and SafeTensors checkpoints without Python runtime dependencies.

PHASE 03PLANNED

Parity with JAX

Target: Composable Functional Transformations
Composable function transformations: vmap, grad, pmap, and trace compilation.

Implement composable higher-order function transformations over Rust tensor operations and multi-device collectives.

Phase Milestones

Auto-Vectorization (vmap) & Higher-Order GradientsPLANNED

Automatic batch dimension propagation and nested gradient evaluation.

Multi-Device SPMD Sharding (pmap / mesh)PLANNED

Partitioned tensor execution across multi-GPU collective topologies.

PHASE 04PLANNED

Native Compilation & Kernel Optimization

Target: [PENDING — Exit criteria to be defined]
Exit criteria and target benchmarks pending specification.

[PENDING] Concrete exit criteria, target hardware baselines, and pass/fail thresholds for Phase 4 are left as placeholders to be defined once Phase 1–3 milestones complete.

Phase Milestones

Phase 4 Exit Criteria PlaceholderPLANNED

[PENDING: Quantitative exit criteria and target workloads to be filled in by author.]

Contribute to Active Milestones

Review open kernel tasks, parity tests, and architectural RFCs.

Contribution Guide