Skip to content

[Engine] report verified peer transport and fallback - #6186

Draft
wesleyhawes wants to merge 2 commits into
Niko1221:mainfrom
wesleyhawes:fix/peer-route-observability
Draft

wesleyhawes wants to merge 2 commits into
Niko1221:mainfrom
wesleyhawes:fix/peer-route-observability

Conversation

@wesleyhawes

@wesleyhawes wesleyhawes commented Nov 18, 2026 •

Copy link
Copy Markdown

Summary

Improve observability and conservative fallback for the opt-in --peer-device route. This does not enable NVLink, add a transport, change default GPU placement, or claim that CUDA peer traffic used NVLink.

Changes

  • Represent peer-route outcomes explicitly: forced host, unsupported peer access, enable failure, probe unavailable, data mismatch, and bidirectional copy verified.
  • Use mapped-host prompt prefill unless the CUDA peer-copy probe completes and verifies the payload in both directions.
  • Disable only peer-access directions this code enabled itself when falling back.
  • Log the selected prefill transport and probe status while stating that the physical link is unknown.
  • Document that NVLink topology/counters and peer-expert decode transport are separate evidence.
  • Add a CPU-only policy test proving only the fully verified state selects direct copy.

Default single-GPU and layer-split behavior is unchanged. The change is scoped to the opt-in peer-device route when verification fails.

Evidence motivating the change

On Donnager, two Quadro RTX 8000 cards expose active NVLink links, but nvidia-smi traffic counters are N/A. A separate bounded 64 MiB peer-copy calibration measured about 47 GB/s. This confirms a working peer-copy path but does not identify NVLink versus PCIe.

With the installed Strata 0.1.59 profile and Qwen3.8 IQ3_S, three observations per condition showed similar results: peer-copy probe passed at 57.04 tok/s decode and 2.830/5.438 s TTFT (2,768/6,511 tokens); forced host fallback at 56.51 tok/s and 2.870/5.556 s. Both passed 32/32 objective checks. These measurements predate the current upstream engine and do not validate this PR's current head.

Current status and validation

  • This draft was last rebased onto main at 58ee3227. Upstream main has since advanced to 73d4f419; its new p2p_topology_safe() logic changes the same peer-route code, and GitHub currently reports this PR as conflicting.
  • The current branch has not been reconciled with that topology guard. Do not treat this head as ready to merge or as validated against current main.
  • On the earlier 58ee3227 base, the CPU-only policy test compiled with g++ -std=c++17 -Wall -Wextra -Werror and passed (peer_route_status_test: ok).
  • The previous head 194dd74 was built and its peer-route test was run on Donnager with CUDA 12.8.93 / GCC 13.3. That result is historical and must be repeated on any updated head.
  • Not run on current upstream: CMake configure/build, CUDA compile/runtime peer-copy test, HIP build, or end-to-end Strata request. Keep this PR in draft until the conflict is reconciled and the required backend checks are complete.

@wesleyhawes

Copy link
Copy Markdown
Author

Validation update for final head 194dd74: I rebuilt the changed peer_experts.cpp translation unit, relinked the full strata executable in the CUDA 12.8.93 / SM75 isolated build, and reran peer_route_status_test on Donnager; all passed. The intake check that passed was for the initial commit. For final head 194dd74, GitHub did not execute backend checks (action_required); the Metal workflow failed before creating a job with a workflow-file issue and exposed no failure log. No upstream CI backend result is therefore claimed. The PR remains draft pending maintainer-enabled CI plus runtime GPU and HIP validation.

@wesleyhawes
wesleyhawes force-pushed the fix/peer-route-observability branch from 194dd74 to 75cee64 Compare November 19, 2026 21:32
@wesleyhawes

Copy link
Copy Markdown
Author

This draft is now blocked by upstream changes: main advanced from 58ee3227 to 73d4f419, adding p2p_topology_safe() in the same peer-route path. A naive rebase could bypass that safety guard, so I have not resolved the conflict or claimed the old validation applies to current main.

Would you prefer that I rebase and adapt the route-status reporting while preserving the new topology policy, or hold this draft for a smaller future contribution? CUDA/HIP builds and device validation would still be needed before marking it ready.

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.

1 participant