Why run large language models exclusively in the cloud when high-end consumer hardware sits idle on user desks? Perplexity has addressed this architectural bottleneck by releasing Perplexity Lily, an open-source, high-performance local inference engine engineered specifically for Apple Silicon. By pairing low-level systems programming in Rust with custom Metal shading kernels, Lily challenges existing frameworks like Apple MLX to unlock faster on-device execution for privacy-sensitive workloads.
As conversational search systems evolve from simple query answering to autonomous agent workflows, the compute paradigm is fracturing. Centralized data centers face escalating latency and compliance challenges when analyzing local user files, proprietary codebases, and private records. Lily serves as the foundational client-side runtime for Perplexity’s hybrid compute model, offloading sensitive computation directly to macOS hardware while synchronizing with cloud infrastructure for broad web retrieval.
Understanding Perplexity Lily and Rust-Metal Architecture
Most mainstream local AI frameworks rely on high-level Python wrappers, which introduce runtime overhead and memory management trade-offs. Perplexity Lily takes a different approach by compiling directly to native machine code using The Rust Programming Language for control flow and memory safety, while dispatching matrix operations straight to Apple unified memory via Apple Metal Developer Documentation.
Lily is explicitly optimized around the Qwen3.6-35B-A3B Mixture-of-Experts architecture. Rather than attempting to serve every open-weight model with a generic execution graph, Lily optimizes kernel fusion, KV cache allocation, and memory bandwidth utilization specifically for this target parameter layout.
Perplexity Hybrid Compute Architecture
Dynamic orchestration · Cloud indexing · Local privacy boundaries
By leveraging the shared address space of Apple unified memory architecture (UMA), Lily eliminates expensive host-to-device PCIe transfer penalties. The CPU and GPU operate directly on unified model weights without intermediate buffer duplication.
Perplexity Lily vs Apple MLX Performance Benchmarks
In official benchmark testing on the Apple M5 Max platform, Perplexity Lily demonstrated measurable throughput advantages over Apple’s native MLX-LM runtime when executing identical Qwen3.6-35B-A3B quantized weights. Optimized memory alignment and bespoke fused attention kernels allow Lily to saturate unified memory bandwidth more efficiently during both the prompt ingestion and autoregressive decoding phases.
⚡ Perplexity Lily (Rust + Metal)
- Prompt Processing1.23x speedup vs MLX-LM
- Token Generation1.35x speedup vs MLX-LM
- Target ModelQwen3.6-35B-A3B MoE
- Runtime DependencyZero Python overhead (Native binary)
🍏 Apple MLX-LM (Python + C++)
- Prompt ProcessingBaseline 1.00x throughput
- Token GenerationBaseline 1.00x throughput
- Target ModelBroad general architecture support
- Runtime DependencyPython environment required
Prompt prefill speed increased by an average factor of 1.23x, while active token generation saw a 1.35x acceleration. Because Mixture-of-Experts architectures dynamically activate only a subset of parameter weights per token, scheduling efficiency at the driver level determines total generation latency.
To see how other edge inference engines manage memory allocation on workstation hardware, read our deep dive.
The Shift to Hybrid Client-Cloud Inference
The launch of Lily highlights an industry-wide pivot toward hybrid AI computing. Monolithic cloud models excel at web-scale search retrieval and massive reasoning tasks, but uploading hundreds of megabytes of local developer repositories, financial spreadsheets, or internal corporate documents introduces severe latency and data governance liabilities.
Perplexity’s hybrid architecture partitions user queries intelligently:
- Cloud Tier: Coordinates web crawling, broad knowledge graph traversal, citation indexing, and heavy multimodal pre-processing across remote GPU clusters.
- Local Tier (Lily): Executes on the user’s Mac workstation to ingest local PDFs, sensitive source code, and personal databases without raw data leaving the client device.
{
"engine": "lily-metal-native",
"model": "Qwen3.6-35B-A3B",
"hybridRouting": {
"routeLocal": ["file_system", "user_credentials"],
"routeCloud": ["web_search", "citation_index"]
},
"memoryAllocationGB": 28.5
}
This division allows client applications to achieve zero-egress compliance for sensitive data while maintaining access to real-time internet intelligence.
Developer Implications and Hardware Boundaries
Deploying a 35-billion parameter MoE model locally requires substantial hardware headroom. While active parameters per token remain low in sparse architectures, the entire weight matrix must reside in high-bandwidth memory to prevent disk-swapping bottlenecks.
| Hardware Platform | Unified Memory Tier | Supported Quantization | Practical Execution Mode |
|---|---|---|---|
| Apple M-Series Base / Pro | 16 GB – 36 GB | 4-bit Compressed | Constrained / Partial Context |
| Apple M-Series Max | 64 GB – 128 GB | 4-bit / 8-bit Native | Optimal Performance (Full Context) |
| Apple M-Series Ultra | 128 GB – 192 GB+ | FP16 / Unquantized MoE | High-Concurrency Workstation Serving |
For software engineers exploring open-weight models, Lily represents an alternative to broad-spectrum frameworks such as Ollama Documentation or vLLM Project. By sacrificing multi-model generic support in favor of architecture-specific tuning for Qwen3.6-35B-A3B, Lily achieves near-bare-metal execution efficiency on Apple silicon.
For a broader look at designing low-latency local agent pipelines, consult our guide.
Strategic Outlook: The Battle for the Personal AI Runtime
The release of Lily indicates that AI search providers are expanding beyond remote API endpoints to capture the local client runtime. Whoever controls the on-device inference layer gains native integration into local file systems, background shell processes, and personal workflows.
While cloud-only architectures struggle with recurring inference server costs, distributing compute to user-owned Apple Silicon hardware allows service providers to scale complex agent workflows cost-effectively. As open-weight MoE models become more parameter-efficient, purpose-built runtimes like Lily illustrate how native systems programming will bridge local workstations and cloud intelligence networks.
Based on public announcements and open-source documentation by Perplexity (September 2026).
Frequently Asked Questions
What is Perplexity Lily?
Perplexity Lily is an open-source local inference engine developed in Rust and Metal, designed specifically to accelerate Mixture-of-Experts language models on Apple Silicon hardware.
How does Lily differ from Apple MLX?
While Apple MLX is a general-purpose machine learning framework with Python bindings, Lily is a compiled native runtime optimized specifically for targeted architectures like Qwen3.6-35B-A3B to maximize memory bandwidth saturation.
Why is Perplexity investing in local on-device inference?
Local inference enables a hybrid compute model where private documents and codebases are processed locally on the user's Mac for zero-egress data privacy, while web retrieval and heavy indexing remain in the cloud.
What hardware is required to run models with Lily?
Running 35-billion parameter MoE models effectively requires Apple Silicon hardware with at least 36 GB to 64 GB of unified memory to accommodate full weight matrices and active KV context caches.