feat(mac-launcher): long-answer-safe defaults + full-mode validation preset#148
Merged
cursor[bot] merged 1 commit intoJun 18, 2026
Merged
Conversation
…preset run_kakeya_mac.sh: - Document that long answers are now coherent past the ~1024 native-cache ring wrap (PR #146: single-token commits once the sliding RotatingKVCache wraps). - Raise default --max-new-tokens 1024 -> 2048 (the wrap is no longer a coherence cliff; FULL mode just drops the spec-decode speedup past it). - Refresh help text and FULL-mode mode banner. bridge: add mlx-kakeya-launcher-full preset (FULL f_θ path, long scripted answer crossing the wrap, validate_reports) so CI/on-device guards the launcher's full pipeline + the wrap fix end-to-end; launcher-smoke stays for fast wiring checks. Co-authored-by: FluffyAIcode <FluffyAIcode@users.noreply.github.com>
This was referenced Jun 18, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the one-command Mac launcher
scripts/run_kakeya_mac.shnow that the long-decode wrap fix (PR #146) is merged, and adds an on-device validation preset so the launcher's full pipeline is guarded end-to-end (not just the--fastpath).Why
Before PR #146, the full engine degenerated into a runaway repeat past the ~1024-token native-cache ring wrap, so the launcher's default budget (1024) sat right at the coherence cliff. PR #146 fixed that (single-token commits once the sliding
RotatingKVCachewraps), so long answers are now coherent — the default can be generous.Changes
scripts/run_kakeya_mac.sh:--max-new-tokens1024 → 2048 (the wrap is no longer a coherence cliff; FULL mode just forgoes the spec-decode speedup past it).bash -nclean;--dry-runand--helpcorrect; all flags valid against the current harness CLI.inference_engine/bridge/manifest.py: newmlx-kakeya-launcher-fullpreset — invokes the launcher in FULL mode (f_θ verifier+proposer+f_θ) on a long scripted answer (请详细解释POW的工作原理, 1300 tokens) that crosses the wrap, withvalidate_reports=True(§4 liveness + §2.4 quality gate).mlx-kakeya-launcher-smokestays for fast wiring checks.test_mlx_kakeya_launcher_full_preset_runs_full_mode_past_wrap.The FAST path (
--fast→--cuda-trim, all-KVCache) is immune to the ring-wrap bug by construction; only the FULL path uses the hybrid cache that received the fix.Validation (Mac M4, via bridge —
mlx-kakeya-launcher-full, 1300 tokens)The launcher's FULL pipeline ran end-to-end and passed the on-device gate:
exit_code = 0,evidence_gate_exit_code = 0→ §4 liveness + §2.4 quality gate passed.f_theta_ran = True(25 sliding layers) → full verifier+proposer+f_θ pipeline executed.tokens = 1241(crossed the ~1024 wrap),mean_accept_len = 1.526(single-token past the wrap, as designed), 3.81 tok/s, resident KV 235.7 MB.由于由于runaway.run_kakeya_mac_full_validation.txt
Testing
pytest tests/inference_engine/bridge/test_manifest.py(32 passed)bash -n scripts/run_kakeya_mac.sh;--dry-runshows FULL-mode argv with--max-new-tokens 2048mlx-kakeya-launcher-full(Mac M4, 1300 tokens): gate passed, f_θ ran, coherent past the wrap (evidence above)To show artifacts inline, enable in settings.