Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 82 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,46 @@ jobs:
- name: Lint maintained Python trees
run: ruff check --select E,F,W --ignore E501 spark_transport runtime scripts performance integrations

shellcheck:
name: shellcheck
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- name: Check active shell scripts with bash -n and shellcheck
run: |
# Scope shellcheck -S warning to top-level active entry points so CI stays green while
# historical performance/records and jovian-r33 build scripts remain untouched. Run bash -n
# syntax checks across active entry points, launcher scripts, and transport tools.
entry_scripts=(
install.sh
bootstrap.sh
)
syntax_scripts=(
"${entry_scripts[@]}"
scripts/nccl_ib_gid_policy.sh
scripts/deepseek_v41_cycle_serve.sh
scripts/deepseek_v4_cycle_serve.sh
scripts/deepseek_v4_pair_serve.sh
scripts/qwen38_dgx2_serve.sh
scripts/qwen38_dgx4_serve.sh
scripts/qwen38_pair_serve.sh
scripts/qwen38_ring4_serve.sh
spark_transport/libsircl/tools/emulation_suite.sh
spark_transport/libsircl/tools/nccl_tests_pair.sh
spark_transport/nccl/probe_dcp4_entrypoint.sh
spark_transport/nccl/probe_entrypoint.sh
)
for script in "${syntax_scripts[@]}"; do
bash -n "$script"
done
shellcheck -S warning "${entry_scripts[@]}"

tests:
name: tests
runs-on: ubuntu-latest
# The suite took 26 to 39 minutes in October 2026 runs; 60 leaves room without hiding a hang.
timeout-minutes: 60
# Runs parallelized across all runner cores with pytest-xdist (-n auto --dist loadfile).
timeout-minutes: 30
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
Expand All @@ -52,6 +87,7 @@ jobs:
- name: Install test dependencies
run: |
python -m pip install --disable-pip-version-check -r requirements-dev.txt
python -m pip install --disable-pip-version-check pytest-xdist==3.6.1
python -m pip install --disable-pip-version-check \
--index-url https://download.pytorch.org/whl/cpu \
"torch==${TORCH_VERSION}"
Expand All @@ -63,19 +99,56 @@ jobs:
- name: Check image composition contracts
run: |
python runtime/images/composition.py runtime/images/sparkring-r35
python -m pytest runtime/images -q
- name: Test maintained Python trees
python -m pytest -n auto --dist loadfile runtime/images -q -rs
- name: Test isolated-import Python suites
run: |
# runtime/glm53-flash-e10536a/test_contract.py shares a module basename with
# runtime/glm53-spark-mtp3-mesh/performance/reasoning/test_contract.py.
python -m pytest runtime/glm53-flash-e10536a -q -rs
# Vendored SparkCache deploy/contract tests expect integrations/sparkcache/4a17f1f5198e on PYTHONPATH.
# The two omitted files require unvendored upstream sparkcache repository files
# (RELEASING.md/.github/workflows/ci.yml and sparkcache.test_qwen38_installer_topology).
PYTHONPATH=integrations/sparkcache/4a17f1f5198e python -m pytest -n auto --dist loadfile \
integrations/sparkcache/4a17f1f5198e/deploy \
--ignore=integrations/sparkcache/4a17f1f5198e/deploy/deployment_contract/test_release_hardening.py \
-q -rs
- name: Test auto-discovered Python suites
run: |
# The glm53full_speedups and glm_dsa_indexer_split tests import the GLM-5.3 image's vLLM and B12X
# sources while they are collected, from the directory SPARKRING_GLM53_IMAGE_SOURCES names (their
# READMEs). The runner has no image, so without that variable they are left out, with a notice;
# the glm_dcp_decode_comm tests skip the checks that need the image themselves.
# Auto-discover all Python tests from the repository root so newly added test_*.py files
# are never silently skipped (enforced by scripts/test_ci_checks.py).
#
# Excluded here because another step or dedicated CI job owns them (zero duplicate runs):
# - runtime/images, runtime/glm53-flash-e10536a, integrations/sparkcache/4a17f1f5198e (steps above)
# - spark_transport/sircl (sircl job: isolated /sys/class/infiniband mount namespace)
# - integrations/lil (lil-bridge job: built pinned Go CLI)
# - scripts/compose_builder (compose-builder job: Node 22 + SPARKRING_REQUIRE_NODE=1)
# - runtime/common/test_compose*.py, runtime/common/test_toolchain_profiles.py,
# scripts/test_sparkring_compose.py (compose-profiles job: Docker Compose + SPARKRING_REQUIRE_COMPOSE=1)
#
# Excluded because they require external container/GPU/image sources unavailable on CPU runners:
# - runtime/deepseek-v41-gb10/tools/test_engram_packed.py (imports container-only vllm.models.deepseek_v4_1)
# - runtime/releases/shared-2026.09.0-rc.1/qualification (frozen b12x/GPU qualification fixtures)
# - integrations/vllm/glm53full_speedups/tests and integrations/vllm/glm_dsa_indexer_split/tests
# (require SPARKRING_GLM53_IMAGE_SOURCES pointing to the target image's vllm/ and b12x/ Python sources)
image_tests=()
if [ -z "${SPARKRING_GLM53_IMAGE_SOURCES:-}" ]; then
echo "::notice title=GLM-5.3 plugin tests skipped::integrations/vllm/glm53full_speedups/tests and integrations/vllm/glm_dsa_indexer_split/tests need SPARKRING_GLM53_IMAGE_SOURCES, a directory of the target image's vllm/ and b12x/ Python sources"
image_tests=(--ignore=integrations/vllm/glm53full_speedups/tests --ignore=integrations/vllm/glm_dsa_indexer_split/tests)
fi
python -m pytest spark_transport --ignore=spark_transport/sircl runtime/exl3-r7 runtime/glm53-flash runtime/glm53-flash-jj-r8-gb10 runtime/glm53-spark-mtp3-mesh runtime/deepseek0731-gb10 runtime/qwen38 runtime/sparkring runtime/profiles runtime/transport_profiles runtime/test_public_overlay.py performance/harnesses scripts integrations/lil integrations/vllm integrations/b12x runtime/common runtime/host runtime/deepseek-v41-gb10/tools/test_packed_output_policy.py runtime/deepseek-v41-gb10/tools/test_prewarm5.py "${image_tests[@]}" -q -rs
python -m pytest . -n auto --dist loadfile \
--ignore=runtime/images \
--ignore=runtime/glm53-flash-e10536a \
--ignore=integrations/sparkcache/4a17f1f5198e \
--ignore=spark_transport/sircl \
--ignore=integrations/lil \
--ignore=scripts/compose_builder \
--ignore=runtime/common/test_compose.py \
--ignore=runtime/common/test_compose_envelope.py \
--ignore=runtime/common/test_toolchain_profiles.py \
--ignore=scripts/test_sparkring_compose.py \
--ignore=runtime/deepseek-v41-gb10/tools/test_engram_packed.py \
--ignore=runtime/releases/shared-2026.09.0-rc.1/qualification \
"${image_tests[@]}" -q -rs

