xAI reportedly rewrote its RL and inference stack for Grok in C/C++, dropping JAX and SGLang

XFreeze · x · 2026-11-27

Per a post by XFreeze, xAI has rewritten its reinforcement learning and inference stack for Grok 4.8 from scratch in C/C++ with some assembly, moving away from JAX and SGLang. The team is getting close to the hardware—directly managing memory, compute, bandwidth, and workloads instead of relying on layers of abstraction—to pursue higher GPU utilization, maximum effective memory bandwidth, lower latency, faster RL cycles, and higher token throughput, a stark contrast to the industry's reliance on high-level frameworks.

Related event: xAI Rewrites Grok Inference and RL Stack in C/C++, Dropping JAX(2 posts)→

Original post →

More from Infra

Infra channel →