The author ported a Cayley graph solver from CUDA and JAX to Google's newly open-sourced TorchTPU native PyTorch backend. Initial results were 1.65x slower training than A100 and 5.7x slower beam search than JAX, with profiling and optimization lessons documented.
JAX
Google's open-source high-performance numerical computing and autodiff library for functional, accelerated code.
Curated Intelligence
To address the numerical mismatch between sampler and trainer that destabilizes LLM reinforcement learning, this work achieves bitwise-zero train-inference consistency on Cloud TPU. Modular kernel patterns and a three-way verification contract align policy evaluation across sampling and training, making the approach easy to adopt in existing multi-host JAX/TPU serving and training pipelines, with support expanding to linear attention and Mixture-of-Experts architectures.
Musk said xAI is dropping JAX/SGLang and rewriting its reinforcement learning and inference stack from scratch in C/C++, defending the move with a blunt line about managing memory yourself. DTrace co-author Bryan Cantrill argues Rust's ownership constraints matter more than ever in the AI coding era, yet the compiler can stop memory bugs but not LLMs endlessly piling on abstractions and complexity.
A developer released an open-source project that reimplements the DeepSeek V3 architecture from scratch in roughly 190 lines of pure JAX, covering Multi-head Latent Attention, decoupled RoPE, DeepSeekMoE and auxiliary-loss-free load balancing, and pretrains it on a MacBook Air. With no Flax, Equinox or PyTorch dependency and parameters as plain dicts of arrays, the code is readable top to bottom, making it a high-value reference for understanding frontier MoE architectures.