sircl:
name: SIRCL ring sessions
Expand Down
76 changes: 49 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
# SparkRing

*If you're not looking for vllm/sglang/other specific ring support, I highly recommend [Hyperflare](https://github.com/NVIDIA/hyperflare-inference)*

SparkRing's profiles run three models created by Local Inference Lab, Inc. and
licensed under the Local Inference Lab License, Version 1.0:
[GLM-5.3-Flash-NVFP4-MXFP8-CSF-QAD](https://huggingface.co/local-inference-lab/GLM-5.3-Flash-NVFP4-MXFP8-CSF-QAD)
(`glm53-flash-tp2`, `glm53-flash-tp4`, `glm53-flash-tp2-dcp2`),
[GLM-5.3-NVFP4-CSF](https://huggingface.co/local-inference-lab/GLM-5.3-NVFP4-CSF)
(`glm53-nvfp4-csf-tp6`, `glm53-nvfp4-csf-tp8`) and
[Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD](https://huggingface.co/local-inference-lab/Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD)
(`qwen38-flash-next-tp2`). https://local-inference-lab.ai/

SparkRing serves large language models on two to eight NVIDIA DGX Sparks
cabled directly over ConnectX-7, with no switch. One command installs a model
on all of them, or several models on separate groups of them.
SparkRing is a switchless ring and chain RDMA collective transport (`libsircl`,
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).

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
several models on separate groups.

## Quick start

Expand Down Expand Up @@ -44,11 +45,17 @@ More: [documentation](docs/README.md) · [commands](docs/operations/commands.md)

## SIRCL

SIRCL, the Switchless Inference RDMA Collective Layer, carries the model's
collectives between Sparks, including Sparks reached through another Spark's
ConnectX-7 relay ([architecture](docs/architecture/sircl.md)).
[net-sircl](https://github.com/FujitsuPolycom/net-sircl) brings it to any NCCL
application as a network plugin (research-only).
SIRCL (the Switchless Inference RDMA Collective Layer) carries collectives and
point-to-point exchanges between directly cabled Sparks, including peers
reached through another Spark's ConnectX-7 hardware relay
([architecture](docs/architecture/sircl.md)).

- **[`libsircl`](spark_transport/libsircl/README.md)** is SparkRing's primary
drop-in `libnccl.so.2` implementation: preload it into stock vLLM, SGLang, or
PyTorch `ProcessGroupNCCL` containers to run switchless pair, chain, and ring
RDMA collectives over ConnectX-7.
- **[net-sircl](https://github.com/FujitsuPolycom/net-sircl)** exposes SIRCL as
an NCCL network plugin for custom NCCL applications (research-only).

## Profiles

Expand All @@ -74,11 +81,16 @@ research-only; the other rows are implemented. The six-Spark GLM-5.3 profile

## Speed

Output tok/s, measured with llm-inference-bench 0.7.6 at temperature 1 on
release 2026.10.2's image, one start per profile installed without research
options; decode and prefill at 32K context. The default image, release
2026.10.5's, has no speed record of its own, nor has its parent, release
2026.10.4's. Records:
> **Historical baseline (release `2026.10.2` only):** The table below records
> output tok/s measured with `llm-inference-bench 0.7.6` at temperature 1 and
> 32K context on release `2026.10.2`'s image (one start per profile without
> research options). Releases `2026.10.4` and `2026.10.5` do not have a
> matching full-matrix speed sweep yet; treat these numbers as a historical
> reference for `2026.10.2`, not current release benchmarks. See
> [Benchmarks and test results](performance/benchmarks.md) for methodology and
> per-profile receipts.

Records:
[every cell's raw source](performance/records/images/release-2026.10.2-speed-32k-20261012.md),
[rings of four](performance/records/images/dev-20261010-kraken-csf-sircl032-libsircl060cd-plugins-status036-release-2026.10.3-plain-ring4-20261012.md),
[ring of eight](performance/records/images/dev-20261010-kraken-csf-sircl032-libsircl060cd-plugins-status036-release-2026.10.3-plain-ring8-20261012.md),
Expand All @@ -104,7 +116,17 @@ options; decode and prefill at 32K context. The default image, release
- [Contributing](CONTRIBUTING.md) and [repository layout](docs/development/layout.md)
- [Community discussions](https://github.com/FujitsuPolycom/sparkring/discussions)

## Acknowledgements
## Attribution & Licenses

SparkRing's profiles reference three models created by Local Inference Lab, Inc.
and licensed under the Local Inference Lab License, Version 1.0
(https://local-inference-lab.ai/):
[GLM-5.3-Flash-NVFP4-MXFP8-CSF-QAD](https://huggingface.co/local-inference-lab/GLM-5.3-Flash-NVFP4-MXFP8-CSF-QAD)
(`glm53-flash-tp2`, `glm53-flash-tp4`, `glm53-flash-tp2-dcp2`),
[GLM-5.3-NVFP4-CSF](https://huggingface.co/local-inference-lab/GLM-5.3-NVFP4-CSF)
(`glm53-nvfp4-csf-tp6`, `glm53-nvfp4-csf-tp8`), and
[Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD](https://huggingface.co/local-inference-lab/Qwen3.8-Flash-Next-NVFP4-MXFP8-CSF-QAD)
(`qwen38-flash-next-tp2`).

SparkRing builds on [Local Inference Lab](https://local-inference-lab.ai/)
([GitHub](https://github.com/local-inference-lab) ·
Expand All @@ -128,10 +150,10 @@ licensed under Apache-2.0; b12x now lives in FlashInfer at
SparkRing's NCCL patches follow Joseph Rose's
[nccl-spark-switchless](https://github.com/josephdrose/nccl-spark-switchless).
Thanks to Eugene Rakhmatulin for the `eugr/spark-vllm-b12x` base image, and to
the vLLM, NVIDIA NCCL and ExLlamaV3 contributors. The
the vLLM, SGLang, NVIDIA NCCL and ExLlamaV3 contributors. The
[third-party notices](THIRD_PARTY_NOTICES.md) give origins and licenses.

## License
### License

SparkRing code is [Apache-2.0](LICENSE). Model weights and bundled components
keep their own terms; check the model cards and
Expand Down
Loading
Loading