Skip to content

docs: the Flash Next CUDA recipe lists both PCIe functions of a GB10's port for NCCL - #2969

Merged
ashhart merged 2 commits into
ashhart:mainfrom
swbiggart:flashnext-tp2-dual-port-docs
Nov 15, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
swbiggart:flashnext-tp2-dual-port-docs

Conversation

@swbiggart

Copy link
Copy Markdown
Contributor

What this changes

The Flash Next CUDA recipe's two-GB10 section listed one RDMA device in NCCL_IB_HCA. A GB10's ConnectX-7 reaches
the chip over two PCIe links, so each port is two devices (rocep1s0f0, roceP2p1s0f0), one carrying about 112 of
the port's 200 Gb/s. The new bullet lists both, with NCCL_IB_ADDR_RANGE covering both: cold 2,048 to 32,768-token
prompts get 26.5% to 28.1% faster on two cabled GB10s; decode speed and token hashes unchanged. Documentation only.

Checks on this head

  • Head commit: 82c60c6b3f783dc622664a1c7d119771f6583422
  • Lean checker, python3 tools/zig/lean_check.py, on the base and on this head: 345 and 345 (base 4f8317dac),
    identical listings, 0 new.
  • Tests run, with the command and pass, fail and skip counts (no new test):
    • zig fmt --check build.zig zig, git diff --check upstream/main...HEAD: pass on this head.
    • zig build test-cuda-host, zig build test test-golden: not run. This head changes only
      docs/recipes/flash-next-cuda.md, which no build step compiles or tests, so its zig/ tree is main 4f8317dac's.
  • The receipt below was measured on served main fb8fdf3d8, an ancestor of the base. The branch was rebased onto
    4f8317dac with its diff unchanged, and main's commits since fb8fdf3d8 leave the recipe unchanged.
  • CI: not run yet.
  • Not run, and why:
    • RTX PRO 6000 pair: one host, no RoCE link.
    • Other recipes setting NCCL_IB_HCA: each needs its own measurement.
    • Two cables, a switch, other NCCL versions, several streams, sampling: outside the measured setup.

Receipt

n/a for the inference checklist. The claim: main fb8fdf3d8 in both arms, only the two
variables changed (NCCL 2.32.3; 2 x GB10 (200G RoCE); nvidia/Qwen3.8-Flash-Next-NVFP4
fc694b54fb0174e0913e6adf86691ef85a4ead47). Link: ib_write_bw, Gb/s a direction; prompts: cold tok/s, mean of 2:

NCCL devices Link 2,048 8,192 32,768
one 111.86 1,120.5 1,147.2 1,141.4
both (a / b) 98.04 + 98.04 1,415.6 / 1,418.7 1,472.1 / 1,466.3 1,463.8 / 1,459.8
change +26.5% +28.1% +28.1%
  • NCCL with both: Using [0]rocep1s0f0:1/RoCE [1]roceP2p1s0f0:1/RoCE, 32 + 32 channels each.
  • Decode level: code drafted 51.43 against 51.73 / 51.17 tok/s, medians.
  • Token hashes, same in every start and drafted equal to "draft": false: chat 764da77fbd3f, code
    4e759dbd859c, prefill deae16afb5e0, e6b6ea31c756, a2dd25c04692.
  • Raw results and scripts (dp_sum.py recomputes the prompt columns): https://gist.github.com/swbiggart/46ef47f8cd5bbf0da00ab5a29126f6ed

Checklist

  • The title and description match the head commit, including the receipt and the stack.
  • New tests fail before the change, pass after it, and skip cleanly without their dependency. (n/a: no new test.)
  • Comments and docstrings are one line. No measurements or history in the source.
  • No personal data, machine names, internal hosts or local paths in the diff or its commits. No AI attribution lines.

@ashhart

ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

Thanks @swbiggart. This is ready to land.

Checked on 82c60c6: the change is the one new bullet in docs/recipes/flash-next-cuda.md. Its figures match the table in your description (8,192 goes from 1,147.2 to a mean of 1,469.2 tok/s, +28.1%; 2,048 is +26.5%), and it says decode and token hashes are unchanged, as the receipt shows. CI is green on this head and it merges cleanly with main.

  • Synthena (Ash's Agent)

@ashhart
ashhart force-pushed the flashnext-tp2-dual-port-docs branch from 82c60c6 to 779d968 Compare November 15, 2026 14:14
@ashhart
ashhart merged commit 6b493a3 into ashhart:main Nov 15, 2026
12 of 20 checks passed
@ashhart

ashhart commented Nov 15, 2026

Copy link
Copy Markdown
Owner

Thank you @swbiggart. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @swbiggart! This is in TensorFold 1.2.10, out now: https://github.com/ashhart/TensorFold/releases/tag/v1.2.10

  • Synthena

@sojoerner-2049

Copy link
Copy Markdown

Independent verification from the GLM-5.3-Flash 1104 recipe (MiaAI-Lab/GLM-5.3-Flash-DGX-Sparks-1104, TensorFold 1.3.0 @ 81de26f6, 2× DGX Spark, RoCE, NCCL 2.30.7): we took the same dual-function listing and went to all four devices (rocep1s0f0, rocep1s0f1, roceP2p1s0f0, roceP2p1s0f1). Two findings past this PR's scope:

  1. The engine caps the list at two. hcaNames and the TP RoCE config break at compile-time max_hcas = 2 (zig/src/fabric/tp/roce_guard.zig, roce_multi_guard.zig, and the via default in roce_multi_verbs.zig), so a four-device NCCL_IB_HCA silently stripes over the first two until those constants are raised. We patched them to 4 locally; all four rails then carry TP traffic (per-port counter deltas during serving).

  2. NCCL treats the list as a preference order. With rocep1s0f0 first, ~95% of inter-node bytes rode the p1 pair; reordering P2-first flipped it to ~94% on the P2 pair. All four devices stay active either way. Also: device names are case-sensitive (roceP2p1s0f0's capital P) — a lowercase name is silently dropped.

Caveat: our measurement is counter deltas during serving, not a prefill receipt — it corroborates the direction rather than reproducing the +28.1% figure. Residual on our side: the small all-gather path (zig/src/cuda/roce_verbs.zig) still caps at 2, so its log line under-reports.

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.

3 participants