DOCS · START HERE

Roadmap

Agreed with the project owner on 2026-10-03, updated on 2026-10-06. Updated as steps finish: each step links its milestone document when done. Estimates are estimates; only measured numbers go into the results pages.

Where things stand (0.9.1, 2026-10-08)#

  • 24 GiB Mac (M4 Pro), file F2:
    • default, experts from the SSD: decode 34 tok/s;
    • every expert resident (raised GPU limit): 45–46 tok/s, 49–58 with MTP;
    • prompt ingestion about 360 tok/s;
    • the llama.cpp launcher decodes 36–38 tok/s there.
  • 48 GiB Mac (M4 Max), every expert resident:
    • IQ3_XXS 80 tok/s;
    • IQ2_XXS 86 tok/s, 97 with MTP (llama.cpp 72.5);
    • prompt ingestion about 900 tok/s;
    • Red Lite G2 (dev64) is an option with better perplexity at the same speed.
  • Coding agents: Red Lite CF2 (dev63), Qwen3-Coder-Next at 2 bits, passes 12 of 12 harder repository tasks on both Macs. redlite setup-pi uses temperature 0.3, where the 2-bit Coder did not loop.
  • Long contexts: the model's 262K are read correctly (needles at 256K); 64K is the agent window by default.
  • Project site with the docs and a search: redlite.alfonsodaniello.it.

Next#

  • Faster first ingestion of long prompts: at 256K it takes 24 minutes. The prefill attention is limited by the float32 matrix units (about 6 TFLOPS at 32K), not by key/value reads: sharing them across query heads made it slower (dev66, WHAT_DID_NOT_WORK), and so did more threadgroups per core. Half precision is not a lever: the M4 Max runs half and float simdgroup matrix products at the same 15.5–15.9 TFLOPS (dev70). The kernels run at 6–8 TFLOPS, so the room is in their structure. At 32K the prefill splits into attention 17.5 s, DeltaNet layers 14.7 s, experts 19.6 s.
  • Kernels redesigned from the Xcode profiles (dev72 tools): the prefill attention is float32-bound at 14 % occupancy with 166 registers; the routed-expert kernels are next. MLX ingests prompts about 50 % faster and decodes about 20 % faster on the M4 Max, so the room is real.
  • MTP with a bounded expert cache (24 GiB Macs at the default GPU limit): the verify works since dev72; measure it.
  • G2 at long context and a 48 GiB Coder mix (dev64).

Done in 0.9.1 (dev72)#

  • Prompt lookup with a bounded expert cache: +7–10 % agent decode on the M4 Pro 24 GiB (4 GiB cache), exact answers.
  • The drift from llama.cpp past 64K explained (float sum order, MoE near-ties); MLX measured; Xcode GPU profiling.

Done in 0.9.0 (dev70)#

  • Prompt lookup speculative decoding in redlite serve and redlite chat for Qwen3-Coder-Next: +15–25 % decode in agent sessions, the same output.
  • Simulated before building: several drafts per verify would add at most +5–14 % (not built).

Done in 0.8.2 (dev67)#

  • Decode attention reads about 480 GB/s: +4–13 % decode at 64K–256K.

Done in 0.8.1 (dev66)#

  • Decode attention 16–35 % faster at 62K–256K tokens (KV read at about 415 GB/s instead of 290 on the M4 Max).

Done in 0.8.0 (dev65)#

  • Needles at 62K, 127K and 256K tokens (3 / 3 each), speeds on both Macs, llama.cpp agreement to 128K.
  • A harder agent suite. The 64K window is the default for agents (16 / 18 against 10 / 18 at 32K).
  • Prefill attention −20 % / −29 % at 32K / 64K, bit-identical.

Done in 0.7.0 (dev63, dev64)#

  • Agent loops at 2 bits (dev63): pass rates 7–9 of 12 at four sampling settings; loops only at temperature 0.7 and above.
  • A Red Lite quantization of Qwen3-Coder-Next (dev63): CF2, code perplexity −3.3 %, agent suite 12/12 on both Macs.
  • 48 GiB Macs (dev64): G2 (IQ3_S experts), −0.65 % text / −1.4 % code, same speed with MTP; an option because of long prompts.

