Skip to content

Leo/prefill decode really - #1776

Closed
rltakashige wants to merge 15 commits into
leo/dgx-spark-integrationsfrom
leo/prefill-decode-really
Closed

rltakashige wants to merge 15 commits into
leo/dgx-spark-integrationsfrom
leo/prefill-decode-really

Conversation

@rltakashige

Copy link
Copy Markdown
Collaborator

Very very draft still, but works

@rltakashige
rltakashige force-pushed the leo/prefill-decode-really branch 18 times, most recently from 002c218 to 26933ed Compare April 4, 2026 23:55
@rltakashige
rltakashige force-pushed the leo/prefill-decode-really branch from 26933ed to b23d07e Compare April 5, 2026 00:21
@rltakashige
rltakashige force-pushed the leo/prefill-decode-really branch from b23d07e to 39f0893 Compare April 5, 2026 00:39
rvedati pushed a commit to rvedati/exo that referenced this pull request Apr 9, 2026
- Narrow the 'recently settled' election suppression to only fire when
  peer's standing is nearly identical (same seniority, ±1 commands_seen).
  Original broad suppression blocked legitimate tie-breakers where a
  node with higher commands_seen should win the new round.

- Fix typo in test_apply_runner_deleted.py: `appprefilly_runner_status_updated`
  → `apply_runner_status_updated`. Pre-existing typo in PR exo-explore#1776 base.

All 249 passing tests now green (was 246/3 failing).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
rvedati pushed a commit to rvedati/exo that referenced this pull request Apr 9, 2026
PR exo-explore#1776 hardcoded `task_params.prefill_endpoints[0]` in the MLX
batch_generate client, which limited exo to a single prefill server
even though the master already discovers and sorts ALL VllmInstances
in the cluster. This blocks multi-Spark prefill pools entirely.

Changes:
- batch_generate.py: iterate `task_params.prefill_endpoints` with
  failover. Stops on first success, logs per-endpoint failures,
  falls back to local prefill only if ALL endpoints fail.
- NEW src/exo/disaggregated/tests/test_protocol.py (16 tests):
  First unit test coverage for the wire protocol. Verifies round-trip
  of KVChunk/ArraysState/Done across float16/bfloat16/float32, plus
  truncation, clean EOF, and unknown message type edge cases.
- NEW src/exo/disaggregated/tests/test_failover.py (8 tests):
  Covers all failover scenarios (single, first-fail, all-fail,
  priority order). Includes a static check that batch_generate.py
  contains the loop and does NOT hardcode [0], guarding against
  regression.

Test results: 273 passed, 0 failed (baseline was 246 passing, 3 failing
before prior fixes to election suppression + test typo).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
rvedati pushed a commit to rvedati/exo that referenced this pull request Apr 9, 2026
Complete write-up of the PR exo-explore#1776+exo-explore#1842 merge exploration:
- Merge strategy (inverted, cherry-pick onto humanrouter/blackwell-support)
- 3 bugs found in upstream (election suppression over-reach, typo in test,
  hardcoded prefill_endpoints[0])
- 27 new tests (16 protocol + 8 failover + 3 previously-broken fixed)
- Test results: 273 pass, 0 fail (was 246/3)
- Deployment checklist + upstream PR suggestion

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rltakashige
rltakashige force-pushed the leo/prefill-decode-really branch 4 times, most recently from 6741082 to d98a1be Compare April 26, 2026 23:49
@rltakashige
rltakashige force-pushed the leo/prefill-decode-really branch from d98a1be to 9ec9725 Compare April 26, 2026 23:57
@Evanev7

Evanev7 commented May 2, 2026

Copy link
Copy Markdown
Collaborator

closing with #1993

@Evanev7 Evanev7 closed this May 2, 2026
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.

2 participants