PAIR, Lily and zg: Check Compatibility Before Building a Local Stack
In this article
PAIR, Lily and zg serve different jobs. Combining them needs more evidence than three projects describing their interfaces as compatible with common AI tools.
Correction, 22 October 2026: The earlier article called these components an interoperable production stack without an integrated test. It misstated PAIR's handling of running requests and applied broader Perplexity product requirements to the public Lily engine. This revision uses the projects' documented boundaries.
A router does not supply a runtime
NVIDIA's PAIR overview describes routing a whole request to one eligible node and its engine. It does not pool GPU memory or move a request already in flight.
Model presence and request compatibility therefore matter on every eligible node. A router cannot make an unsupported request work merely by delivering it to a faster computer. Our infrastructure review separates independent-request capacity from single-request speed.
Lily's API surface is deliberately small
The public Lily README requires M5-or-newer Apple GPU hardware and the specified affine 4-bit Qwen checkpoint. It accepts text system, user and assistant messages, with a final user message. Thinking is disabled and decoding is greedy.
The documented server rejects streaming and tool fields. A harness expecting streamed events or native tool calls will need a compatible execution path or an adapter. A chat-completions route name alone does not establish those capabilities.
An adapter would also need validation. Dropping a tool field to make a request pass validation changes the requested operation; it is not a successful integration.
The 2 September performance report measures batch-one production generation on an M5 Max against a specified MLX version. It excludes HTTP, model loading, tokenization and detokenization. Its long-context prefill rows include results slower than MLX, so the earlier blanket statement about winning every point does not apply to this report.
Those measurements do not give an end-to-end agent latency or establish numerical equivalence between the two engines.
Retrieval has its own model and update path
zg's repository combines lexical and vector workspace search. Its published agent benchmarks identify their agent/model and Qwen3.7 Text Embedding profile. Do not assign those results to a different default embedding configuration.
Keep the evidence path explicit: files selected for indexing, embedding location, index version, search request and returned passages. A local index can still be paired with a remotely hosted answering model. Conversely, local generation does not establish that embeddings were produced locally.
Include initial and incremental indexing in the operating budget. An apparently fast query can depend on substantial work performed earlier. Permission changes and deletions also need to reach the index.
Verify each boundary before measuring the combined workflow
| Boundary | Check | Failure to test |
|---|---|---|
| Harness to runtime | Actual fields, roles and response format | A required field is rejected or silently lost |
| Router to engine | Model inventory and node eligibility | No compatible node is available |
| Workspace to index | Selected files, embedding location and version | Stale or unauthorized evidence remains searchable |
| Response to action | Parsing, tool authority and accepted outcome | Text that looks like a tool call is mistaken for execution |
This is a proposed integration review. AI Mastery has not run the three components together.
Start with one representative workflow and record its requests and effects across the boundaries. Exercise an unavailable node, an unsupported request field and an outdated index. Measure through the accepted final result, including adapters and retries.
Only after that test can the combined workflow support a claim about its speed, privacy or reliability. The separate release results remain useful descriptions of their own measured configurations.
Frequently asked questions
Has AI Mastery tested PAIR, Lily and zg as one integrated stack?
No. This article reviews their documented boundaries and proposes integration checks. It does not report an integrated deployment or benchmark.
Does the public Lily server support streaming and tool calls?
Its current README says it rejects streaming, tools, response formats, sampling parameters and multimodal content. It offers a minimal text chat-completions interface with greedy decoding.
Can Lily's public engine run on any Apple Silicon Mac?
No. The README requires Apple GPU family 10 or later, meaning M5 and newer, macOS 26 or later, and the specified Qwen3.6-35B-A3B affine 4-bit checkpoint.
Do zg's cited benchmark savings establish savings with its default local embeddings?
No. Its benchmark documentation identifies the actual embedding profile and model. Test the profile you plan to run and include indexing expense.
Related Reading
HydraFusion Cuts Costs 67% While Beating Opus 5 on TerminalBench
GitHub's Project HydraFusion builds a per-request execution plan in Copilot CLI, routing across models from multiple providers to cut costs up to 67%.
zg Unifies ripgrep, BM25, and Vector Search in Two MCP Tools
Qwen developers release zg (zvec-grep), an Apache 2.0 npm tool that puts ripgrep, BM25, and on-device vector search behind two MCP tools — no GPU required.
OpenClaw 2.0: 575 ms UI Startup, SQLite Storage, One Trust Boundary
OpenClaw 2.0 (v2026.8.1) cuts Control UI startup from ~1.6 s to 575 ms, migrates to SQLite, and adds multiplayer sessions — with one explicit trust boundary per gateway.