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.
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.
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
Samsung is testing a feature that changes the angle of photos you’ve already taken
Samsung’s new Recompose lets users change photo angles after shooting, potentially reducing the need for multiple shots and improving post-capture editing workflows for photographers and casual users alike.
Frame generation on NVIDIA cards: DLSS on RTX 40/50, FSR 3 elsewhere
Enabling frame generation on non-RTX 40/50 GPUs lets gamers run console-build games at higher frame rates without buying new hardware.
Taking Trainium3 to the Track: Generating Videos with LTX-2.5
Video generation on AWS Trainium3 can now rival Lightricks' paid API in speed, giving teams a non-CUDA inference option, though only after heavy custom patching.
The Download: Better bionic hands and AI’s natural-gas boom
This newsletter roundup mostly relays other outlets' reporting; its two own stories flag sensory-linked prosthetics reaching home use and AI data centers locking the US grid into natural gas.
Introducing the llama.cpp benchmark dashboard for AMD Ryzen and Radeon
AMD developers running llama.cpp locally on Ryzen/Radeon GPUs can now compare prompt-processing and token-generation speeds across builds, models and quantizations on a public dashboard.