Skip to content

Revert "docs: MLXServer guide — setup for Hermes, opencode, Droid, Aider" - #20

Merged
ekryski merged 1 commit into
mainfrom
revert-19-pr/docs-droid
Apr 12, 2026
Merged

ekryski merged 1 commit into
mainfrom
revert-19-pr/docs-droid

Conversation

@ekryski

@ekryski ekryski commented Apr 12, 2026

Copy link
Copy Markdown
Owner

Reverts #19

@ekryski
ekryski marked this pull request as ready for review April 12, 2026 00:51
@ekryski
ekryski merged commit 4cf2279 into main Apr 12, 2026
@ekryski
ekryski deleted the revert-19-pr/docs-droid branch April 12, 2026 00:51
ekryski added a commit that referenced this pull request Apr 30, 2026
Several follow-ups to spec 023 (Leviathan) bundled into PR #154's tail
since they share the "set up the rest of the speculative-decoding
roadmap" theme.

**Q2 — spec 013 close-out:**

- Implements phase 3.3 ("ngram-map-k4v" / "first 1-2 tokens"): adds
  `multiCandidateLookahead: Int = 1` parameter to
  `NGramLookup.proposeDraft` plus `MLX_NGRAM_MULTI_LOOKAHEAD=N` env
  var (default 1, preserves prior behaviour). Lookahead=2 disambiguates
  patterns where multiple prior occurrences share the same first
  continuation token but diverge on the second — group key changes
  from `Int` to `[Int]` for the multi-candidate grouping.
- 2 new unit tests cover lookahead=1 vs lookahead=2 disambiguation
  (the "[A,B] → [X,Y] count 2 vs [X,Z] count 1" canonical case).
  37/37 ngram tests pass.
- Updates `specs/013-ngram-speculative-decoding.md` with an
  implementation-status table at the bottom: phases 1.4 / 2.2 / 2.3 /
  3.1 / 3.2 / 3.3 shipped; 1.1 / 1.5 deferred (need real-model test
  harness); 1.2 mitigated; 2.1 partial (more model coverage as needed);
  3.4 superseded by spec 020 tape-replay.

**Q3 — eval harness:**

- `scripts/spec-decode-sweep.sh` — parameterised sweep runner. Takes
  `--model`, `--quant`, `--prompts` (file or directory), `--cells`
  (colon-separated `LABEL:NGRAM:TEMP:EXTRA_ENV` specs comma-joined),
  `--trials`, `--max-tokens`. Replaces the per-PR ad-hoc shell loops
  in /tmp/ that we've been writing fresh each time.
- `scripts/spec-decode-compare.py` — A vs B compare on two sweep
  logs. Computes per-cell medians + speedup-ratios with directional
  emoji (✅ / ⚠️ / ≈). Tolerates both the new `extra=...` cell-line
  format and the older `leviathan=...` format from /tmp/ legacy runs.
- `Tests/Benchmarks/Resources/ngram-sweep-prompts/README.md` —
  regime-classified workload guide. Three regimes (regurgitative /
  structured / paraphrastic) with expected speedup bands per regime,
  per-directory prompt counts, and the canonical 6-cell × 5-trial
  cell-set used in the Leviathan analysis. Reference for any future
  spec-decode PR's eval section.
