Apocrypha & Apoc
Apoc is Qwen3.8-27B, re-quantized by us into a 2-bit-based mix (about 3 bits per weight on average) so it fits a single 16 GB Intel Arc A770, and served by llama-prism, our fork of llama.cpp with hand-written kernels for that card. Apocrypha is the desktop workspace built around it: a fork of OpenCode Desktop with memory recalled on every turn, plus a phone remote.
Apoc, the model
Qwen3.8-27B in our 2-bit "L1-10" mix, quantized with an importance matrix computed on Apoc's own workload. The current file (2026-10-26, "ista500-hq4k") trims the trunk and keeps the speculative-decoding head at 4 bits: KL against the 8-bit model 0.2686 at a 13,210 MiB peak on the card, so nothing spills to system memory. Runs at an 81,920-token context with a q4_0 KV cache. The 2026-10-24 file stays available. Apache-2.0, derivative of Qwen.
Apocrypha, the workspace
The desktop app built around the model: a fork of OpenCode Desktop with memory recalled on every turn, a thinking selector with an Off setting, an autonomous Auto mode, and Apoc Remote, a phone client that groups each turn's tool activity under one row. Public downloads are coming; the build is private for now.
How it got here
- Own importance matrix. Quantizing with statistics from Apoc's own conversations: KL 0.560 to 0.506, perplexity 10.69 to 9.35 at the same size.
- Sampled speculative drafts. Prose decode 28.1 to 31.4 tok/s, greedy output byte-identical.
- Zero-spill model and terse template. Peak 14,065 to 13,210 MiB; answers 42% shorter.
- New attention and DeltaNet kernels. Real-turn decode +6%, prefill +6%.
- Repeatable CSL output (5 of 5 identical runs, was 1 of 5) and a new prefill kernel: 215 to 304 tok/s.
- Quality check. The bench dipped after two builds; a same-binary test cleared the new prefill kernel (v2 184 vs v1 166 of 264). Switching each 10-27 kernel off showed the dip was noise. The v2 switch, missed at deploy, went live on 11-01 at 15:12.
Posts
A week inside Apoc: 42% faster prompt reading, repeatable CSL, a model that stopped spilling, and the bench that pushed back
Since 2026-10-25, Apoc got a zero-spill model (13,210 MiB peak), new attention and DeltaNet kernels (+6% decode), CSL output that comes out the same every time (5 of 5 runs, was 1 of 5), and a prefill kernel that reads long prompts at 304 instead of 215 tok/s. Then the graded quality bench dipped, so we tested each new kernel by switching it alone: none is the cause, and the dip was noise. (Correction: the new kernel only went live on 11-01.)
Speculative decoding at temperature: sampled drafts took Apoc's prose decode from 28.1 to 31.4 tok/s
If you sample at temperature above zero, greedy drafts get rejected more than they need to. Sampling the draft and accepting it by the standard speculative-sampling rule raised acceptance from 0.434 to 0.525 and decode from 28.1 to 31.4 tok/s on our prose prompts, with greedy output unchanged. Also: how to rank close quantizations when mean KL is too noisy, and a launcher that died on a harmless warning.

Choosing a local model for a 16 GB Arc A770: 71 models checked, and why we keep our own
We checked 71 models that could replace our local coding model on one 16 GB Intel Arc A770, and kept our own Qwen3.8-27B. What we learned that applies to any 16 GB card: check the quant types inside a file before you download it, where 'shared memory' really goes, why prefill wants different kernels than decode, dense versus MoE at this size, and how far apart benchmark harnesses are. Every model we would test next is linked.
Calibrate your quantizer on your own traffic: 9.5% lower KL at the same size
An importance matrix built from Apoc's own requests and replies cut mean KL against Q8_0 from 0.5595 to 0.5065 at the same 9.94 GiB, with the steps to do it yourself in stock llama.cpp. Also: a llama-quantize pattern that silently caught the wrong tensors, a speed-up that was really a fresh process, draft heads that win offline and lose live, what a strict grammar costs in tok/s, and how we are teaching it a compact notation.
Apocrypha: what broke when we drove a local model from a phone, and how we sized its context
Lessons from four days on the app around Apoc, our local model: what a phone client needs to survive bad connections (no full-list polling, idempotent sends, stall watchdogs, a push that knows when a turn ended), why the context window is now what fits on the card, how we stopped context leaks, and a slowdown that only a relaunch cured.