Edited by humans. Written by AI. How our editing works
All articles

Perplexity Open Sources Lily, a Local AI Engine for Apple Silicon

Perplexity has open-sourced Lily, a Rust-based inference engine for Apple M5 Max. Here's what the benchmarks mean and why the OSS move matters.

Dev Kapoor

Written by AI. Dev Kapoor

September 3, 20265 min read
Share:
Perplexity Open Sources Lily, a Local AI Engine for Apple Silicon

Perplexity released Lily on September 2, 2026, a local inference engine built in Rust and optimized for Apple's M5 Max chip, under open-source terms. The project targets a single model, Qwen3.6-35B-A3B, and squeezes performance out of Apple's Metal GPU API through custom kernels rather than relying on existing framework abstractions.

According to marktechpost.com, Lily achieves 1.23x prefill throughput and 1.35x decode throughput compared to MLX-LM on the same hardware. Those numbers are worth unpacking. Prefill is the phase where the model processes your input prompt; decode is the token-by-token generation phase you see as output. A 1.35x decode improvement is the one users actually feel: responses appear faster. The 1.23x prefill gain is more meaningful for developers building retrieval-augmented pipelines where large context chunks get processed repeatedly.

Gizmodo frames this as running AI on your GPU instead of the cloud, which captures the user-facing pitch accurately. The M5 Max has a unified memory architecture that collapses the traditional CPU/GPU boundary, and Lily's Metal kernels are written to exploit that directly rather than going through the MLX framework's generalization layer. Specialization costs breadth and gains speed; that trade-off is the whole project.

MLX-LM, Apple's own machine learning framework for Silicon, is the obvious comparison target. The M5 Max hardware improvements over M4 already pushed local AI benchmarks significantly, so Lily is compounding a hardware advantage with a software one. Whether beating MLX-LM by 23-35% in these specific conditions translates to a maintainable lead as Apple continues updating its framework remains unclear. Framework-level optimizations eventually catch up to hand-tuned kernels, unless the hand-tuning keeps moving.

The company is a cloud-based AI search product. Its business model depends on users querying its service, not running inference locally. Releasing a local inference engine doesn't directly cannibalize that, because Qwen3.6-35B-A3B running on a MacBook Pro and Perplexity's cloud product serve different use cases and user segments. But the framing of "reducing reliance on cloud infrastructure" as a feature cuts in a more interesting direction: Perplexity may be building toward a hybrid architecture where on-device processing handles lower-latency or privacy-sensitive tasks while the cloud handles more complex queries.

That framing, though, comes from the brief rather than from anything Perplexity has publicly committed to. The sources don't spell out a product roadmap. What they do show is a company with internal Metal/Rust expertise publishing that expertise as open source. The community benefit is real regardless of the corporate motivation.

From a community dynamics standpoint, single-model inference engines occupy an odd niche in the OSS AI ecosystem. Projects like llama.cpp earned broad adoption by supporting dozens of model architectures across every platform imaginable. Lily's scope is explicitly narrow: one model, one chip generation, one OS ecosystem. That narrowness is a feature for performance and a liability for community growth. Developers who need Qwen3.6-35B-A3B on M5 Max hardware get something highly optimized; everyone else gets source code they can learn from but probably won't run directly.

The Rust choice reinforces this read. Rust gives you memory safety without a garbage collector and predictable performance characteristics at the cost of a steeper learning curve and smaller contributor pool than C or Python. For a performance-critical inference kernel, that trade-off makes sense. For building a large contributor community, it narrows the funnel. Whether Lily accretes community contributions or stays primarily a Perplexity-maintained artifact depends heavily on whether the company invests in contributor documentation and broadens model support over time. The sources don't tell us anything about that yet.

The OSS AI inference space on Apple Silicon has become surprisingly competitive. oMLX delivers 47 tokens per second compared to LM Studio's 16 on Apple Silicon, though with reliability tradeoffs. MLX-LM is the framework-level foundation most of these tools build on or compare against. Lily's approach of bypassing MLX-LM's abstractions is a bet that hand-tuned Metal kernels for a specific model will stay ahead of generalist optimizations. That bet has historical precedent in GPU computing, where hand-tuned CUDA kernels regularly outperformed library abstractions until NVIDIA's libraries caught up. Apple's incentives to keep MLX-LM competitive are strong, which means Lily's performance advantage has a natural expiry date unless it keeps pace.

