Skip to content

feat(prefill): operationalize remote MLX workers - #164

Merged
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/prefill-worker-production-completion-0712
Jul 12, 2026
Merged

feat(prefill): operationalize remote MLX workers#164
FluffyAIcode merged 1 commit into
mainfrom
AgentMemory/prefill-worker-production-completion-0712

Conversation

@FluffyAIcode

Copy link
Copy Markdown
Owner

Summary

  • replace cache-only production targeting with capability discovery and co-located worker/cache service on the allens Thunderbolt endpoint
  • pass exact sink/window/block/model/auth/network compatibility through the worker LaunchAgent installer
  • make the head runtime own the network dashboard and expose live remote job, remote import, reused-token, transfer, fallback, and failure counters
  • add a cold unique-prefix acceptance probe that fails unless a real remote worker computes and serves KV
  • update the operator runbook and add launch-contract/API/dashboard regression tests

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 passed
  • pytest -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 passed
  • exact platform-neutral CI selection — 815 passed, 1 skipped
  • bash -n deploy/install_prefill_worker_launchd.sh
  • plutil -lint deploy/launchd/ai.kakeya.grpc-runtime-prefill.plist
  • post-merge: deploy Gemma worker on allens, then run scripts/verify_remote_prefill_e2e.py

Hardware 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

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>
@FluffyAIcode
FluffyAIcode merged commit 3cdc747 into main Jul 12, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant