Repository navigation
feat(server): add selectable backend IPC payload transport - #312
Merged
Merged
Conversation
weicj
force-pushed
the
feat-backend-ipc-payload-transport
branch
from
May 30, 2026 06:44
d218ffa to
4777e86
Compare
weicj
marked this pull request as draft
May 30, 2026 07:08
weicj
force-pushed
the
feat-backend-ipc-payload-transport
branch
from
May 30, 2026 07:20
4777e86 to
5cf3118
Compare
weicj
marked this pull request as ready for review
June 1, 2026 12:09
Contributor
There was a problem hiding this comment.
4 issues found across 7 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
easel
pushed a commit
to easel/lucebox-hub
that referenced
this pull request
Jun 1, 2026
# Conflicts: # server/src/common/backend_ipc.cpp # server/src/common/dflash_draft_ipc.cpp # server/src/common/dflash_draft_ipc_daemon.cpp # server/src/ipc/backend_ipc_main.cpp
Contributor
There was a problem hiding this comment.
2 issues found across 6 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
weicj
force-pushed
the
feat-backend-ipc-payload-transport
branch
from
June 1, 2026 12:35
26a892a to
9ca3d9b
Compare
easel
pushed a commit
to easel/lucebox-hub
that referenced
this pull request
Jun 1, 2026
Integrate the advanced selectable backend IPC payload transport head while preserving the existing qwen35 target-shard IPC mode and current stack parsing. Resolve shared-payload conflicts in the DFlash draft daemon/client and backend IPC entry point.
easel
pushed a commit
to easel/lucebox-hub
that referenced
this pull request
Jun 1, 2026
Record the advanced PR Luce-Org#312 integration, exact-head classification, retained conflict probes, and validation outcomes for the unattended auto-integration run.
Rebased onto main after Luce-Org#321 (mixed-backend target split) merged. Luce-Org#321 already carried an early copy of the payload transport; this adds the shared-payload header (sequence + byte count) hardening and reconciles it with Luce-Org#321: - keep Luce-Org#321 Qwen35TargetShard mode + target-shard args; - adopt the hardened shared-payload header in the writer, draft-IPC reader, and daemon arg parsing (require_value / parse_nonnegative_int / parse_size_arg), keeping parse_int_list for target-shard list args; - propagate the header format into the qwen35 target-shard daemon (forward_shared mmaps header+payload, reads at the header offset, validates sequence/bytes); - drop the add/add duplicate of the transport name/parse helpers; - update MockLayerSplitAdapter::decode_dflash for the accept_rate signature. Original work: PR Luce-Org#312 (weicj). Verified on lucebox2: CUDA + HIP build, test_server_unit passes (1836 assertions), mixed cuda:0,hip:0 with DFLASH_TARGET_SHARD_IPC_TRANSPORT=shared reports accept_rate ~0.54, output correct. Co-Authored-By: WOZCODE <[email protected]>
davide221
force-pushed
the
feat-backend-ipc-payload-transport
branch
from
June 7, 2026 15:20
9ca3d9b to
5df13c5
Compare
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
This PR adds explicit backend IPC data-payload transport modes:
stream,shared, andauto, so the IPC path can choose between low fixed memory cost and lower large-payload copy cost.streamkeeps the existing stream/file-backed payload path. It has very low fixed host-memory cost, but large activation payloads pay more stream/read/write copy overhead, so it remains the conservative default.shareduses a shared fd +mmappayload buffer. It reduces host-side IPC copies and improves large payload transport latency, but it has a fixed host-memory buffer cost, so it is an explicit mode.autorequests the minimum safe shared buffer for the current DFlash IPC configuration first, then falls back tostreamif the shared buffer cannot be allocated.The immediate integration is DFlash draft IPC input payloads. More generally, this makes IPC transport an explicit mode switch, so additional transport choices can be added later without changing the high-level command shape.
Changes
backend_ipc.h/.cppwith shared fd creation,mmapmapping, daemon remapping, cleanup, Linuxmemfd_create, and unlinked temporary-file fallback.stream: existing stream/file-backed payload transport.shared: shared fd +mmappayload transport.auto: try shared transport first, then fall back tostreamif shared buffer allocation fails.--shared-payload-fd/--shared-payload-byteswhen shared transport is enabled.stream;DFLASH_DRAFT_IPC_TRANSPORT=sharedrequires the shared buffer path, whileDFLASH_DRAFT_IPC_TRANSPORT=autocan fall back tostream.DFLASH_DRAFT_IPC_SHARED_BYTEScan raise the requested capacity, but not below the minimum required for the configured DFlash IPC payload.feature_slice_sharedandpropose_shareddaemon commands for shared input payloads.Notes
Transport A/B on a 16K Qwen/Qwen3.6-27B F16/BF16 hidden-state-equivalent payload (
160 MiB) showed shared mmap reducing host-side IPC copy from about320 MiBto160 MiBper handoff. Measured transport time improved by11.85%for CUDA->CUDA and10.70%for CUDA->HIP. A 64 KiB sanity check showed shared mmap does not materially regress small payload latency, but the practical value is activation-sized payload transport.Validation for this slice covers CUDA sm61 and HIP ROCm 6.3.3/gfx906 transport smokes, including same-backend and CUDA<->HIP cross-backend
allreduce-autoroutes.