feat(prefill): operationalize remote MLX workers - #164
Merged
FluffyAIcode merged 1 commit intoJul 12, 2026
Conversation
Align head and worker launch contracts for Thunderbolt prefill compute, expose source-specific runtime counters, and add a live acceptance probe so deployment requires evidence of remote jobs and KV imports. Co-authored-by: Cursor <cursoragent@cursor.com>
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
Why
ADR 0017's worker implementation was present, but production still launched ADR 0016's empty cache-only peer. The head never gossiped with a PrefillWorker capability, worker defaults mismatched the head's 2048-token window, and the dashboard could not prove that allens served a request.
Test plan
pytest -q tests/inference_engine/distributed/test_prefill_worker.py tests/inference_engine/distributed/test_prefill_scheduler.py tests/inference_engine/distributed/test_prefill_orchestrator_e2e.py tests/inference_engine/distributed/test_prefill_cache_runtime_fallback.py— 25 passedpytest -q tests/inference_engine/bridge/test_prefill_worker_launchd.py tests/inference_engine/network/test_network_state.py tests/inference_engine/network/test_network_api.py— 9 passedbash -n deploy/install_prefill_worker_launchd.shplutil -lint deploy/launchd/ai.kakeya.grpc-runtime-prefill.plistscripts/verify_remote_prefill_e2e.pyHardware note
The selected allens host has 16 GB unified memory and the Gemma 4-bit model is 15 GB. The model has been synchronized for the requested real test, but deployment may prove an OOM/swap hardware limit; the acceptance probe will not report success without an actual remote job and imported KV.
Made with Cursor