Repository navigation
feat: disaggregated serving-mode plumbing and coordinator skeleton - #188
Merged
Merged
Conversation
Part of #126 (epic #116). B2a of the disaggregated serving productionization: additive plumbing plus a model-free coordinator skeleton, with the live single-node path byte-unchanged. - Thread the serving role from `--node-role` to the worker. `build_server_config` derives a `ServingMode` (Hybrid when the flag is absent), carried on `ServerConfig` through the model-provider ladder to `WorkerSchedulerConfig`. The worker logs a non-hybrid role and runs the standard scheduler loop unchanged; the serving-role coordinator that drives the scheduler over the B1 handoff hooks lands in B2b, and a real network transport in B3. - Add `ServingCoordinator` (distributed::disaggregated::coordinator): binds a serving mode to a `dyn Transport` and its handoff peer, owning the transport seam (`send_handoff` / `recv_handoff`) over the B1 async byte bridge. It does not yet hold a `BatchScheduler`; the scheduler-driving run loop is B2b, which keeps the skeleton model-free and unit-testable over an in-process `MockTransport`. - 3 unit tests: mode/peer binding, handoff round-trip, non-handoff rejection. Hybrid (the default) and every existing call site stay byte-identical: the new `ServerConfig` / `WorkerSchedulerConfig` field defaults to Hybrid and every struct-literal and spread site already resolves to it. Verified: lib and tests compile (metal,accelerate); coordinator tests pass; 1106 server lib tests pass; cold clippy -D warnings clean (metal,accelerate and +test-utils, --all-targets); rustfmt clean.
7 tasks
be-free-snowboy
pushed a commit
to freestylejs/snowbrain-mlxcel
that referenced
this pull request
Oct 27, 2026
…ablup#188) Part of lablup#126 (epic lablup#116). B2a of the disaggregated serving productionization: additive plumbing plus a model-free coordinator skeleton, with the live single-node path byte-unchanged. - Thread the serving role from `--node-role` to the worker. `build_server_config` derives a `ServingMode` (Hybrid when the flag is absent), carried on `ServerConfig` through the model-provider ladder to `WorkerSchedulerConfig`. The worker logs a non-hybrid role and runs the standard scheduler loop unchanged; the serving-role coordinator that drives the scheduler over the B1 handoff hooks lands in B2b, and a real network transport in B3. - Add `ServingCoordinator` (distributed::disaggregated::coordinator): binds a serving mode to a `dyn Transport` and its handoff peer, owning the transport seam (`send_handoff` / `recv_handoff`) over the B1 async byte bridge. It does not yet hold a `BatchScheduler`; the scheduler-driving run loop is B2b, which keeps the skeleton model-free and unit-testable over an in-process `MockTransport`. - 3 unit tests: mode/peer binding, handoff round-trip, non-handoff rejection. Hybrid (the default) and every existing call site stay byte-identical: the new `ServerConfig` / `WorkerSchedulerConfig` field defaults to Hybrid and every struct-literal and spread site already resolves to it. Verified: lib and tests compile (metal,accelerate); coordinator tests pass; 1106 server lib tests pass; cold clippy -D warnings clean (metal,accelerate and +test-utils, --all-targets); rustfmt clean.
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.
Part of #126 (epic #116). B2a of the disaggregated serving productionization: the additive plumbing and a model-free coordinator skeleton, with the live single-node path byte-unchanged.
What
--node-roleto the worker.build_server_configderives aServingMode(Hybridwhen the flag is absent), carried onServerConfigthrough the model-provider ladder toWorkerSchedulerConfig, mirroring thekv_cache_budget/enable_vlm_prefix_cacheplumbing. The worker logs a non-hybrid role and runs the standard scheduler loop unchanged.ServingCoordinator(distributed::disaggregated::coordinator): binds a serving mode to adyn Transportand its handoff peer, owning the transport seam (send_handoff/recv_handoff) over the B1 async byte bridge. It does not yet hold aBatchScheduler; the scheduler-driving run loop is the next step (B2b), which keeps this skeleton model-free and unit-testable over an in-processMockTransport.Scope (dormant, additive)
Mirrors B1's additive-then-wired pattern. The serving-role coordinator that drives the scheduler over the B1 handoff hooks lands in B2b; a real network transport in B3. Until then every role runs the standard single-node loop, so
Hybrid(the default) and a misconfigured single node both keep serving rather than hanging. The in-processMockTransportconnects two roles only within one process (cfg(test, test-utils)), which is how a real-model 2-role handoff is exercised in B2c.Hybrid(the default) and every existing call site stay byte-identical: the newServerConfig/WorkerSchedulerConfigfield defaults toHybrid, and every struct-literal and spread site already resolves to it.Verified
metal,accelerate)-D warningsclean onmetal,accelerateand+test-utils,--all-targets