You signed in with another tab or window. Reload to refresh your sessi
8000
on.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Two Buffers in one process: fault in the A/B harness (different launch-shape controls) #5
Two afdep.Buffer instances in one process fault with an illegal memory access once both run exchanges. This happens on the role path and also without the role suites (docs/v1.md, R10). docs/api.md does not mention the limitation.
What it blocks
Dual-batch overlap and multi-lane microbatch pipelining, which keep one Buffer per lane. The DeepEP fork behind SGLang's AFD path (sunfanyi/DeepEP) already tests two-lane dispatch.
In-process A/B screens. Today every comparison needs fresh processes.
The host adapter is meant to support several instances (it owns one bootstrap communicator per Buffer instead of a process-global registry), so the fault is probably shared native state. Candidates: JIT module statics, NCCL window or GIN registration, device-global counters, or the comm stream.
Tasks
Minimal reproduction in tests/gpu: two Buffers with the same config and group, alternating exchanges, eager and graphs. Then two Buffers with different configs.
Find the shared state and fix it.
Add a two-Buffer case to the GPU suite, with every rank enqueuing both Buffers' exchanges in the same order.
State the contract in docs/api.md, and until the fix lands, say that one Buffer per process is supported.
Correction, from a serving benchmark on 8 × H200 (2026-10-23): this is narrower than the description says.
Two afdEP buffers per process do work under DBO. vLLM's two-micro-batch mode with one afdEP buffer per micro-batch ran on the plugin's lanes branch (5215c41) at 8, 64, 256 and 1,024 concurrent requests: Qwen3-30B-A3B at 4A:4F and 6A:2F, and Qwen3-235B-A22B at 4A:4F, role path, native digest 131efc37.
The crash seen in serving is the plugin's, not afdEP's. On a plugin tree without the cross-stream keep-alive fix for CUDA graph capture (7bf9245), DBO failed on an Attention rank at 256 requests with both transports: unspecified launch failure with afdEP and illegal instruction with the plugin's vendored DeepEP M2N.
Still open: the fault recorded in docs/v1.md (R10) came from an in-process A/B harness, two Buffers with different launch-shape controls. It has not been reproduced outside that harness, so the reproduction task should start from those conditions.
Until that's pinned down, the docs/api.md task becomes: document that several Buffers per process are supported when they share one configuration, and test the different-configuration case.
changed the title [-]Two Buffers in one process fault with an illegal address[/-][+]Two Buffers in one process: fault in the A/B harness (different launch-shape controls)[/+]on Oct 23, 2026
Activity
Etelis commentedon Oct 23, 2026
Correction, from a serving benchmark on 8 × H200 (2026-10-23): this is narrower than the description says.
5215c41) at 8, 64, 256 and 1,024 concurrent requests: Qwen3-30B-A3B at 4A:4F and 6A:2F, and Qwen3-235B-A22B at 4A:4F, role path, native digest131efc37.7bf9245), DBO failed on an Attention rank at 256 requests with both transports:unspecified launch failurewith afdEP andillegal instructionwith the plugin's vendored DeepEP M2N.Until that's pinned down, the docs/api.md task becomes: document that several Buffers per process are supported when they share one configuration, and test the different-configuration case.
[-]Two Buffers in one process fault with an illegal address[/-][+]Two Buffers in one process: fault in the A/B harness (different launch-shape controls)[/+]