Skip to content

Commit e738157

Browse files
authored
[VideoGenX] add MiniMax-H3 MI355X SGLang video sweep / [VideoGenX] 新增 MiniMax-H3 MI355X SGLang 视频扫描 (#4809)
* feat: run native H3 video sweeps from YAML recipes * feat: verify GPU ownership and seal H3 execution evidence * feat: define reproducible H3 workload sets * feat: measure H3 requests and validate generated media * refactor: delete unused OwnedProcess.owns helper * refactor: delete unused H3 bundle JSON digest helper * test: restore shared launch and workflow test cases * refactor: fold H3 spec digest and case helpers * test: table-drive H3 spec rejection cases * chore: compact H3 spec YAML and drop stale references * fix: use warmup case in GPU report slots * refactor: drop unreachable GPU job guards * test: drop dead parametrize branches in measurement tests * refactor: share no-follow open and canonical JSON helpers * test: inline single-case video parametrize and share reseal fixtures * refactor: share deadline budget in GPU probes * refactor: reuse runner slots and hashing in compare * test: drop dead parametrize branches in GPU tests * refactor: dedupe evaluator encoding, status, and quantile rules * refactor: drop duplicated video digest, srun, schema and env helpers * refactor: share video srt recipe defaults like agentic * docs: link video pins and timeouts to their sources * refactor: move offline compare and report tools out of measurement core * refactor: move offline GPU job tools out of native H3 sweep * refactor: move manual srt-yaml commands out of native H3 sweep * style: format native H3 evaluator modules with ruff * refactor: expose canonical_json_bytes as the one H3 hash encoding * fix: check the video readiness port and drop the empty prepare description * refactor: drop citations and per-engine notes from H3 specs * test: drop the hand-built fairness hash test * refactor: validate H3 v0.1 policy once in the spec loader by schema version * ci: lint and format all of experimental/video-generation and drop measurement-only deps * revert: keep run comparison and PSNR in the measurement core * refactor: move SGLang server timing out of the measurement core * chore: drop the unreferenced smoke plan and the nonexistent mvp extra hint * style: ruff format the measurement core * refactor: share the native video file contract from infx.bench.video * refactor: hash run bundles with the spec's canonical JSON * refactor: name each rejected field of the sealed v0.1 server launch * refactor: trust loader-validated plans and drop the redundant run_plan model_revision * refactor: derive engine encoding requests and media checks from the plan's encoding * refactor: keep native video checks at the binder, executor and ingest boundaries * chore: drop unconsumed prose and constant fields from run data * fix: keep a bounded redacted HTTP error excerpt and refuse every paid MiniMax host * refactor: default the single-choice reference dtype and attention backend * refactor: record native video job status as JSON * fix: count malformed power samples in the video bundle instead of skipping them * fix: drop unread constant bundle fields and validate each power sample's GPU coverage * refactor: resolve the video harness at one path beside the project * fix: hash the measurement window run with the shared canonical JSON * refactor: seal the image digest for every native video plan and check the launch once * fix: keep the video workload specs in nested matrix snapshots * fix: report the native video bundle outcome as its CI phase * fix: count video sweep jobs in run stats after they finish * fix: drop the static protocol source pin so run configuration names only the image revision * refactor: rename generic H3 spec and workflow names to video * refactor: rename generic H3 measurement-core naming to video * refactor: rename generic H3 native-sweep naming to video * fix: record approved head and video matrix in trusted sweeps * fix: validate trusted video sweeps with the dispatching workflow's validator * feat: run H3 on SGLang v0.5.23 for B200 and H100 (#4776) * fix: record engine parallelism in native video spec.json (#4777) * chore: fold the v0.5.23 changelog entry into the H3 sweep entry * chore: drop the H200 vLLM-Omni cell from the H3 sweep * chore: run H3 H200 on SGLang v0.5.23 * chore: drop the H200 SGLang cell from the H3 sweep * refactor: move the video harness to top-level video-generation * refactor: name the 20-prompt H3 spec by its schema version * docs: drop the release label from the runner's policy note * fix: let vgbench run record the server's numerical identity * fix: check reference case IDs before selecting all cases * docs: drop the release label from the H3 docs and changelog entry * fix: accept the newest video bundle per deployment across rerun attempts * fix: retry the video results upload like other result uploads * fix: stop serving-mode video runs promptly on interrupt * fix: name ROCm video GPUs by board serial * feat: add MiniMax-H3 MI355X SGLang video sweep * feat: serve MI355X H3 video from the shared HF cache * docs: link the MI355X H3 changelog entry to its PR * fix: select AITER attention in the MI355X H3 recipe * fix: keep a single video bundle in its named directory [skip-sweep] * refactor: share single-node srt steps between points and video [skip-sweep] * fix: run video sweeps only when a selection names them [skip-sweep] * refactor: drop the unused services-only recipe node count [skip-sweep] * ci: raise video job limits to fit 1-GPU points H200 1-GPU held its allocation 105 min in run 41992035811, past the 75-min limit. [skip-sweep] * test: prune 46 slop cases from the video sweep tests [skip-sweep] * docs: fix video harness README paths to the repo root [skip-sweep] * test: pin the CUDA device path in video server tests [skip-sweep]
1 parent 8d5a463 commit e738157

11 files changed

Lines changed: 189 additions & 17 deletions

File tree

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
schema: 2
2+
name: h3-sglang-serving-client
3+
4+
resources:
5+
gpu_type: mi355x
6+
7+
services:
8+
- name: video-server
9+
type: generic
10+
nodes: 1
11+
critical: true
12+
start: before_workers
13+
command: [python3, -m, infx.bench, video, serve]
14+
args:
15+
- --model-view
16+
- snapshot
17+
- --
18+
- /opt/venv/bin/python3
19+
- -m
20+
- evaluator.srt_selected
21+
- serve
22+
- --model-type
23+
- diffusion
24+
- --model-path
25+
- "{model_path}"
26+
- --model-id
27+
- "{model_id}"
28+
- --revision
29+
- "{model_revision}"
30+
- --model-variant
31+
- fl2va
32+
- --num-gpus
33+
- "{gpus_per_node}"
34+
- --ulysses-degree
35+
- "4"
36+
- --tp-size
37+
- "1"
38+
- --attention-backend
39+
- aiter
40+
- --encoder-parallel
41+
- auto
42+
- --warmup-resolutions
43+
- 1344x768
44+
- --disable-conditioning-cache
45+
- --performance-mode
46+
- speed
47+
- --host
48+
- 0.0.0.0
49+
- --port
50+
- "30283"
51+
- --enable-torch-compile
52+
- "false"
53+
- --dit-cpu-offload
54+
- "false"
55+
env:
56+
PYTHONPATH: /video-package:/infmax-workspace
57+
PYTHONUNBUFFERED: "1"
58+
VIDEO_SERVER_PORT: "30283"
59+
VIDEO_RUNTIME_REVISION: 297e54fd105e974cdf401e5b4d20253a22c16f90
60+
HF_HUB_OFFLINE: "1"
61+
TRANSFORMERS_OFFLINE: "1"
62+
SGLANG_USE_AITER: "1"
63+
# The image defaults quick all-reduce to INT8.
64+
ROCM_QUICK_REDUCE_QUANTIZATION: NONE
65+
readiness:
66+
http:
67+
port: 30283
68+
path: /health
69+
timeout_seconds: 1800
70+
interval_seconds: 5

‎inferencex-e2e/configs/amd-master.yaml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,3 +1065,21 @@ glm5.3flash-fp8-mi325x-sglang-agentic-mtp:
10651065
search-space:
10661066
- { tp: 4, ep: 4, spec-decoding: mtp, kv-offloading: none, conc-list: [1, 2, 4, 8, 12], srt-recipe: agentic.yaml }
10671067
- { tp: 4, ep: 4, spec-decoding: mtp, kv-offloading: dram, kv-offload-backend: { name: hicache }, conc-list: [16, 24, 32], srt-recipe: agentic.yaml }
1068+
1069+
h3-bf16-mi355x-sglang-video:
1070+
image: lmsysorg/sglang:v0.5.23-rocm724-mi35x@sha256:e5278f805bb4482cadc4957af63633a0b914b40c778f7f3ea63693a31ee04fdf
1071+
model: MiniMaxAI/MiniMax-H3
1072+
model-prefix: h3
1073+
runner: cluster:mi355x-amds
1074+
precision: bf16
1075+
framework: sglang
1076+
multinode: false
1077+
srt-recipe-dir: h3/sglang/mi355x-bf16
1078+
scenarios:
1079+
video-generation:
1080+
- spec: h3-v2.yaml
1081+
set: release-v1
1082+
search-space:
1083+
- gpus: 4
1084+
srt-recipe: serving-client.yaml
1085+
conc-list: [1]

‎inferencex-e2e/docs/MODELS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For non-grandfathered models, `ROCM_QUICK_REDUCE_QUANTIZATION`, `VLLM_ROCM_QUICK
3636
|---|---|---|
3737
| Agentic coding | Long Context, Multi Turn Realistic traffic trace replay with sub agents | Active. This is the trace-replay agentic-coding benchmark (see the srt-slurm recipes under [`benchmarks/single_node/srt-slurm-recipes/`](../benchmarks/single_node/srt-slurm-recipes) and the shared client [`benchmarks/srt_agentic.sh`](../benchmarks/srt_agentic.sh)). Going forward, new models will likely be onboarded with agentic coding only. Speculative decoding may be enabled or disabled to produce the best Pareto points; a separate non-spec-decode A/B baseline is not required (see [Deprecation policy](#deprecation-policy)). |
3838
| Single-turn 8k1k | 8192 / 1024 | Active. This is the primary fixed-sequence-length scenario. |
39-
| Video generation | H3: 124 frames at 24 fps, 1344x768, C1 | MiniMax-H3 uses native srt-slurm: H100/B200 SGLang select four-GPU, 20-clip `h3-v2.yaml` C1 points. The client and server live in [`video-generation`](../../video-generation); energy is reported per valid clip. Config presence does not qualify execution, power, or quality. AMD remains outside active configs. See [video delivery](video-generation.md). |
39+
| Video generation | H3: 124 frames at 24 fps, 1344x768, C1 | MiniMax-H3 uses native srt-slurm: H100/B200/MI355X SGLang select four-GPU, 20-clip `h3-v2.yaml` C1 points. The client and server live in [`video-generation`](../../video-generation); energy is reported per valid clip. Config presence does not qualify execution, power, or quality. See [video delivery](video-generation.md). |
4040
| Single-turn 1k1k | 1024 / 1024 | Deprecated since 2026-07-17 ([#2263](https://github.com/SemiAnalysisAI/InferenceX/pull/2263)), to save GPU cluster time for higher-priority real-world agentic-coding benchmarks and new frontier models. Archived configs lived in `configs/deprecated/` until it was deleted (#3463); see git history. The GLM-5.1 B200 TileRT point added later in [#2533](https://github.com/SemiAnalysisAI/InferenceX/pull/2533) was the last 1k1k config; it was retired on 2026-10-01 ([#3638](https://github.com/SemiAnalysisAI/InferenceX/pull/3638)). |
4141
| Single-turn 1k8k | 1024 / 8192 | **Deprecated for all models** since 2026-03-27 ([#911](https://github.com/SemiAnalysisAI/InferenceX/pull/911)), to save GPU cluster time for higher-priority real-world agentic-coding benchmarks and new frontier models. Configs were removed, not archived. |
4242

‎inferencex-e2e/docs/video-generation.md‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
# Native video delivery
22

3-
The `video-generation` scenario schedules one server job per deployment. H100
4-
and B200 SGLang select four-GPU C1 deployments using
3+
The `video-generation` scenario schedules one server job per deployment. H100,
4+
B200 and MI355X SGLang select four-GPU C1 deployments using
55
`h3-v2.yaml`: 20 distinct measured prompts, a separate warmup, 49 denoising
66
updates, and 124 frames at 24 fps and 1344×768. A five-second request produces
77
124/24 seconds of video. Config presence is not GPU or quality qualification.
88
Each deployment's image pin is its `*-video` entry in
9-
[`configs/nvidia-master.yaml`](../configs/nvidia-master.yaml).
9+
[`configs/nvidia-master.yaml`](../configs/nvidia-master.yaml) or
10+
[`configs/amd-master.yaml`](../configs/amd-master.yaml).
1011
Actual step execution, media,
1112
and power must be checked in the original run. The YAML workload has no `model.path`
1213
or Python field: the binder derives the pinned model snapshot path from `MODEL`,
1314
`HF_HUB_CACHE`, and the model revision. The service recipe selects the engine executable.
1415
Native power is accepted only when its sampled GPU UUIDs match the server's
15-
`spec.json` and `launch.json` assignment.
16+
`spec.json` and `launch.json` assignment. On ROCm the server names each GPU by
17+
its board serial, which is how the AMD power exporter identifies it.
1618
The H100 runner provides an HF hub cache mount, but the pinned H3 snapshot must
17-
be verified there before execution. MI355X is excluded because the prepared
18-
CUDA image cannot run on AMD. Historical artifacts remain evidence of their
19+
be verified there before execution. Historical artifacts remain evidence of their
1920
original workloads.
2021

2122
Each video service uses `command: [python3, -m, infx.bench, video, serve]`.
@@ -94,7 +95,8 @@ the first native video reuse request; a PR-local checker cannot bypass that gate
9495

9596
For an existing video runtime/API, change its native recipe and master config rather
9697
than adding a launcher or modifying the Python client. The configured deployments
97-
are the `*-video` keys in [`configs/nvidia-master.yaml`](../configs/nvidia-master.yaml);
98+
are the `*-video` keys in [`configs/nvidia-master.yaml`](../configs/nvidia-master.yaml)
99+
and [`configs/amd-master.yaml`](../configs/amd-master.yaml);
98100
each names its recipe directory under
99101
[`benchmarks/single_node/srt-slurm-recipes/h3/`](../benchmarks/single_node/srt-slurm-recipes/h3/).
100102
Their presence does not establish final-head GPU qualification.
@@ -105,10 +107,11 @@ Their presence does not establish final-head GPU qualification.
105107
or recipe-wide `environment`. Keep the native serve/client entrypoints and
106108
telemetry binding. A new model, engine API, topology or model-view format
107109
needs maintainer adapter validation before it becomes a recipe-only contribution.
108-
2. Change the existing row in `configs/nvidia-master.yaml`, or copy it with a
110+
2. Change the existing row in its master config, or copy it with a
109111
distinct key and recipe for a deployment that must remain separately selectable.
110112
Pin the image by digest and use its real interpreter and architecture. The
111-
H100/B200 SGLang rows use the public amd64 image. A shared image does
113+
H100/B200 SGLang rows use the public CUDA amd64 image and the MI355X row its
114+
ROCm MI35x build. A shared image does
112115
not qualify a different topology or SKU: validate
113116
the selected deployments through their sweep. Maintainers stage model snapshots in the runner's
114117
existing HF cache; contributors do not patch the cache or SSH extra launch flags.

‎inferencex-e2e/infx/launch/drivers/srt/models.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def single_node_model_path(cluster: Cluster, request: LaunchRequest) -> str:
191191
Match(agentic=True, model_glob="zai-org/GLM-5.2-FP8"),
192192
Match(agentic=True, model_glob="deepseek-ai/DeepSeek-V4.1-Flash"),
193193
Match(agentic=True, model_glob="amd/Muse-Spark-Open-*"),
194+
Match(model_glob="MiniMaxAI/MiniMax-H3"),
194195
),
195196
}
196197

‎inferencex-e2e/infx/tests/srt_slurm/test_video_selected.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def test_bound_selected_service_executes_its_engine_and_retains_launch_receipts(
158158
"VIDEO_RESULT_DIR": str(output),
159159
}
160160
bootstrap = (
161-
"import sys; from evaluator import srt_selected; "
161+
"import sys; from pathlib import Path; from evaluator import srt_selected; "
162+
f"srt_selected.KFD = Path({str(tmp_path / 'no-kfd')!r}); "
162163
"srt_selected.cuda_devices=lambda: ['GPU-00000000-0000-0000-0000-000000000001', "
163164
"'GPU-00000000-0000-0000-0000-000000000002']; "
164165
"from infx.bench.video import main; sys.exit(main(sys.argv[1:]))"

‎inferencex-e2e/perf-changelog.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12147,3 +12147,11 @@
1214712147
- "Rerun the two unchanged aggregated variants in the same sweep so the GB200 Dynamo-SGLang AgentX curve keeps all nine points."
1214812148
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4553
1214912149
scenario-type: [agentic-coding]
12150+
12151+
- config-keys:
12152+
- h3-bf16-mi355x-sglang-video
12153+
scenario-type: [video-generation]
12154+
description:
12155+
- "Run the native H3 C1 sweep on four MI355X GPUs with SGLang Ulysses4, using the h3-v2.yaml release-v1 workload of the H100 and B200 rows."
12156+
- "Use the SGLang v0.5.23 ROCm 7.2.4 MI35x image and name ROCm server GPUs by board serial so AMD power samples bind to the server."
12157+
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/4809

‎video-generation/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ decoded and validated, and every cell's
99
measured window published to srt-slurm's native GPU power telemetry.
1010

1111
InferenceX owns scheduling and results. `inferencex-e2e/configs/nvidia-master.yaml`
12-
declares the deployments (`h3-bf16-<sku>-<engine>-video`), `infx.matrix` plans
12+
and `amd-master.yaml` declare the deployments (`h3-bf16-<sku>-<engine>-video`), `infx.matrix` plans
1313
them from `perf-changelog.yaml`, `run-sweep.yml` runs the `video` bucket through
1414
`benchmark-tmpl.yml`, and `python -m infx.launch run` takes the `srt-video` path:
1515
the SKU recipe under `benchmarks/single_node/srt-slurm-recipes/h3/` starts the
1616
engine through `python3 -m infx.bench video serve` as a generic service and runs
1717
`python3 -m infx.bench video client` as `benchmark.type: custom`. This directory
18-
is mounted into the job as `/video-package`. H100 and B200 select
18+
is mounted into the job as `/video-package`. H100, B200 and MI355X select
1919
`h3-v2.yaml/release-v1`: 20 distinct measured prompts at C1. See
2020
[native video delivery](../inferencex-e2e/docs/video-generation.md) for
2121
artifact identity, reuse validation and post-merge publication.

‎video-generation/README_zh.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ diffusion 引擎在单节点上提供服务,选定的冻结 YAML 工作负载
77
测量窗口会发布给 srt-slurm 的原生 GPU 功耗遥测。
88

99
调度与结果由 InferenceX 负责。`inferencex-e2e/configs/nvidia-master.yaml`
10-
声明部署(`h3-bf16-<sku>-<engine>-video`),`infx.matrix` 根据
10+
与 `amd-master.yaml` 声明部署(`h3-bf16-<sku>-<engine>-video`),`infx.matrix` 根据
1111
`perf-changelog.yaml` 生成计划,`run-sweep.yml` 通过 `benchmark-tmpl.yml`
1212
运行 `video` 桶,`python -m infx.launch run` 走 `srt-video` 路径:
1313
`benchmarks/single_node/srt-slurm-recipes/h3/` 下的 SKU 配方通过
1414
`python3 -m infx.bench video serve` 把引擎作为 generic service 启动,
1515
并以 `benchmark.type: custom` 运行 `python3 -m infx.bench video client`。
16-
本目录以 `/video-package` 挂载进任务。H100 与 B200 选用
16+
本目录以 `/video-package` 挂载进任务。H100、B200 与 MI355X 选用
1717
`h3-v2.yaml/release-v1`,在 C1 测量 20 个不同 prompt。
1818
产物身份、复用校验与合并后发布见
1919
[原生视频交付](../inferencex-e2e/docs/video-generation.md)。

‎video-generation/evaluator/srt_selected.py‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"VGBENCH_GPU_UUIDS",
2626
)
2727
_BOOLEAN = {"true": True, "false": False}
28+
KFD = Path("/dev/kfd")
29+
PCI_DEVICES = Path("/sys/bus/pci/devices")
2830
# Deployment keys only: the dashboard treats any other spec.json server key as workload identity.
2931
SERVER_FLAGS = {
3032
"sglang": {
@@ -62,6 +64,29 @@ def ok(code):
6264
return values
6365

6466

67+
def rocm_devices() -> list[str]:
68+
# AMD power exporters label each GPU by its board serial, not by a HIP UUID.
69+
hip = ctypes.CDLL("libamdhip64.so")
70+
71+
def ok(code):
72+
if code != 0:
73+
raise RuntimeError("HIP device inventory failed: " + str(code))
74+
75+
count = ctypes.c_int()
76+
ok(hip.hipGetDeviceCount(ctypes.byref(count)))
77+
values = []
78+
for ordinal in range(count.value):
79+
bus = ctypes.create_string_buffer(32)
80+
ok(hip.hipDeviceGetPCIBusId(bus, len(bus), ordinal))
81+
values.append((PCI_DEVICES / bus.value.decode() / "serial_number").read_text().strip())
82+
return values
83+
84+
85+
def gpu_devices() -> list[str]:
86+
"""The visible GPUs in engine order, named as the cluster's power exporter labels them."""
87+
return rocm_devices() if KFD.exists() else cuda_devices()
88+
89+
6590
def _recipe_environment(env: dict[str, str]) -> dict[str, str]:
6691
raw = env.pop("VIDEO_RECIPE_ENV_KEYS", None)
6792
if raw is None:
@@ -166,7 +191,7 @@ def serve(
166191
if command.count(snapshot) != 1:
167192
raise ValueError("the engine command must contain the model snapshot path exactly once")
168193

169-
uuids = cuda_devices()
194+
uuids = gpu_devices()
170195
if len(uuids) != gpus:
171196
raise RuntimeError("visible GPU count differs from the native recipe")
172197
env = os.environ.copy()
@@ -224,7 +249,7 @@ def _sglang_main() -> None:
224249
expected = os.environ.get("VGBENCH_GPU_UUIDS")
225250
if not expected:
226251
raise RuntimeError("VGBENCH_GPU_UUIDS is required for the native SGLang server")
227-
if cuda_devices() != expected.split(","):
252+
if gpu_devices() != expected.split(","):
228253
raise RuntimeError("Runtime device UUIDs differ from assigned GPUs")
229254
from sglang.cli.main import main
230255

0 commit comments

Comments
 (0)