Repository navigation
[VideoGenX] name video recipes by their GPU split / [VideoGenX] 按 GPU 划分方式命名视频 recipe - #5132
Conversation
|
Thanks for the contribution!
中文感谢你的贡献!
|
fae7e81 to
b41ba5a
Compare
|
Generally most InferenceX submissions don't need to add changes to the infx package. On the off chance they do, generally the diff is small. Please prompt your agent to clean your PR to keep your diff to only necessary & minimal changes too. We have an increased code quality bar for changes to the infx package. 中文大多数 InferenceX 提交通常不需要修改 infx 包。即使确实需要,改动通常也很小。请让你的 agent 清理 PR,使改动只包含必要且最小的内容。infx 包的改动有更高的代码质量要求。 |
b41ba5a to
4d5d7b7
Compare
There was a problem hiding this comment.
I reviewed this PR and didn't find any bugs. The recipes and master configs it renames have CODEOWNERS (the NVIDIA and AMD config and recipe owners, plus video-generation/), so one of them should still look it over.
What was reviewed:
- The 36 recipe renames. Each one changes only its
nameline, and I compared each new file name with the recipe's--tp-size/--tensor-parallel-size,--cfg-parallel-sizeand--ulysses-degree/--uspvalues, including the{gpus_per_node}recipes namedagg-ulysses. - The
VIDEO_RECIPEregex ininfx/matrix/validation.py. It acceptsagg-tp1and degrees of 2 or more in the fixed order, and the(?=-)lookahead rejects a barevideo/agg.yaml. The new validator applies only toVideoGenerationSearchSpaceEntry.srt_recipe. - The test fixtures now use the shared
VIDEO_RECIPEconstant. I read the tests but did not run them.
Extended reasoning...
The change renames 36 single-node video recipes and updates their 47 rows in nvidia-master.yaml and amd-master.yaml. It also adds a stricter Pydantic validator for video srt-recipe names and updates test fixtures and SUBMITTING.md. It touches nothing security-sensitive. Each renamed recipe changes only its name field, and the new names match the parallel settings inside them. I deferred because the changed master configs, recipe directories and video-generation/ all have owners in .github/CODEOWNERS, so it should not be auto-approved.
This review covers commit b41ba5a, which is no longer the latest commit on this pull request; later commits are not covered by it.
4d5d7b7 to
93e48fd
Compare
Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
Co-authored-by: Perplexity <noreply@perplexity.ai>
93e48fd to
86b7b28
Compare
Summary
A video recipe's file name does not say how it splits work across GPUs.
serving-client.yamlis CFG parallel 2 x Ulysses 4 on 8 GPUs underwan22/vllm-omni/b200-bf16/, TP 2 x Ulysses 2 on 4 GPUs underh3/sglang/h100-bf16/, and a template for 1, 2, 4 and 8 GPUs underh3/sglang/b200-bf16/. The-g2and-g4suffixes count GPUs without naming the split, so a reviewer opens each file to learn its layout.Changes:
<model-prefix>/<engine>/<gpu>-<precision>/video/agg-<layout>.yaml.<layout>lists each parallel degree above 1 in the ordertp pp ep dp pcp cfg ulysses ring.{gpus_per_node}has no number, so one recipe that serves 1, 2, 4 and 8 GPUs isagg-ulysses.yaml.agg-tp1.yaml.h3/sglang/{a100,h100}-bf16,h3/vllm-omni/a100-bf16serving-client-tp2.yamlvideo/agg-tp2.yamlserving-client.yamlvideo/agg-tp2-ulysses2.yamlserving-client-tp2-ulysses4.yamlvideo/agg-tp2-ulysses4.yamlh3/sglang/{b200,h200,mi355x}-bf16,h3/vllm-omni/{b200,h200,mi355x}-bf16serving-client.yamlvideo/agg-ulysses.yamlwan22/vllm-omni/{b200,b300,h100,h200}-bf16,wan22/sglang/h200-bf16serving-client-g1.yamlvideo/agg-tp1.yamlserving-client-g2.yamlvideo/agg-cfg2.yamlwan22/sglang/h100-bf16serving-client-g4.yamlvideo/agg-cfg2-ulysses2.yamlwan22/sglang/h100-bf16serving-client.yamlvideo/agg-cfg2-ulysses4.yamlname: each is<model-prefix>-<engine>-<file stem>, for examplewan22-vllm-omni-agg-cfg2. No other line of a recipe changes.srt-reciperows of the 15 video keys innvidia-master.yamlandamd-master.yamlpoint at the new paths.VideoRecipeReferenceininfx/matrix/validation.py: a videosrt-recipethat is notvideo/agg-<layout>.yamlfails config validation, so a new row cannot bring back a name without its split.video-generation/SUBMITTING.mdstates the rule in the recipe step.perf-changelog.yamlblock and no sweep. The recipe path is part of the row that a point fingerprint hashes, so all 55 video fingerprints change. The rendered recipes do not change.Testing:
af35366d0and on this branch. The rendered recipe and the row without its recipe path are equal for 37 of 37 points across the 10 keys.nameline; their layouts match their--cfg-parallel-size,--ulysses-degree/--uspand--tp-sizeargs.infx.matrix.changed --base origin/mainlists the 15 video keys and no other key. Each point appears once as added and once as removed, which is the fingerprint change.test_video_recipe_must_be_named_by_its_gpu_splitrejectsserving-client.yamlandserving-client-g2.yaml. Both names pass validation onaf35366d0.test_a_base_with_the_same_code_and_recipes_still_reports_every_difference, aPermissionErrorfromos.killpgon macOS that fails the same way onaf35366d0.Limits:
Related: Follows #5110. Also renames the Wan2.2 recipes added by #5111, #5113 and #5114 and the H3 vLLM-Omni H200 and MI355X recipes and rows from #4970 and #4971.
PR checklist and change type
Type of Change
Checklist
python -m infx.matrix.changed --base origin/mainlists affected config keys, I have appended one new entry covering them to the physical end ofinferencex-e2e/perf-changelog.yaml; if it lists none, I have added none. I have not edited historical entriesinferencex-e2e/perf-changelog.yamlentry, it carries exactly one primary sweep label (a maintainer applies it on fork PRs):full-sweep-fail-fast(recommended),full-sweep-enabled, ornon-canary-full-sweep-enabled. Optional modifiersall-evals,evals-only, andagentx-fastrequire a primary label; the last two block reuse while applied./use <run_id>(or the legacy/reuse-sweep-run) on this PR. Do this only once there is a final full sweep that is all green with evals passing, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.