Article Complete
AIM
Musk Reveals Grok 4.8’s Pre-Training Stack is Written in C++ by ‘Humans’, Not AI
Musk Reveals Grok 4.8’s Pre-Training Stack is Written in C++ by ‘Humans’, Not AI

Musk Reveals Grok 4.8’s Pre-Training Stack is Written in C++ by ‘Humans’, Not AI

Elon Musk said it was the Starlink software team that wrote the software and “was not written by AI”.

Published Updated

Key takeaways

  • Elon Musk confirmed that Grok 4.8's pre-training software was developed by the Starlink team using C and C++, not AI.
  • The new model, boasting 2.5 trillion parameters, is set to complete training soon and will move to reinforcement learning.
  • Musk noted that while AI is evolving, it is not yet capable of producing extremely high-performance software.
  • Discussions among engineers highlighted the benefits of custom low-level training infrastructure over higher-level frameworks.
  • Experts suggest that SpaceXAI's use of C++ may enhance model production efficiency and reduce the need for higher-level frameworks.
5 min

Elon Musk, who leads SpaceXAI, the company behind the Grok family of AI models, said its pre-training software is now an internally developed stack written in C and C++.

He made the disclosure in a post on X, where he said Grok 4.8, a 2.5-trillion-parameter model, is expected to finish training this week and begin reinforcement learning. “Our pre-training software is now an internally developed stack in C and C++,” Musk wrote. 

He said the Starlink software team wrote the software and “was not written by AI”. “AI is not yet good enough for extremely high-performance software (but it will be)”  

“Our reinforcement learning stack is still somewhat of a legacy pile of many different third-party software systems,” he wrote, adding that it would be fixed “in due time”.

The comments prompted discussion among software engineers about the trade-offs between custom, low-level training infrastructure, and higher-level frameworks. 

Patrick C Toulme, a software engineer at Google, wrote on X that SpaceXAI’s use of C++ could be helping it produce models quickly.

“The MFU on this full C++ stack is part of the reason xAI is churning out so many models,” Toulme wrote, referring to model FLOPs utilisation (MFU), a measure of how effectively training hardware is being used. 

He speculated that xAI’s implementation could contain “inline PTX”—NVIDIA’s low-level GPU assembly language—and suggested that the stack might have been generated with the help of stronger AI models.

“The need for higher-level frameworks for [production] training is rapidly going away,” Toulme added. “They can’t compete with agent-written C stacks.”

Musk also revealed that the new stack uses assembly and direct calls to hardware accelerators in NVIDIA’s streaming multiprocessors, allowing the software to target GPU hardware more closely.

Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

© 2026 AIM. All rights reserved.