Original post
Elon Musk@elonmusk#76inAI

SpaceX has almost finished writing V1.0 of an in-house AI training stack in C that exact-maps to 220k GB300s with 800G NICs, making heavy use of pipeline parallelism and getting as close to bare metal as possible.

The potential speed improvement vs JAX for large training runs is over an order of magnitude.

11:27 PM · May 27, 2026 · 26.7M Views
Sentiment
Sentiment building, check back later.
Cluster Engagement
-
Views
-
Comments
-
Reposts
-
Bookmarks
Expand data
Posts from X
Most Activity
Most ActivityTimeline
VIEWS1M
Elon Musk@elonmusk

Next will be writing the inference stack in C for simultaneous high-speed RL across a large block of GB300s.

(We do use a little C++ tbh, but not much)

Elon Musk@elonmusk

SpaceX has almost finished writing V1.0 of an in-house AI training stack in C that exact-maps to 220k GB300s with 800G NICs, making heavy use of pipeline parallelism and getting as close to bare metal as possible.

The potential speed improvement vs JAX for large training runs is over an order of magnitude.

6dViews 1MLikes 8.3KBookmarks 268
BOOKMARKS371
Elon Musk@elonmusk

Yes.

It’s not that we’ve discovered some magic bullet, but rather that JAX, or at least the open source version of it, is mostly optimized for small to medium-sized training runs on Google TPUs, whereas we need to massive training runs on Nvidia GPUs.

Pipeline parallelism is essential and crushes fully-sharded data parallelism at scale.

And C will compile to the most efficient binary short of assembly. Maybe we will do a little assembly too.

There’s a ton of headroom to better optimize AI training and inference.

6dViews 292.2KLikes 4.7KBookmarks 371
LIKES10KRETWEETS1.2KREPLIES785
Elon Musk@elonmusk

Note, I am posted this to encourage those who enjoy getting incredible performance out of hardware to join SpaceX

Elon Musk@elonmusk

Next will be writing the inference stack in C for simultaneous high-speed RL across a large block of GB300s.

(We do use a little C++ tbh, but not much)

6dViews 667.1KLikes 10KBookmarks 295