You are offline

Switched to Home view. Returning to your route when internet connects.

← Back to Knowledge Center
Coding
Published:Nov 28, 2026
•
Updated:Nov 28, 2026
•9 min read

Building The Wisp Family: Local Sub-30ms Code-Autocomplete Models Trained on One Mac

Building The Wisp Family: Local Sub-30ms Code-Autocomplete Models Trained on One Mac
Anjali Joshi

Anjali Joshi

Contributor & Platform Mentor

Writes about programming, productivity, and online learning.

So, I've been thinking a lot about this lately and wanted to write it down.

Most local coding models try to do everything in one trunk: chat, tool calling, chain-of-thought reasoning, and inline autocomplete. Once you shrink a model down to 0.5B-1.5B parameters, mixing chat fine-tuning into cursor autocomplete causes three immediate problems: it leaks markdown fences, forgets when to stop, and feels sluggish while you type.

Over the past few weeks, I have been building **The Wisp Family** (*The Wisp Fieldbook*) -- a series of strictly **Apache-2.0**, non-chat, Fill-in-the-Middle (FIM) code-autocomplete specialists trained, distilled, verified, and quantized on a single Apple Silicon Mac (M5 Max, 128 GiB).

Here is where the family stands today, what you can run locally right now, the real blind benchmark receipts from our upcoming **Wisp-2.1** release, and four genuinely surprising engineering lessons we uncovered along the way.

Meet The Wisp Family