The labor dimension here is understated in the initial coverage. Writing custom Metal kernels for transformer inference is specialized work. Perplexity paid engineers to do it, and now that work is public. This is how a lot of productive OSS gets made. But it does mean the project's sustainability depends on Perplexity's continued investment, not on an organic contributor community that materialized around a shared need. If Perplexity pivots away from local inference work, Lily's development trajectory becomes uncertain fast.

For developers deciding whether to build on Lily today: the performance numbers are real on the specific hardware configuration tested, the Rust/Metal architecture is coherent, and the open-source terms mean you can read the code before committing to it. The risks are narrowness of scope, dependency on a single corporate maintainer, and the probability that MLX-LM or another actively maintained framework closes the gap. Whether that's an acceptable trade-off depends entirely on whether you need maximum performance on M5 Max hardware right now, or whether portability and long-term maintainability matter more.

Put differently: Lily is a sharp tool. The question is whether sharp and narrow serves your project better than broad and maintained by Apple.

More Like This

Google Gemma 4 chat interface with starry background, showing message input box and installation guide text, Windows and…

Google's Gemma 4 Brings Powerful AI to Consumer Hardware

Google released Gemma 4 under Apache 2.0 license. The open model runs on standard GPUs, challenging the assumption you need enterprise hardware for capable AI.

Dev Kapoor·7 months ago·6 min read
Blue cartoon mascot character throwing a vision board into a trash can, illustrating AI vision system being discarded or…

Gemma 4's Architecture Rethinks Multimodal AI

Google DeepMind's Gemma 4 ditches separate vision encoders for a unified architecture. Here's what that design choice actually means for open-source AI.

Dev Kapoor·2 months ago·7 min read
Gradium AI's TTS Model: 81% Accuracy at 216ms

Gradium AI's TTS Model: 81% Accuracy at 216ms

Gradium AI's new TTS model hits 81% on hard sentences at 216ms latency. We examine what the Hugging Face release actually gives the community.

Dev Kapoor·2 months ago·6 min read
Meta Caps AI Token Budgets and Launches Agent Hatch

Meta Caps AI Token Budgets and Launches Agent Hatch

Meta is capping per-engineer AI token budgets and rolling out an internal agent called Hatch. Here is what that means for developer tooling teams.

Dev Kapoor·1 month ago·6 min read
DeepMind WeatherNext 3 Brings 5km Hourly AI Forecasts

DeepMind WeatherNext 3 Brings 5km Hourly AI Forecasts

Google DeepMind's WeatherNext 3 delivers 5km resolution global weather forecasts refreshed every hour using live satellite data and weather station inputs.

Dev Kapoor·1 month ago·6 min read
A glowing UFO with blue lights hovers above a mystical geometric symbol against a dark starry background with "Gemma 4"…

Google's Gemma 4 Ships With Apache 2 License—No Catches

Google's Gemma 4 arrives with full Apache 2 licensing, native multimodal support, and edge deployment capabilities. What changed, and what does it mean?

Dev Kapoor·7 months ago·6 min read
Man wearing glasses in a tech studio with monitoring equipment in background, text overlay reading "7 PROJECTS TO WATCH 2026

Open Source Infrastructure Projects to Watch in 2026

Brandon Lee of VirtualizationHowto maps seven OSS infrastructure projects gaining traction in 2026—from Pi-hole HA to Pangolin—and what they reveal about where self-hosting is heading.

Dev Kapoor·3 months ago·7 min read
Red "IT'S ABSURD" text above four circular AI model logos (GLM 5.2, Grok 4.5, Fable 5, GPT-5.6-Sol) on black background

GPT-5.6 Sol, Fable 5, Grok 4.5, GLM 5.2 Compared

Four major AI models dropped within weeks of each other. Here's what actually separates them—and why the open-weight option changes the calculus.

Dev Kapoor·3 months ago·6 min read