Phase 1 — release 0.5.0 (done 2026-10-03)#

  1. regress_m4.sh green on the M4 Pro. The three llama.cpp-oracle checks run out of GPU memory there; skip them on machines where the oracle does not fit, and compare the native outputs bit for bit with a 48 GiB machine's instead.
  2. Full checks on both Macs (scripts/dev/local_ci.sh, regress_m4.sh on both GGUFs, quick_parity.sh), then the release:
    • version bump in VERSION, pyproject.toml and redlite/__init__.py;
    • tarball (scripts/package_release.sh);
    • release notes and tag.

Phase 2 — decode on 24 GiB Macs#

  • 2a — done (dev51). Larger caches cut misses but not decode time. Expert cache size sweep on the M4 Pro, 4 → 14 GiB. Measure decode, misses, footprint, swap and memory pressure. The 4 GiB default was a cautious choice, never tested at the limit.

  • 2b — done (dev51): 46.0 tok/s, 52.7 with MTP, on the M4 Pro. Every expert resident on 24 GiB. IQ2_XXS needs 16.9 GiB of expert slots + 1.06 GiB of dense weights; the M4 Pro's default GPU working set is 17.76 GiB. With iogpu.wired_limit_mb raised (sudo, reset at reboot) the M4 Pro would get:

    • GPU-routed decode;
    • MTP speculation.

    Estimate, not measured: about 40 tok/s plain, since the M4 Pro has half the M4 Max's memory bandwidth. Needs a clear guide for users and planner support.

  • 2c — done (dev51c): on by default in redlite chat / serve with a bounded cache. Cache-aware routing as the bounded-cache default. It gains +5 % on the M4 Pro but changes outputs. Decide with the Qwen API comparison (dev48) and perplexity, both run on the M4 Pro.

Phase 3 — long context (float16 KV: opt-in since dev74)#

  • Float16 KV cache. Built in dev53 and dropped; rebuilt in dev74 as an opt-in (RL_KV_F16=1): +9 % decode at 32K, +13 % at 64K, half the cache memory. Not the default, because on CF2 it moves the 1200-token comparison with llama.cpp past its bounds (DEV74).
  • Making it the default needs a comparison rule that tells half-precision rounding from a bug near router ties, or a reference that rounds K/V exactly as the GPU computes them.

Phase 4 — product#

  • Activation steering — done (dev52, --history in dev52b). As in ds4:
    • a vector added to the residual stream at chosen layers;
    • strength adjustable during a chat (/steer);
    • an "only the first N tokens of the answer" mode;
    • a --history FILE of prefilled turns.
  • Low-power mode — measured: −22 % decode at full residency, little with a bounded cache; energy not measured. Low-power mode on the M4 Pro: tok/s and temperature with pmset lowpowermode, for laptop users.
  • A Red Lite quantization — first result (dev54): IQ2_XS on expert layers 37–47 beats Bartowski's scheme at the same size; published in 0.5.3 (redlite download 24gb). A Red Lite quantization: search a mix of precisions that beats IQ2_XXS at the same size, judged by perplexity and the API comparison. After Phase 2.
  • Concurrent server requests — done (dev56): --parallel 2 decodes two requests in one pass; total throughput +28 % on the M4 Pro (+10 % against MTP). Only with every expert resident.

Not planned#

  • More prefill kernel tuning on the M4 Pro (dev49, dev50: a few percent per step).
  • Chunk-parallel DeltaNet prefill (dev44): at most ~2 % (dev47).
  • IQ3_M; distributed inference across two Macs.
  • Hosted CI: removed on 2026-10-03; scripts/dev/local_ci.sh runs the same checks.

Machines#

  • M4 Max 48 GiB: development, every GGUF at full residency.
  • M4 Pro 24 GiB (ssh m4pro): the target class. Builds need REDLITE_SDK=…/MacOSX26.5.sdk. sudo is allowed only for sysctl iogpu.wired_limit_mb and pmset -a lowpowermode.

SOURCE docs/ROADMAP.md · updated 2026-10-08 · EDIT ON GITHUB