Every model in the series ships with open Apache-2.0 weights, raw benchmark receipts, and zero chat SFT by design:

  • No. 001 - wisp-coder-110m: A 108M scratch-trained Llama + Multi-Token Prediction research model (live browser demo: An 854 MiB MLX-8bit hybrid linear-RNN (18 GatedDeltaNet + 6 Full Attention layers) with native EAGLE-3 speculative decoding that hits 27.5 ms warm keystrokes on Apple Silicon. Try it in your browser on the free CPU playground** (In Final Certification): A dual-sibling Pure-FA Qwen2.5-Coder pair distilled on-policy from Apache-2.0 Qwen2.5-Coder-32B. 1.5B-Pro already cleared 11/13 certification gates (every blind quality, roundtrip, decontamination, and 0/1,194 bitwise parity check) while we finalize its upgraded 2-layer EAGLE-3 drafter and 540 MB 0.5B-Fast sibling.

You can browse everything published so far in The Wisp Fieldbook Collection on Hugging Face

We evaluated `Wisp-2-0.8B` on Apple M5 Max against our frozen blind Tier-1 suite: **566 holes across 200 files from 30 unseen open-source repositories created strictly after June 1, 2026** (11 languages, matched repo-level FIM headers, identical 8 stop sentinels):

| Model (8-bit MLX on M5 Max) | PSM Exact Match | SPM Exact Match | PSM Auto-Stop | Warm Keystroke p50 | Forced 24-tok p50 | basically, | --- | ---: | ---: | ---: | ---: | ---: | | **Wisp-2-0.8B (EAGLE-3 MTP D=3)** | **32.86%** | **30.57%** | **97.70%** (13/566 cap) | **27.49 ms** | **67.03 ms (358 tok/s)** | | Wisp-2-0.8B (AR, no MTP) | -- | -- | -- | 32.81 ms | 94.37 ms (1.41x slower) | | Qwen2.5-Coder-1.5B (stock 8-bit) | 24.20% | 8.13% | 66.61% (189/566 cap) | 47.98 ms | 128.84 ms (1.92x slower) | | Qwen2.5-Coder-0.5B (stock 8-bit) | 14.66% | 3.18% | 42.05% (328/566 cap) | 72.75 ms | 73.22 ms | | Qwen3.5-0.8B-Base (raw start) | 0.53% (62x lift) | -- | 89.22% | -- | -- |

The biggest surprise in that table wasn't parameter count -- it was **autonomous stopping**. Under identical headers and stop tokens, stock `Qwen2.5-Coder-0.5B` slammed into the 256-token cap on **328/566** holes (16x median length ratio), and stock `1.5B` hit the cap on **189/566** (3x median length). `Wisp-2-0.8B` stopped cleanly on **97.70%** of holes with a **1.0x** ideal length ratio and **0%** markdown fence leaks.

Where Wisp-2-0.8B Hit a Wall (and Why We Didn't Hide It)

On standalone executable algorithms from scratch (Tier-2A, 80 tasks across 8 compilers/runtimes in a macOS Seatbelt sandbox), `Wisp-2-0.8B` improved **4.3x** over its raw base (`37.5%` vs `8.8%`), but still trailed 5.5T-token code-pretrained `Qwen2.5-Coder-1.5B` (`76.25%`), and sat at `3.33%` (`8/240`) on real-repo executable bodies (Tier-2B).

When we tried pushing a second iteration on the 0.8B hybrid trunk, it hit `20.85 ms` warm keystrokes and passed 11/13 gates -- yet flatlined at `37.5%` Tier-2A (`4.58%` Tier-2B). Instead of shipping a half-win, we executed an honest auto-revert and pivoted **No. 003 (`Wisp-2.1`)** to a dual-sibling Pure-FA `Qwen2.5-Coder` architecture distilled directly from Apache-2.0 `Qwen2.5-Coder-32B`.

Inside Wisp-2.1 (In Final Certification Now)

Switching to Pure-FA `Qwen2.5-Coder` (`1.5B-Pro` at `1.53 GB` + `0.5B-Fast` at `540 MB`) unlocked two huge advantages:

  1. Exact same-tokenizer soft-logit On-Policy Distillation (GKD-OPD) from Apache-2.0 Qwen2.5-Coder-32B (:151936 exact logit alignment, sparse K=64 covering 99.84% probability mass in Phase 1 + live 32B on-policy rollouts in Phase 2).
  2. O(1) KV-cache rollback on speculative draft rejections with zero linear-RNN state snapshot overhead.

Here are the **actual blind Stage-11 numbers** already recorded on `Wisp-2.1-1.5B-Pro`'s frozen 8-bit trunk across all four frozen benchmarks (every single blind quality, roundtrip, decontamination, and `0/1,194` bitwise speculative parity gate passed):

Benchmark (Frozen Blind & Sandboxed Suites) Wisp-2-0.8B (No. 002) Qwen2.5-Coder-1.5B (stock 8-bit) Wisp-2.1-1.5B-Pro (Frozen Trunk, 8-bit)
Tier-1 Blind EM (n=566, post-June-2026 repos) 31.80% (mixed) 24.20% PSM / 8.13% SPM 37.99% (35.34% PSM / 40.64% SPM)
Tier-1 Multi-Line EditSim / AST (n=240, 10 langs) 0.2310 / 73.3% -- 0.3425 (+11.2 pp) / 82.5% AST
Tier-2A Executable Algorithms (n=80, 8 langs) 37.50% (30/80) 76.25% (61/80) 90.00% (72/80) (100% C, C++, Go, Swift)
Tier-2B Blind Executable Repos (n=240, 8 langs) 3.33% (8/240) 7.92% (19/240) 12.50% (30/240) (3.75x Wisp-2, +58% vs stock)
DEV Exec128_v2 (vs JetBrains Mellum-4B: 35/128) -- -- 50.0% (64/128)

**Full transparency on why it isn't public yet:** On our first full Stage-11 run, `Wisp-2.1-1.5B-Pro` passed **11/13 gates** and held strictly on the long-context (`1,791`-token) warm speculative latency bar (`34.13 ms` vs `31.95 ms` AR with a 1-layer EAGLE-3 drafter). Because EAGLE-3 speculative decoding is **100% lossless** (`0/1,194` mismatches against greedy AR), we are training an upgraded **2-layer Pre-Norm EAGLE-3 drafter** right now to push warm latency well under our `<= 32 ms` / `>= 1.25x` AR bar -- keeping every quality number above bitwise identical -- and then finishing its `540 MB` `Wisp-2.1-0.5B-Fast` sibling before public release.

Four Counterintuitive Engineering Lessons From Training on One Mac

honestly, ### 1. FP32-Scale 8-Bit Quantization Was Both Cleaner *and* Faster Than FP16 During `Wisp-2`'s 1,000-round speculative parity audit, standard FP16-scale 8-bit quantization produced 4 subtle token tie flips from 1-ULP rounding on the FP16 logit grid (`0.015625`). Promoting **only** the quantization scales and GDN recurrence states to FP32 while keeping weights packed in 8-bit (`854.1 MiB`, `group_size=64`) eliminated every tie (`0/1,000` drift, `1.000000` cosine vs stock `mlx_lm.load()`), lifted blind EM, and actually ran slightly **faster** than FP16.

2. Zero-Step Uniform 8-Bit PTQ Beat Every 8-Bit QAT Run We Tried

in my experience, before running Stage-11 on `Wisp-2.1-1.5B-Pro`, we ran a 7-candidate controlled DEV compression factorial on our 32B-distilled BF16 trunk (`65/128` Exec128_v2, `73/80` Tier-2A). To our surprise, **zero-step uniform 8-bit PTQ** (`group_size=64`, zero gradient steps) beat or tied every 8-bit QAT run:

tbh, - **0-step uniform 8-bit PTQ:** `64/128` Exec128_v2, `72/80` Tier-2A, `5.83%` ML600 severe truncation, `0.999776` logit cosine, and only **`1/3,414` (0.029%)** EOS flips vs BF16.

  • Why QAT drifted earlier: An off-by-one bug in our KL anchor covered code tokens 0..M-1 and left the terminal EOS position (t = M) unanchored against the parent while anti-echo penalties pushed EOS logits upward. Anchoring terminal EOS cut QAT truncations nearly in half (60 -> 38/600) -- and proved zero-step PTQ (35/600) had no quantization damage left to heal.

**Takeaway:** Always run the zero-step PTQ control before spending GPU hours trying to heal quantization damage that isn't there.

3. Qwen2.5 Massive-Activation Sink Channels Break Naive EAGLE-3

Naive EAGLE-3 stalled on `Qwen2.5-Coder` because Qwen2.5 carries extreme activation-sink channels (`133.1` on `0.5B`, `4,096.0` on `1.5B`) that get crushed up to `721:1` after the final RMSNorm. Switching to **pre-final-norm 3-tap fusion** (`L2, L13, L27_pre`), pre-norm recurrent state feedback (applying `self.norm` strictly on the logit branch), downstream RMSNorm warm-starting, Global Best-Fit Decreasing block packing (`99.84%` occupancy), and pure `HASS_KL(K=32)` unlocked lossless speculative drafting on Apple Silicon MLX.

4. Know What to Kill on the Receipts

Not every popular technique wins at sub-2B scale:

  • Mixed 4-bit at 0.8B: Lost -1.6 to -2.3 pp exact match and ran slower (27.8 ms vs 27.5 ms) because dequantization overhead outweighed bandwidth savings. Withheld.
  • W4-MLP at 1.5B: Degraded Python PSM and multi-line EditSim with negligible speed gain under speculative verify shapes on M5 Max. Retired.
  • Single-turn RLVR (Dr.GRPO-FIM): Even with an Ed25519-signed Bonferroni-252 sandbox verifier recording 0/2,016 false positives and 0/240 false negatives across 8 languages, single-turn RLVR dropped Exec128_v2 from 65/128 to 60/128. We closed RLVR cleanly instead of reward-hacking past the numbers.
Run Wisp-2-0.8B Locally on Mac in 60 Seconds

You don't need our training repo to run Wisp locally. The MLX-8bit Hugging Face repo bundles a self-contained, zero-dependency `wisp_runtime/` package exposing a local OpenAI-compatible & `/v1/fim/completions` server (Continue.dev and Zed ready, loopback-only by default):

Bash
hf download philipjohnbasile/Wisp-2-0.8B-MLX-8bit --local-dir ./Wisp-2-0.8B-MLX-8bit
cd ./Wisp-2-0.8B-MLX-8bit
pip install -r requirements.txt

# Quick single-completion smoke test
python -m wisp_runtime.serve --bundle-dir . --demo

# Start the local 27.5 ms autocomplete server
tbh, python -m wisp_runtime.serve --bundle-dir . --host 127.0.0.1 --port 8091

Or test it right now without installing anything on the Wisp-2 Live CPU Playground:** Wrapping up the 2-layer EAGLE-3 drafter for `1.5B-Pro`, running the full 13-gate Stage-11 certification for both siblings, and shipping a dual-sibling Hugging Face Space + standalone `wisp_runtime/` packages. 2. **Researching `Wisp-3.0`:** A **dual-brother** local coding architecture on Apple Silicon -- keeping a sub-25 ms Wisp cursor reflex model co-resident in unified memory alongside a strictly permissive (`MIT` / `Apache-2.0`) deep repair sibling with a deterministic evidence-selection memory layer.

honestly, if you're experimenting with MLX, speculative decoding, hybrid SSM/attention architectures, or small coding models on Apple Silicon, I'd love to hear your thoughts or benchmark numbers on M1-M5 Macs!

Let's chat in the comments if you have any questions about this setup.

Comments (0)

No comments yet. Be the first to join the dialogue!