Lily's Local Inference Results Depend on the API and MLX Version

Published · Updated • news
Open WeightsInferenceMoEPerplexity

Perplexity's public Lily engine is a Rust and Metal server for a specific Qwen checkpoint on newer Apple hardware. Its documented API and performance contract are narrower than the earlier version of this story described.

Correction, 22 October 2026: The earlier story incorrectly said the public server streamed responses, mixed shipping-product requirements with engine requirements and presented unsupported aggregate speed figures as a general result. Those claims and the unverified per-feature ablation figures have been withdrawn from this revision.

A deliberately restricted server

The README requires M5-or-newer Apple GPU hardware, macOS 26 or later and Qwen3.6-35B-A3B in its specified MLX affine 4-bit layout. The loader validates the architecture and quantization rather than accepting arbitrary Qwen checkpoints.

The server uses greedy decoding with thinking disabled. It accepts a narrow text-message surface and rejects streaming, tools, response formats, multimodal input, sampling parameters and speculative decoding. Its session cache reuses state only when token-prefix equality holds.

These restrictions matter for an agent integration. A client using the same endpoint naming convention may still send unsupported fields or expect streamed tool events. Confirm the actual request and response contract before selecting the runtime.

Retain the measurement boundary

The project's 2 September comparison with MLX 0.32.2 reports batch-one generation on an M5 Max with 128 GB unified memory. It excludes model loading, tokenization, chat rendering, HTTP and detokenization.

The table includes:

Context tokensDecode ratio, Lily/MLXPrefill ratio, Lily/MLX
4,0961.255×1.108×
131,0721.236×0.801×

A ratio below one means Lily was slower for that measurement. The report describes separate production greedy trajectories and different work inside the two engines' token paths. It does not establish equal numerical output or identical graph execution.

The project's 1 September comparison uses a different MLX core version. Keep that version attached to any result rather than combining rows into a single undated speed claim.

What to measure in an application

An application benchmark needs the portions excluded from an engine-throughput test. Include startup, request preparation, queueing, response transfer and any handling needed for unsupported features.

Check correctness as well as speed. A reproducible token digest within one engine does not establish the same output between engines, and a short generation test does not establish success on an agent workflow.

Our local-stack compatibility review explains why a router, runtime and retrieval tool still require an integration test. AI Mastery has not reproduced Lily's published hardware benchmark or tested that combined stack.

Frequently asked questions

Can the public Lily engine stream responses or accept tool calls?

No. Its README documents a minimal text chat-completions API and rejects streaming, tools and several other optional request fields.

Is Lily faster than MLX at every measured point?

No. The 2 September report includes long-context prefill ratios below one. Distinguish prefill from decode and retain the compared MLX version.

Has AI Mastery reproduced these performance results?

No. They are project-reported measurements with published reproduction instructions, not measurements from this site.

Free interactive tools for the decisions this piece raises.

Related Reading