Skip to content

feat: [AMD Support via SemiAnalysis][1/4] AMD hardware and required cluster runtime - #1

Closed
cquil11 wants to merge 1 commit into
mainfrom
agent/amd-multinode-runtime
Closed

cquil11 wants to merge 1 commit into
mainfrom
agent/amd-multinode-runtime

Conversation

@cquil11

@cquil11 cquil11 commented Aug 10, 2026 •

Copy link
Copy Markdown

Scope

Enable AMD hardware and make native srt-slurm jobs work on our Slurm clusters. This combines the former hardware and required-runtime PRs; functionality needed to launch the deployment is no longer hidden in a separate prerequisite layer.

  • Cluster configuration owns GPU visibility, GPU-exporter defaults, network interface, mounts, model paths, and Slurm options. NVIDIA defaults are preserved. There is no vendor enum, accelerator dispatch module, or new GRES convention.
  • Resolve GPU-exporter defaults once at config load, with explicit recipe overrides taking precedence.
  • Apply the configured visibility variable to allocated GPU subsets; preserve full-node and backend device-binding behavior. vLLM has one set_visible_devices option.
  • Respect the configured interface for control-plane and SGLang worker addresses, and forward recipe Slurm options to native routers.
  • Write worker configuration inside the existing container log mount.
  • Static routers that need ready HTTP workers opt into the existing health polling before launch. SGLang enables it so slow model loading cannot exhaust initial registration. Worker URLs are resolved once and reused.

Upstream scheduling escape hatches handle GRES: use_gpus_per_node_directive: false and default_sbatch_directives: {gres: "gpu:8"}. Cluster host setup uses the existing lifecycle. No engine patch, new deployment system, automatic network fallback reordering, or Dynamo installation workaround is added.

Review map

  • core/schema.py, core/config.py, core/runtime.py: cluster defaults and runtime context.
  • cli/mixins/worker_stage.py, backends/vllm.py: GPU binding and container-visible config.
  • frontends/, services/implicit.py: configured addresses, Slurm options, and native startup.
  • Example profile, dry-run, docs, and focused behavioral tests accompany those changes.

Optional deployment fork #16, Dynamo installation fork #15, and Infera fork #3 are outside this validation.

Review the stack

The upstream PRs target NVIDIA main and are manually stacked, so later upstream diffs include preceding layers. The downstream fork PRs form an actual branch-based stack (main → #1 → #11 → #7 → #14); each fork PR's Files changed tab isolates its layer for easier review.

Merge in that order, then rebase the remaining layers. ATOM uses Mooncake, not MoRI; its stack position is review ordering, not an engine dependency. The core runtime does not require the observation layer, but the InferenceX launcher uses its srtctl wait command.

E2E validation

  • AMD hardware/runtime #431: MI300X aggregate smoke — passed; Qwen3-0.6B, 16/16 requests. Tests a second AMD generation/cluster and direct SGLang serving without disaggregation or a router.
  • AMD hardware/runtime #431: MI355X DSpark SGLang/MoRI AgentX c4 — passed; 190 measured requests, zero errors, one end-of-window cancellation. Tests separate prefill/decode nodes, native SGLang routing, and MoRI transfer.
  • AMD hardware/runtime #431: R1 2P1D c8 — passed; 80/80 requests. Tests registration and routing across two prefill replicas and one decode replica with SGLang/MoRI.
  • AMD hardware/runtime #431: R1 1P2D c8 — passed; 80/80 requests. Tests one prefill replica and two TP8 decode replicas with SGLang/MoRI; both decode endpoints served requests, including the reprovisioned g50 node.
  • AMD hardware/runtime #431: DSpark UMBP c128 smoke — passed; five-minute measurement, 795 successful requests, zero request errors, 12 cutoff cancellations (cancellation grace expired). Tests managed UMBP startup/teardown, GPU IPC registration, DP-aware routing across eight prefill and eight decode ranks, and host-cache reuse. Uses a 64 GiB smoke cache; does not validate the production 1.5 TB cache setting.
  • vLLM/MoRI #432: Colocated MiniMax M3 c4 — passed; 40/40 requests. Tests TP4 prefill and TP4 decode on one node, GPU separation, distinct listener ports, and vLLM routing with MoRI-IO.
  • ATOM/AToMesh #433: DeepSeek V4 ATOM + AToMesh/Mooncake c4 — passed; 40/40 requests. Tests the ATOM engine, AToMesh router, and Mooncake KV transfer.
  • All runs above use fork stack 7a7ca652 and exercise job observation #476. These are functional serving smoke tests, not accuracy, power-telemetry, or full-sweep validation.

@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from 3363984 to 8dd98d5 Compare August 10, 2026 01:26
@cquil11
cquil11 changed the base branch from main to agent/native-router-frontends August 10, 2026 09:29
@cquil11
cquil11 marked this pull request as ready for review August 10, 2026 09:29
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from 315e4b0 to f94026b Compare August 11, 2026 01:18
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from 8bd8aef to 5c0d5a7 Compare August 11, 2026 15:12
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from 0f8ec45 to 42f5ef8 Compare August 26, 2026 22:51
@cquil11
cquil11 changed the base branch from agent/native-router-frontends to main August 26, 2026 22:54

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread src/srtctl/cli/submit.py Resolved
Comment thread src/srtctl/backends/vllm.py Resolved
Comment thread src/srtctl/core/schema.py Resolved
@cquil11

cquil11 commented Sep 3, 2026

Copy link
Copy Markdown
Author

Cleanup pushed in 93b854c.

  • Remove the recipe-level host_setup_script hook and its non-container host srun.
  • Add platform-neutral srtctl wait JOB_ID --log-file PATH: stream the allocation log, tolerate queue/accounting lag and transient query timeouts, and propagate the terminal allocation exit status. It never cancels or resubmits jobs.
  • InferenceX now calls native apply --json and wait; the adapter does not manage Slurm or repair hosts.

Validation: 249 focused base runtime tests passed. On the rebased ATOM child, 396 runtime/backend/router/config/CLI tests plus 76 benchmark tests passed. Three existing benchmark shell tests fail on a missing profiling.sh path on this macOS environment; the same failures were reproduced on the old runtime. Read-only live Slurm accounting checks correctly returned COMPLETED/0 for job 42158 and FAILED/1 for job 42154.

ATOM PR #7 is rebased on this head. The already-running InferenceX ATOM sweep remains pinned to its original runtime; it is not validation of this cleanup.

@cquil11

cquil11 commented Sep 4, 2026

Copy link
Copy Markdown
Author

MiniMax-M3 MI355X native-vLLM validation exposed a real orchestration defect in run https://github.com/SemiAnalysisAI/InferenceX/actions/runs/33836289639: all four TP children inherited the same VLLM_PORT scan base, and MoRI listeners collided before serving started. The unmodified upstream vLLM 0.28.0 port allocator reproduces the collision with that environment; without it, the kernel allocates ephemeral ports.

Fixed in c0472a8: MoRI keeps upstream ephemeral-port allocation; non-MoRI rendezvous bases remain unchanged. No engine source patch, custom image, cleanup helper, or model-option change. Two regression cases (backend connector and role override) fail before the fix and pass afterward. PR #7 incorporates the fix at 33a3d81.

112 focused vLLM/router/ATOM/accelerator/dry-run tests pass on the combined runtime. The broad local suite reports 1546 passed, 2 skipped, 6 deselected, and 5 failures; all five reproduce on the exact pre-change 81d4627 baseline (three sa-bench shell-path tests, one local shell-profile test, and one Linux-only CPU-affinity mock on macOS). Previously validated InferenceX recipes remain pinned to 81d4627; only the archived MiniMax compatibility lane selects the new runtime.

@cquil11

cquil11 commented Sep 4, 2026

Copy link
Copy Markdown
Author

The MoRI native-port fix in c0472a8 is now validated on MI355X with official vLLM ROCm v0.28.0 and the official vLLM Router nightly, through the combined PR #7 runtime 33a3d81.

Complete InferenceX run: https://github.com/SemiAnalysisAI/InferenceX/actions/runs/33837838363 — all jobs green, attempt 1. Port PR: SemiAnalysisAI/InferenceX#2824.

1P1D TP4/TP4: all nine 8k/1k concurrency points, 5,116/5,116 measured requests, plus full 1,319-question GSM8K (94.69% strict; unchanged threshold 90%). Per-point and per-sample artifact audits passed, including zero empty eval responses. An earlier independent full throughput sweep on the same runtime also passed. Both allocations cleaned up normally.

No engine source patches or graph-mode/config workarounds were needed. The source fix only preserves native ephemeral-port allocation for MoRI TP children; existing non-MoRI port behavior remains unchanged and covered by the focused regression tests. Previously validated InferenceX recipe pins were not changed.

@cquil11
cquil11 added this pull request to stack #17 September 15, 2026 14:09
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from f8ceebb to 4914abf Compare September 16, 2026 01:11
@cquil11
cquil11 removed this pull request from stack #17 September 16, 2026 05:23
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from 4914abf to f85aa6d Compare September 16, 2026 05:23
@cquil11
cquil11 added this pull request to stack #18 September 16, 2026 05:23
@cquil11 cquil11 changed the title [AMD Support][1/4] Base AMD hardware support [AMD Support][1/4] AMD hardware and required cluster runtime Sep 16, 2026

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread src/srtctl/frontends/static_router.py Resolved
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch 2 times, most recently from 07fd023 to 41b0e87 Compare September 18, 2026 21:36
@cquil11 cquil11 changed the title [AMD Support][1/4] AMD hardware and required cluster runtime feat: [AMD Support via SemiAnalysis][1/4] AMD hardware and required cluster runtime Sep 18, 2026
@cquil11
cquil11 removed this pull request from stack #18 September 22, 2026 14:38
@cquil11
cquil11 added this pull request to stack #25 September 22, 2026 14:38
@cquil11
cquil11 force-pushed the agent/amd-multinode-runtime branch from eba0cb5 to 54d50a7 Compare September 22, 2026 18:13

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 54d50a7. Configure here.

f"{worker.url.rstrip('/')}/health"
for worker in workers
if worker.url.startswith(("http://", "https://"))
]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gRPC workers skip readiness wait

Low Severity

The new pre-start probe only waits on http:// and https:// URLs, but sglang-router enables wait_for_workers_before_start and advertises grpc:// workers when grpc-mode is on. Those workers are skipped, so the gateway can still start before they answer and drop them.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 54d50a7. Configure here.

@cquil11

cquil11 commented Oct 5, 2026

Copy link
Copy Markdown
Author

Closing because AMD hardware and cluster runtime support was merged upstream in NVIDIA#431.

@cquil11 cquil11 closed this Oct 5, 2026
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