From CUDA to MLX: How K-Search Brings Decades of Kernel Expertise to Apple Silicon

AI-generated summary of reporting by Berkeley. Read the original for the full story.

Why it matters

IBM and Berkeley researchers show CUDA kernel expertise can be automatically translated to Apple Silicon, meaning non-NVIDIA platforms may stop waiting years for hand-tuned kernels.

Read this as

GPU kernels are the low-level programs that make AI models run fast, and writing them well takes years of experience with Nvidia's CUDA software. Researchers from IBM Research and UC Berkeley built a system called K-Search that uses an AI model to automatically convert those hard-won CUDA optimizations into fast code for Apple's chips. Their translated attention kernel reaches 97% of Apple's hand-tuned version, and their Mamba kernel runs prefill about 20 times faster than the community MLX version. This mainly affects developers running AI locally on Macs.

IBM Research and Berkeley Sky Lab demonstrated an automated way to port Nvidia CUDA kernel expertise to Apple Silicon via MLX, hitting 0.97x of Apple's native attention kernel and a roughly 20x Mamba SSM prefill speedup over mlx-lm. The gain matters because Mac-based local AI inference has lacked the optimized kernels Nvidia users take for granted, like paged attention and fused MoE routing. It is a research result, not a shipping product, so no timeline or availability is given.

The work extends K-Search, an evolutionary kernel search framework where an LLM (Gemini 3.5 Pro Preview) maintains a tree-structured 'world model' of scored optimization hypotheses, with a structured CUDA-to-MLX translation layer. Experts' CUDA kernels serve as a knowledge base; optimizations are translated as architecture-native Metal strategies rather than copied instruction-for-instruction. Results: 0.97x of native MLX attention performance and up to 20x Mamba SSM prefill speedup versus mlx-lm. The method is hardware-agnostic in principle; the article does not report release of the tool.

Read the original

This summary exists to save you time, not to replace the source.

Berkeley →

Key terms

K-Search MLX CUDA Apple Silicon FlashAttention Mamba Gemini 3.5 Pro Preview

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading