Repository navigation
Conversation
- Convert the 1-, 2- and 4-node MoRI model cards to madengine's slurm_multi launcher (nodes, GPUs and time in each card's slurm block) and drop the DeepEP cards. - Move the image from rocm/vllm-dev to lmsysorg/sglang:v0.5.20-rocm10-mi30x, pinning MoRI v1.2.3.post1; rocSHMEM/DeepEP are now optional (INSTALL_DEEPEP, deprecated). - Clear MoRI's JIT cache after install: a half-built cache left by the build leaves lock files that hang every later run on ROCm 7.2 images. - Document setting the Slurm partition at build time via --additional-context.
vdar25
requested review from
Cemberk,
amathews-amd,
coketaste,
gargrahul,
itej89,
lcskrishna and
leconcio
as code owners
October 2, 2026 22:33
run_ep_bench.sh always ran the MoRI low-latency benchmark with
--dtype fp8_e4m3_fnuz, gfx942's fp8. On gfx950 MoRI has no fnuz kernels
and the run aborts ("Cannot find Symbol with name:
_ZN4mori3moe25EpDispatchIntraNodeKern..."). It now detects the GPU arch
in the container and uses fp8_e4m3 (OCP) on gfx95x, fnuz elsewhere as
before; perf.csv reports the detected arch instead of falling back to
gfx942.
GLOO_SOCKET_IFNAME defaulted to the last word of the IPv4 default route.
That is the device only when the route has no metric; on a node whose
route reads "default via ... dev fenic0 proto static metric 108" Gloo was
told to use interface "108", and every MoRI benchmark died in
init_process_group ("Unable to find address for: 108"). It now takes the
word after "dev", the same device as before on routes without a metric.
The README names the MI35x SGLang base for gfx950 builds.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves the large EP benchmark onto madengine, refreshes its image, makes it run on any fabric and on MI350X / MI355X, and deprecates DeepEP.
slurm_multimodel cards andparse_ep_to_csv.pyalready existed but didn't run correctly under madengine.slurmblock anddistributed.nnodes. The node count used to live only inargs(-N 2 -n 2), which madengine passes to the script and the script ignored, so every card ran on one node.run_benchmark.sbatchnow runs madengine's image (DOCKER_IMAGE_NAME) instead of a hardcoded one.slurm_output/<job_id>/in the script directory (LOG_PATHoverrides it), andperf.csvis copied toslurm_output/perf_csv/results_<job_id>.csvin the submit directory, where madengine collects it.IBDEVICES=mlx5_0. MoRI matches each GPU to its own NIC from the PCIe topology.MORI_RDMA_DEVICES,MORI_DEVICE_NIC,GLOO_SOCKET_IFNAMEandIBDEVICESare forwarded into the containers only when set.GLOO_SOCKET_IFNAMEdefaults to the device of the IPv4 default route, taken as the word afterdev. It used to be the route's last word, which is the metric on routes that have one (... dev fenic0 proto static metric 108gave interface108, and every MoRI test died ininit_process_group).fp8_e4m3(OCP) on gfx95x,fp8_e4m3_fnuzelsewhere. It was always fnuz, for which MoRI has no gfx950 kernels, so that test aborted on MI350X.perf.csvreports the detected GPU arch. The README names the MI35x base for gfx950 builds.docker/large_ep_benchmark.ubuntu.amd.Dockerfilenow builds onlmsysorg/sglang:v0.5.20-rocm10-mi30x(lmsysorg/sglang:v0.5.20-rocm10-mi35xfor MI350X / MI355X;v0.5.12.post1-rocm720-mi30xalso works all viaBASE_DOCKER).v1.2.3.post1(MORI_REF), the same as the KV transfer bench, and gated byINSTALL_MORI.develop62324a88) and DeepEP (main0f63d3e9) are pinned, but only built withINSTALL_DEEPEP=1; the default is0.rocm/vllm-devbase, MoRI taken from the base image, and rocSHMEM and DeepEP unpinned.SKIP_DEEPEPnow defaults to1, and the two DeepEP cards (pyt_large_ep_bench_1n,pyt_large_ep_bench_2n) are removed. The three MoRI-only cards (1, 2 and 4 nodes) remain. DeepEP can still be enabled withINSTALL_DEEPEP=1plusSKIP_DEEPEP=0.Notes for reviewers
rm -rf /root/.mori /tmp/mori_jit_*). On the ROCm 7.2 SGLang base, installing MoRIv1.2.3.post1leaves lock files in/root/.mori/jitfor four EP kernels (ep_internode_v1,ep_internode_v1ll,ep_intranode,ep_async_ll), but not the compiled kernels. MoRI's file lock then waits forever, so any run that needs one of those kernels hangs at startup. It happened in both images built on that base (this one and the KV transfer bench's).vllm_disagg_inference.ubuntu.amd.Dockerfileclears the same cache. The kernels recompile on first use.v1.2.3.post1, internode low-latency (v1_ll) combine is about 15% slower than with the previous image (MoRI42e89547): 73.7 → 62–63 GB/s at the best sample, and 61.4 → 53.5 GB/s on average. It's the same on ROCm 10 and ROCm 7.2, so it isn't a ROCm 10 issue. Reported separately. The other three tests are within 5%.INSTALL_DEEPEP=1hasn't been built on either one, though DeepEP's internode and low-latency tests did complete on the previous image before the deprecation).Testing
MI300X (gfx942), RoCE (mlx5), 2 nodes:
pyt_large_ep_bench_2n_mori_onlythroughmadengine build --use-imageandmadengine run:perf.csvrows (dispatch and combine, normal and low-latency, each with bandwidth and latency), within 1.5% of a June run on the same cluster. This confirms the madengine wiring separately from the image change.v0.5.20-rocm10-mi30x): all 8 rows on two runs. Seven are within 5% of the previous image; low-latency combine is down 15% (see Notes).v0.5.12.post1-rocm720-mi30x): all 8 rows, matching ROCm 10, with the kernel-cache fix. Without it, the run hung at startup.MI350X (gfx950), Broadcom Thor2 RoCE, 1 node:
pyt_large_ep_bench_1n_mori_onlyat this head, image built from this Dockerfile withBASE_DOCKER=lmsysorg/sglang:v0.5.20-rocm10-mi35x, throughmadengine build --use-imageandmadengine run: all 8 rows,gpu_architecturegfx950, low-latency test infp8_e4m3.