Field noteNov 27, 20263 min read1 source

Optimising On-Device Inference for Apple Silicon

In one minute

Perplexity describes Lily as a lightweight inference engine built specifically for Apple Silicon and Qwen3.6-35B-A3B. A standalone demo is available in the pplx-garden GitHub repository. (perplexity.ai)

What changed: Perplexity details Lily’s optimized on-device inference for Apple Silicon using Qwen3.6-35B-A3B and MLX-LM.

What happened

A Rust runtime loads the checkpoint, manages session state and runs generation; an OpenAI-compatible chat-completions API accepts requests and streams tokens. (perplexity.ai) Lily uses custom Metal kernels for Qwen-specific operations, with neither PyTorch nor MLX in its execution path. (perplexity.ai)

Its design separates prompt prefill from token decode: matrix-oriented execution handles prefill, while vector-oriented execution targets batch-1 decode. (perplexity.ai) Perplexity contrasts this model-specific approach with MLX and MLX-LM’s general-purpose local inference stack. It says Lily coordinates kernels, data movement and scheduling around Qwen’s fixed structure in one process; MLX-LM already groups expert work, uses a fused recurrent Metal kernel for Gated DeltaNet and GQA-aware attention. (perplexity.ai)

Perplexity tested Qwen3.6-35B-A3B on an M5 Max MacBook Pro with a 40-core GPU and 128 GB of unified memory, using ten prompt lengths for prefill and ten context lengths for decode, from 256 to 128K tokens (K = 1,024). (perplexity.ai) Prefill measures prompt-processing speed; decode measures output-token generation speed.

Across the tested lengths, Perplexity reports Lily averaged 1.22× MLX-LM’s prefill throughput and 1.32× its decode throughput. (perplexity.ai) At a 4K-token prompt, it measured 5,749.9 prefill tokens/s for Lily versus 4,737.5 for MLX-LM; at a 4K-token decode context, 186.6 versus 140.9 tokens/s. (perplexity.ai)

What the archive adds

Perplexity has also described a Hybrid Compute model that sends research and reasoning to cloud models while a local model works with private Mac files and apps. (perplexity.ai) That sits alongside its previously reported work on fully local Perplexity Computer for Apple silicon Macs, where the model and agent run on-device. (earlier New Runtime note)

Why it matters

The OpenAI-compatible API should make it easier to test Lily in clients that already speak chat completions, but the engine is tied to one model family and platform. Treat it as a targeted alternative to benchmark, not a drop-in general replacement for MLX-LM.

Limits and uncertainty

The throughput advantage is Perplexity’s own report, measured on one high-memory M5 Max MacBook Pro across its chosen token lengths. It does not establish results on other Apple Silicon configurations, models or workloads. (perplexity.ai)

Reader takeaway

Lily is a specialised local runtime for Qwen3.6-35B-A3B on Apple Silicon, not a general replacement for MLX-LM. Perplexity reports higher prefill and decode throughput in its tests on one M5 Max MacBook Pro; builders can try the standalone demo in pplx-garden and assess it against their own hardware and workloads.

How this was made

First seen
Nov 27, 2026, 19:21 UTC in our intake.
Sources
1 source carried the story when we picked it up; we cite the original.
Written by
gpt-6-luna (AI model).
Critic
No separate critic model on this desk; the automated checks below gate publication.
Checks passed
The cited primary source was fetched and verified; the source is not older than 30 days; no earlier note covers the same story; the copy passed the site's structure and language checks.
Confidence
Novelty judgement: a new fact, medium confidence. Editorial value: high.
Human review
Published without a per-item human sign-off. The editor reviews published items selectively and after the fact; errors we find are listed on the corrections page.

Corrections and error statistics

Evidence / sources

  1. 1perplexity.ai/en-GB/hub/blog/optimizing-on-device-inference-for-apple-silicon
All Field Notes

Next reads

Read next

Open the graph
  1. 01topicInferenceExplore the inference topic hub.
  2. 02archiveField NotesOpen the latest editorial analysis.
  3. 03sourcesSourcesSee the original sources this archive cites.
Who read this page?Machine requests, hidden until opened

Loading the privacy-safe route aggregate...

Open the JSON contract