From eae8c8c1e1ffcea2b34eb357b31fcb36bebeddcd Mon Sep 17 00:00:00 2001 From: FujitsuPolycom <87842395+FujitsuPolycom@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:17:19 -0600 Subject: [PATCH 1/2] docs: add COMPATIBILITY.md matrix with 4x GB10 SGLang, libsircl & net-sircl qualification Add COMPATIBILITY.md documenting verified runtimes, transports (libsircl, libsircl_ep.so, net-sircl, patched NCCL), topologies (closed ring, open chain, --ring-only), measured 4x GB10 silicon results (including unmodified lmsysorg/sglang:v0.5.23-cu130-runtime TP4 via SglangAdapter and net-sircl 0.1.3), and a decision guide comparing SparkRing, net-sircl, and Hyperflare. Link COMPATIBILITY.md from README.md without altering profile or speed table contracts. --- COMPATIBILITY.md | 99 ++++++++++++++++++++++++++++++++++++++++++++++++ README.md | 3 +- 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 COMPATIBILITY.md diff --git a/COMPATIBILITY.md b/COMPATIBILITY.md new file mode 100644 index 00000000..233c0530 --- /dev/null +++ b/COMPATIBILITY.md @@ -0,0 +1,99 @@ +# What Works on SparkRing + +This matrix tracks verified runtimes, transports, topologies, and measured +DGX Spark (GB10, ConnectX-7 200 Gb/s RoCEv2) results across SparkRing and its +companion projects. + +## When to use which + +- **SparkRing (`libsircl` + `sparkring_fabric` + `EngineAdapter`)**: Use for + running **vLLM, SGLang, or custom PyTorch/NCCL containers** across 2–8 + directly cabled DGX Sparks with minimum switchless collective latency + (~10–13 µs small-message all-reduce, CUDA-graph collectives, and optional + zero-relay `--ring-only` mode). +- **[`net-sircl`](https://github.com/FujitsuPolycom/net-sircl)**: Use when you + want **stock NVIDIA NCCL** (retaining NCCL's own algorithms for training or + heterogeneous frameworks such as FSDP2, DeepSpeed, JAX, or TensorRT-LLM) over + directly cabled Sparks via `NCCL_NET_PLUGIN` without replacing `libnccl.so.2`. +- **[Hyperflare](https://github.com/NVIDIA/hyperflare-inference)**: Use when + you want the native custom inference engine on DGX Sparks and do not need + vLLM, SGLang, or generic NCCL ring/chain transport. + +## Status legend + +| Label | Meaning | +|---|---| +| **Verified on 4× GB10** | Executed and verified on live 4-Spark GB10 hardware (ConnectX-7 200 Gb/s RoCEv2) with exact outputs and clean shutdown. Scope notes distinguish functional/microbenchmark checks from full serving A/B qualification. | +| **Verified on CI / Emulation** | Verified by automated CPU tests, ABI/export checks, and/or multi-rank shared-memory GPU emulation; not yet qualified end-to-end on live multi-Spark hardware. | +| **Community Verified** | Reported working by community operators on compatible ARM64/GB10 stacks; not continuously gated in repository CI. | + +## Verified Compatibility Matrix + +| Workload / Runtime | Transport Layer | Supported Topologies | Status | Measured Silicon / Evidence | +|---|---|---|---|---| +| **Stock SGLang `0.5.23`** (`lmsysorg/sglang:v0.5.23-cu130-runtime`, PyTorch `2.14.1+cu130`, `SglangAdapter`) | `libsircl 0.6.0` (`LD_PRELOAD` + `SGLANG_NCCL_SO_PATH` + `libnccl.so.2` shadow mounts) | Closed Ring, `--ring-only`, Open Chain | **Verified on 4× GB10** | Closed 4-Spark ring (`Qwen3-0.6B`, TP4, 58 prefill + 52 decode CUDA graphs): `/health`, `/health_generate`, `/v1/models`, exact deterministic chat output, **149.8 tok/s** single-stream (0.240 s for 36 tokens), 4/4 healthy receipts (~430K RDMA writes/rank). Same image with `--ring-only` (zero relays): exact output, **68.8 tok/s** (0.524 s), 4/4 healthy receipts. Functional serving verification (not a full A/B). | +| **PyTorch `torch.distributed`** (unmodified `ProcessGroupNCCL`, PyTorch `2.13.0+cu130`) | `libsircl 0.6.0` (`LD_PRELOAD` + shadow mounts) | Closed Ring, `--ring-only`, Open Chain, Pair | **Verified on 4× GB10** | Closed 4-Spark ring (`cycle_plan=true`, 1-hop ConnectX-7 relays): 8 KiB bf16 all-reduce **12.6–13.2 µs**, 64 MiB **4,224 µs (23.83 GB/s busbw)**, 5 CUDA-graph replays exact, teardown **0.15–0.17 s**. With `--ring-only` (zero relays): 8 KiB **196.1–196.5 µs**, 64 MiB **4,222 µs (23.84 GB/s busbw)**, teardown **0.15 s**. | +| **`libsircl` Collectives (`nccl-tests` v2.21.1 + bit-exact suite)** | `libsircl 0.6.0` (`libnccl.so.2`, API 22705) | Pair, Open Chain, Closed Ring (4 & 8), `--ring-only` | **Verified on 4× GB10** | 4-Spark ring ([record](performance/records/transport/libsircl-ring4-image-1a8c10354eb0-20261010.md)): 4 KiB all-reduce **18.5–25.6 µs**, 256 MiB **24.25–24.31 GB/s**, all-gather **24.20 GB/s**, reduce-scatter **23.29 GB/s**, `#wrong 0`. 8-Spark ring ([record](performance/records/transport/libsircl-ring8-image-1a8c10354eb0-20261009.md)): 4 KiB **29.1 µs** (vs NCCL 2.32.3 **120.3 µs**), 256 MiB **24.32–24.35 GB/s** (vs NCCL **23.56 GB/s**). Open 4-Spark chain (`path:4-7`): `#wrong 0` across collectives + P2P channels ([`STATUS.md`](spark_transport/libsircl/STATUS.md)). | +| **MoE Expert Parallelism (`SIRCL-EP`, vLLM + B12X)** | `libsircl_ep.so` over `libsircl` CUDA-graph P2P channels (`LIBSIRCL_P2P_CHANNELS=on`) | Closed Ring, Open Chain (4+ Sparks) | **Verified on 4× GB10** | `DeepSeek-V4.1-Flash` `DP4+EP4` on 4-Spark ring ([`STATUS.md`](spark_transport/libsircl/STATUS.md)): microbenchmark (`H=5120, E=384, K=6`) `B=1` **71.07 µs** (1.63× vs fixed P2P), `B=128` **489.60 µs** (1.09× vs AgRs); end-to-end decode `C1/C4/C8/C16` = **17.96 / 52.16 / 91.32 / 163.72 tok/s** (+7.2% to +15.8% over AgRs), 0 RDMA payload bytes on all-local routing inside frozen CUDA graphs. Split `libsircl_ep.so` ABI also **Verified on CI / Emulation**. | +| **Installer vLLM Profiles (`sparkring install`)** | SIRCL + B12X (default) or `--transport libsircl` (research-only) | Pair, Open Chain, Closed Ring (2, 4, 6, 8) | **Verified on 4× GB10** | Release `2026.10.2` baseline ([benchmarks](performance/benchmarks.md), [`README.md`](README.md#speed)): `Qwen3.8-Flash-Next` TP4 ring **73 / 204 / 288 tok/s** (C1/C4/C8), 32K prefill **4,553 tok/s**; `DeepSeek-V4.1-Flash` TP4 ring **71 / 137 / 194 tok/s** (TP8 **74 / 174 / 259 tok/s**); `GLM-5.3-Flash` TP4 path **68 / 135 / 204 tok/s**. `--transport libsircl` verified on 2-Spark pair (`qwen38-flash-next-tp2`, 7,783 all-reduces, 3,420 captured). | +| **DeepSeek-V4.1-Flash on SGLang (Adapter Recipe)** | Patched NCCL 2.30.7 (switchless-cycle) | Closed Ring (4 Sparks) | **Verified on 4× GB10** | TP4/EP4 recipe ([guide](runtime/deepseek-v41-sglang/README.md)): bounded replay quality checks, 6-hour C8 soak at 430K context, and 640K exact retrieval on shared image. | +| **Stock NCCL Frameworks (`net-sircl` plugin)** | `net-sircl 0.1.3` (`libnccl-net-sircl.so`, `ext-net v7–v12`, stock NCCL 2.27–2.32) | Pair, Open Chain, Closed Ring (2, 4, 6, 8) | **Verified on 4× GB10** | Live 4-Spark ring (`net-sircl 0.1.3` `856a79f`, PyTorch `2.13.0+cu130`, NCCL 2.32.3 `Ring` 8 ch): 8 KiB bf16 all-reduce **37.9–38.0 µs**, 64 MiB **4,472–4,499 µs (22.37–22.51 GB/s busbw)**, 5 CUDA-graph replays exact, teardown **0.36 s**. Earlier `0.1.1`/`0.1.2` builds verified PyTorch DDP/FSDP2, DeepSpeed ZeRO-2/3, Accelerate/TRL, JAX, TensorRT-LLM, vLLM, and SGLang across 2–8 Sparks (open 4-Spark path ~**14.4 GB/s** at 256 MiB vs ~0.5 MB/s for stock NCCL IB over relays). | +| **Stock vLLM Images (`VllmAdapter`, `--image REF --transport libsircl`)** | `libsircl 0.6.0` (`LD_PRELOAD` + `VLLM_NCCL_SO_PATH` + shadow mounts) | Pair, Open Chain, Closed Ring, `--ring-only` | **Verified on CI / Emulation** | Preflight, `libnccl.so.2` shadow-mount binding, `parallel_groups` ring checks, and `ContainerSpec` generation verified in CI; multi-Spark live stock-vLLM serving sweep pending. | +| **Generic NCCL / Custom Containers (`GenericContainerAdapter`, e.g. ExLlamaV3 / custom C++ / DDP)** | `libsircl 0.6.0` (`LD_PRELOAD` + shadow mounts) | Pair, Open Chain, Closed Ring, `--ring-only` | **Verified on CI / Emulation** | `GenericContainerAdapter` passes container argv verbatim, injects `LD_PRELOAD`/shadow mounts/`RANK`/`WORLD_SIZE`/`MASTER_ADDR`, and validates ring groups in CI; PyTorch `torch.distributed` verified on 4× GB10 (row above). Community ExLlamaV3/custom-container builds are **Community Verified**. | +| **Standalone Fabric Planner & Relays (`sparkring-fabric`)** | Zero-dependency Python stdlib (`tc flower` + root RDMA-TX marker) | Pair, Open Chain, Closed Ring, `--ring-only` | **Verified on 4× GB10** | Active on 4-Spark and 8-Spark ConnectX-7 rings; route derivation, hairpin queue budgeting, and stdlib-only import boundary tested in CI ([`sparkring_fabric/README.md`](sparkring_fabric/README.md)). | + +## Live 4× GB10 Transport Comparison (Closed Ring) + +Matched 4-Spark closed-ring measurements (`200 Gb/s` ConnectX-7 RoCEv2, 2 lanes +per neighbor, GID index 3, PyTorch `2.13.0+cu130`, bf16 `torch.distributed.all_reduce`, +eager + 5 CUDA-graph replays, clean `destroy_process_group()`): + +| Transport & Mode | Relays Required | 8 KiB AllReduce | 64 MiB AllReduce (Bus BW) | Teardown | Notes | +|---|---|---:|---:|---:|---| +| **`libsircl 0.6.0` (Full Ring, `cycle_plan=true`)** | Yes (1-hop ConnectX-7) | **12.6–13.2 µs** | **4,224 µs (23.83 GB/s)** | **0.15–0.17 s** | One-shot small messages + cycle-plan ring ops ≥8 MiB; 4/4 healthy receipts, `forwarded=0`. | +| **`libsircl 0.6.0` (`--ring-only`, `LIBSIRCL_RING_ONLY=1`)** | **No** (neighbor-only) | **196.1–196.5 µs** | **4,222 µs (23.84 GB/s)** | **0.15 s** | Zero relay tables or marker daemons; full 64 MiB bandwidth; higher small-message latency. | +| **`net-sircl 0.1.3` (Stock NCCL 2.32.3, `Ring`, 8 ch)** | No (closed ring neighbors) | **37.9–38.0 µs** | **4,472–4,499 µs (22.37–22.51 GB/s)** | **0.36 s** | Stock NCCL `ext-net v12` plugin; keeps NCCL algorithms and training-stack compatibility. | + +## Live 4× GB10 Stock SGLang `0.5.23` Qualification Details + +Verified with unmodified `lmsysorg/sglang:v0.5.23-cu130-runtime` (ARM64, +Python `3.12.16`, glibc `2.39`, PyTorch `2.14.1+cu130`, CUDA driver API `13000`, +GB10 `sm_121`) launched through `runtime/common/stock_image.py` and +`SglangAdapter` (`runtime/common/engine_adapter.py`) with `libsircl.so.0.6.0`: + +- **Preflight & Binding (`stock_image_probe.py`)**: Zero preflight problems + (`19/19` SGLang PyNccl symbols present, `missing=[]`). Auto-discovered and + shadow-mounted both bundled NCCL paths + (`/opt/sglang/lib/python3.12/site-packages/nvidia/nccl/lib/libnccl.so.2` and + `/usr/lib/aarch64-linux-gnu/libnccl.so.2.32.3`). `dladdr` binding probe + confirmed PyNccl (`SGLANG_NCCL_SO_PATH`), `libtorch_cuda.so`, and global scope + all resolve `ncclGetVersion` in `libsircl.so.0.6.0` (runtime version `22705`, + compile-time headers `[2, 30, 7]`), with `libsircl.so.0.6.0` as the sole + mapped `libnccl.so.2`. +- **Full Ring (`cycle_plan=true`) vs `--ring-only` (`LIBSIRCL_RING_ONLY=1`)**: + Both modes captured all 58 prefill CUDA graphs (`[4..8192]` tokens) and 52 + decode CUDA graphs (`[1..512]` batch sizes), served HTTP 200 on `/health`, + `/health_generate`, and `/v1/models`, and produced identical deterministic + outputs on `Qwen3-0.6B` TP4 (`149.8 tok/s` on full ring vs `68.8 tok/s` on + `--ring-only` for a 36-token single-stream completion, reflecting the 13 µs + one-shot vs 196 µs ring-only small-message all-reduce difference). + +## Known Limitations & Unsupported Configurations + +- **Stock-image SGLang refusals (`runtime/common/stock_image.py`)**: Pipeline + and data parallelism (`--pp-size > 1`, `--dp-size > 1`), `--enable-dp-attention`, + expert parallelism narrower than tensor width (`--ep-size != --tp-size`), + non-`none` `--moe-a2a-backend` (DeepEP/NVSHMEM/NIXL/Mooncake/MORI), + disaggregation, memory saver, symmetric memory, MSCCL++, FlashInfer all-reduce + fusion, and `--load-format instanttensor` are explicitly refused at preflight. +- **`libsircl` API boundaries ([`spark_transport/libsircl/STATUS.md`](spark_transport/libsircl/STATUS.md))**: + 36 of 73 NCCL 2.32.3 host functions are implemented; `ncclCommSuspend` / + `ncclCommResume` (vLLM sleep mode) and NCCL device-API communicators return + `ncclInvalidUsage`. `ncclBroadcast` lacks a ring schedule (1.9–5.3 GB/s at + 256 MiB on 4–8 Sparks). +- **`--ring-only` boundary**: Requires a direct-cable pair or closed cycle; + refuses open chains and partial arcs that need ConnectX relays. +- **Scope honesty**: Functional and microbenchmark checks on 4× GB10 establish + correctness, CUDA-graph stability, and collective latency/bandwidth; full + long-context soak and multi-concurrency serving A/B qualification remain + per-profile ([`performance/benchmarks.md`](performance/benchmarks.md)). diff --git a/README.md b/README.md index d085f583..b9943274 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ approves, and running it again updates or switches models. `--on 0-3` places a model on part of the Sparks. Node A restarts a model that stops serving; `--no-auto-recover` turns that off. -More: [documentation](docs/README.md) · [commands](docs/operations/commands.md) · +More: [compatibility matrix](COMPATIBILITY.md) · [documentation](docs/README.md) · [commands](docs/operations/commands.md) · [status dashboard](docs/operations/dashboard.md) · [Docker Compose files](docs/operations/compose-files.md) · [pinned install command](docs/operations/install-package.md#get-the-package) @@ -110,6 +110,7 @@ Records: ## Documentation +- [Compatibility matrix (What works on SparkRing)](COMPATIBILITY.md) - [Benchmarks and test results](performance/benchmarks.md) - [Architecture](docs/architecture/overview.md) - [Container images](runtime/images/README.md#container-images) From 1f776aa5fcaaa475235fe1afb8fcbc4f884d06e2 Mon Sep 17 00:00:00 2001 From: FujitsuPolycom <87842395+FujitsuPolycom@users.noreply.github.com> Date: Mon, 30 Nov 2026 10:19:11 -0600 Subject: [PATCH 2/2] docs: polish README.md Hyperflare note to plain English --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b9943274..ad39c801 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,15 @@ a drop-in `libnccl.so.2` library) and ConnectX-7 host fabric + launcher layer for accelerating **vLLM, SGLang, and custom PyTorch/NCCL workloads** across two to eight directly cabled NVIDIA DGX Sparks with no switch. -> **Using [Hyperflare](https://github.com/NVIDIA/hyperflare-inference) (Flare)?** -> SparkRing owns the switchless ring/chain RDMA transport (`libsircl`) and -> multi-Spark host/launcher support for vLLM, SGLang, and custom NCCL -> containers. Hyperflare owns the custom native inference engine — if you do -> not need vLLM, SGLang, or custom NCCL ring support, start with -> [Hyperflare](https://github.com/NVIDIA/hyperflare-inference). +> **Looking for a native inference engine instead of vLLM, SGLang, or custom +> NCCL containers?** Check out +> [Hyperflare](https://github.com/NVIDIA/hyperflare-inference). SparkRing +> focuses on the switchless ring & chain RDMA fabric +> ([`sparkring_fabric`](sparkring_fabric/README.md)), drop-in `libnccl.so.2` +> ([`libsircl`](spark_transport/libsircl/README.md)), and multi-Spark cluster +> stack for vLLM, SGLang, and PyTorch/NCCL workloads +> ([compatibility matrix](COMPATIBILITY.md)). For a standalone stock-NCCL +> network plugin, see [`net-sircl`](https://github.com/FujitsuPolycom/net-sircl). One command cables, enrolls, and configures a pair, line, or ring of two to eight DGX Sparks over ConnectX-7, then deploys one model across all of them or