- 8 draft spec PRs (#141 / #142 / #143 / #144 / #145 / #146 / #147 /
  #148) updated with per-spec "Evaluation (when phase 2+ lands)"
  sections that include the canonical sweep+compare commands +
  per-spec pass criteria.

**Q4 — IMPLEMENTATION-PLAN.md reorder:**

Tier 1 ↔ Tier 3 swap. Tape-replay (#20) + prefix cache (#17) are
now Tier 1 (deterministic infrastructure wins, scaffolds landed,
unblocks 5+ models / universal multi-turn TTFT win). DFlash (#15) +
Mirror SD (#21) are now Tier 3 (more experimental — DFlash needs
draft model availability, Mirror SD needs CoreML-LLM Swift Package
dep + ANE measurement infra).

Rationale: lower experimental risk to land deterministic wins first.
By the time DFlash + Mirror SD are unblocked (external model release,
ANE infra), tape-replay will be in place to support DFlash phase 3.

Status snapshot updated: Tier 0 (013 + 018 + 023 + eval harness)
shipped; Tier 1 in flight (phase-1 scaffolds at #143, #144); Tier 2
phase-1 scaffolds also landed (#145, #146, #147, #148).

Closing notes in the plan also reflect spec 023's phase-2 / phase-3
deferral (subsumed by issue #153) so they're not re-attempted.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
ekryski added a commit that referenced this pull request Apr 30, 2026
Several follow-ups to spec 023 (Leviathan) bundled into PR #154's tail
since they share the "set up the rest of the speculative-decoding
roadmap" theme.

**Q2 — spec 013 close-out:**

- Implements phase 3.3 ("ngram-map-k4v" / "first 1-2 tokens"): adds
  `multiCandidateLookahead: Int = 1` parameter to
  `NGramLookup.proposeDraft` plus `MLX_NGRAM_MULTI_LOOKAHEAD=N` env
  var (default 1, preserves prior behaviour). Lookahead=2 disambiguates
  patterns where multiple prior occurrences share the same first
  continuation token but diverge on the second — group key changes
  from `Int` to `[Int]` for the multi-candidate grouping.
- 2 new unit tests cover lookahead=1 vs lookahead=2 disambiguation
  (the "[A,B] → [X,Y] count 2 vs [X,Z] count 1" canonical case).
  37/37 ngram tests pass.
- Updates `specs/013-ngram-speculative-decoding.md` with an
  implementation-status table at the bottom: phases 1.4 / 2.2 / 2.3 /
  3.1 / 3.2 / 3.3 shipped; 1.1 / 1.5 deferred (need real-model test
  harness); 1.2 mitigated; 2.1 partial (more model coverage as needed);
  3.4 superseded by spec 020 tape-replay.

**Q3 — eval harness:**

- `scripts/spec-decode-sweep.sh` — parameterised sweep runner. Takes
  `--model`, `--quant`, `--prompts` (file or directory), `--cells`
  (colon-separated `LABEL:NGRAM:TEMP:EXTRA_ENV` specs comma-joined),
  `--trials`, `--max-tokens`. Replaces the per-PR ad-hoc shell loops
  in /tmp/ that we've been writing fresh each time.
- `scripts/spec-decode-compare.py` — A vs B compare on two sweep
  logs. Computes per-cell medians + speedup-ratios with directional
  emoji (✅ / ⚠️ / ≈). Tolerates both the new `extra=...` cell-line
  format and the older `leviathan=...` format from /tmp/ legacy runs.
- `Tests/Benchmarks/Resources/ngram-sweep-prompts/README.md` —
  regime-classified workload guide. Three regimes (regurgitative /
  structured / paraphrastic) with expected speedup bands per regime,
  per-directory prompt counts, and the canonical 6-cell × 5-trial
  cell-set used in the Leviathan analysis. Reference for any future
  spec-decode PR's eval section.
- 8 draft spec PRs (#141 / #142 / #143 / #144 / #145 / #146 / #147 /
  #148) updated with per-spec "Evaluation (when phase 2+ lands)"
  sections that include the canonical sweep+compare commands +
  per-spec pass criteria.

**Q4 — IMPLEMENTATION-PLAN.md reorder:**

Tier 1 ↔ Tier 3 swap. Tape-replay (#20) + prefix cache (#17) are
now Tier 1 (deterministic infrastructure wins, scaffolds landed,
unblocks 5+ models / universal multi-turn TTFT win). DFlash (#15) +
Mirror SD (#21) are now Tier 3 (more experimental — DFlash needs
draft model availability, Mirror SD needs CoreML-LLM Swift Package
dep + ANE measurement infra).

Rationale: lower experimental risk to land deterministic wins first.
By the time DFlash + Mirror SD are unblocked (external model release,
ANE infra), tape-replay will be in place to support DFlash phase 3.

Status snapshot updated: Tier 0 (013 + 018 + 023 + eval harness)
shipped; Tier 1 in flight (phase-1 scaffolds at #143, #144); Tier 2
phase-1 scaffolds also landed (#145, #146, #147, #148).

Closing notes in the plan also reflect spec 023's phase-2 / phase-3
deferral (subsumed by issue #153) so they're not re-attempted.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant