8000 Two Buffers in one process: fault in the A/B harness (different launch-shape controls) · Issue #5 · afdEP/afdEP-comm · GitHub
[go: up one dir, main page]

Skip to content

Two Buffers in one process: fault in the A/B harness (different launch-shape controls) #5

Open

Description

@Etelis

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

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.

Activity

  1. added
    bug
    serving
    on Oct 23, 2026
  2. Etelis commented on Oct 23, 2026

    @Etelis
    MemberAuthor

    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.

  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugserving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0