Latent Space: The AI Engineer Podcast
Latent Space: The AI Engineer Podcast

Doing it the Hard Way: Making the AI engine and language 🔥 of the future — with Chris Lattner of Modular

Want to help define the AI Engineer stack? Have opinions on the top tools, communities and builders? We’re collaborating with friends at Amplify to launch the first State of AI Engineering survey! Please fill it out (and tell your friends)! If AI is so important, why is its software so bad? This was

Featured Speakers

Latent.Space HostChris Lattner Guest

Topics Discussed

Episode Summary

Executive Summary: Chris Lattner explains Modular’s thesis: AI infrastructure is fragmented because frameworks, kernels, and hardware stacks evolved separately, forcing humans to handwrite too much low-level code. Modular aims to unify the stack with a general AI engine and Mojo, a Python superset, so developers can get portability, performance, and programmability without becoming compiler experts.

Main Topics: Why AI infrastructure is fragmented (Priority: 5/5): Lattner argues that TensorFlow/PyTorch-era systems rely on thousands of manually written kernels and brittle hardware-specific stacks, making it hard to support new chips, new models, and new research ideas. Compilers as the scalable middle layer (Priority: 5/5): He frames compilers as the key abstraction that can generalize across hardware, enable kernel fusion and other optimizations, and reduce the need for handwritten kernels while preserving performance. Modular’s AI engine and CPU-first strategy (Priority: 5/5): Modular is building a new engine beneath frameworks, starting with CPUs to prove a general architecture before expanding to GPUs and other accelerators, because CPUs are central to data loading, preprocessing, inference, and orchestration. Mojo as a Python superset for systems and AI (Priority: 5/5): Mojo emerged from internal needs for better syntax around compiler-generated kernels and evolved into a Python-family language designed to combine Python’s ecosystem with systems-level performance and safety. Asynchrony, fusion, and performance (Priority: 4/5): Lattner emphasizes that AI systems should model CPUs, GPUs, networking, and distributed execution as asynchronous computers communicating with each other, enabling overlap, better throughput, and less memory traffic. Open ecosystem, community, and Python relationship (Priority: 4/5): He positions Mojo as a member of the Python family rather than a replacement, with Guido van Rossum aware of the project and Modular planning open sourcing and permissive licensing. Company strategy, hiring, and product philosophy (Priority: 4/5): Modular is intentionally independent and neutral—no cloud, no hardware, no LLM—so it can serve the broader ecosystem. Lattner also discusses team culture, hiring applied engineers, and building for real customer pain rather than demos.

Key Arguments: AI infra is fragmented because hardware vendors, frameworks, and deployment tools each solve only part of the problem, creating brittle systems that do not compose well. Handwritten kernels do not scale: thousands of operators across frameworks must be reimplemented for each new hardware target. Compilers are the right abstraction because they can generalize optimizations like fusion, reassociation, and scheduling across many workloads and devices. A general engine should start from the full problem, not just the accelerator, because AI workloads include data loading, preprocessing, networking, inference, and post-processing. CPUs matter first because they are central to the AI pipeline and are often the bottleneck for inference, orchestration, and host-side work. Mojo was created because the team needed a better language for production compiler work; it was not originally a standalone language project. Mojo aims to combine Python’s ecosystem and ergonomics with systems-level performance, static typing where useful, and lower-level control when needed. Asynchronous execution is a better mental model for modern compute than the traditional synchronous CPU-to-GPU handoff. Modular’s neutrality as an independent company is a strategic advantage because customers do not want their infra vendor to be a direct competitor. The goal is not to force rewrites, but to let existing users adopt better tooling incrementally and meet them where they are.

Data Points: PhD completion year: 2005 - Lattner said he completed his CS PhD in 2005 before joining Apple. LLVM award year: 2012 - He won the ACM Software System Award for LLVM in 2012. Modular founding year: 2022 - He said Modular started in 2022, about 20 months before the interview. Mojo lexer/parser start: October (less than a year old at the time of the interview) - Lattner said Mojo’s lexer and parser started in October, emphasizing how new the language was. Performance claim: 2 to 3 times faster - He referenced Modular’s inference engine being 2–3x faster than PyTorch and TensorFlow in some contexts. Ads throughput improvement: 2x - He described a Google project where overlapping TPU and CPU work improved ads throughput by 2x. Hardware spend example: $200 million - He used an LLM company spending $200M on GPUs as an example of why full hardware utilization matters. Open-source licensing goal: Permissive license - He said Modular wants Mojo to be open sourced with a permissive license. Community research interviews: 50 to 100 companies - Tim Davis reportedly interviewed 50–100 companies to refine Modular’s product vision.

Pivotal Quotes: "AI, in my opinion, is actually a large scale heterogeneous parallel compute probe." — Chris Lattner: He used this to explain why AI systems must include CPUs, GPUs, networking, and data movement—not just accelerators. "The challenge becomes how do you enable and how do you design a system where you get abstraction by default without like giving up the full power?" — Chris Lattner: He summarized Modular’s core design goal: high-level usability without sacrificing low-level control. "We started Modular to solve some AI problems and then said, okay, well, we need to do a language." — Chris Lattner: He explained that Mojo was a consequence of building the engine, not the original company mission.

Implications: Modular is betting that the next AI wave will be won by better infrastructure, not just better models. If successful, it could make AI development more portable, faster, and less dependent on niche compiler expertise.

🔓 Sign Up for Unlimited Episode Search

About Latent Space: The AI Engineer Podcast

The podcast by and for AI Engineers! In 2025, over 10 million readers and listeners came to Latent Space to hear about news, papers and interviews in Software 3.0. We cover Foundation Models changing every domain in Code Generation, Multimodality, AI Agents, GPU Infra and more, directly from the founders, builders, and thinkers involved in pushing the cutting edge. Striving to give you both the definitive take on the Current Thing down to the first introduction to the tech you'll be using in the next 3 months! We break news and exclusive interviews from OpenAI, Anthropic, Gemini, Meta (Soumith Chintala), Sierra (Bret Taylor), tiny (George Hotz), Databricks/MosaicML (Jon Frankle), Modular (Chris Lattner), Answer.ai (Jeremy Howard), et al. Full show notes always on https://latent.space

View all episodes from Latent Space: The AI Engineer Podcast