Repository navigation
[NPU] Diffusion CI Ground Truth Generation (NPU) - #24630
Conversation
There was a problem hiding this comment.
Code Review
This pull request refactors the multimodal generation test runner to support both GPU and NPU platforms by dynamically importing configurations based on the detected platform. It consolidates test suite definitions into platform-specific files and removes the redundant run_suite_npu.py. Feedback highlights potential issues with using platform detection on CI coordinators, hardcoded absolute paths for configuration files and model caches, and the use of personal GitHub repositories for ground truth data.
| @@ -14,7 +14,6 @@ | |||
| model_path="/root/.cache/modelscope/hub/models/black-forest-labs/FLUX.1-dev", | |||
There was a problem hiding this comment.
Hardcoding absolute paths to /root/.cache/modelscope/... makes these test cases highly dependent on a specific environment setup. It is recommended to use environment variables or relative paths, or leverage the model name constants defined in test_utils.py if the environment can be configured to find them in a standard location.
There was a problem hiding this comment.
make sense, and maybe we should abstract a new variable like LLM tests
There was a problem hiding this comment.
Yeah, I will replace such strings with variables.
| if use_npu_conf: | ||
| SUITE_OUTPUT_NAMES = {"1-npu": "1npu", "2-npu": "2npu", "8-npu": "8npu"} |
There was a problem hiding this comment.
shall we really need 8-npu for diffusion models?
There was a problem hiding this comment.
No. I replaced it with a new 2-npu test.
3be3654 to
16be74b
Compare
6c3f928 to
e2bff58
Compare
Test PR "[NPU] Diffusion CI Ground Truth Generation (NPU) sgl-project#24630"
Test PR "[NPU] Diffusion CI Ground Truth Generation (NPU) sgl-project#24630"
Updated the remote target directory description and added outputs for partition counts and plans in the CI workflow.
Test PR "[NPU] Diffusion CI Ground Truth Generation (NPU) sgl-project#24630"
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Elizaveta Martirosian <[email protected]> Co-authored-by: Elizaveta Martirosian <[email protected]> Co-authored-by: ronnie_zheng <[email protected]>
compute_diffusion_partitions read STANDALONE_FILES from the suite runner, but the dict moved to the case config (server/gpu_cases.py) in sgl-project#24630, so every CUDA plan has carried "standalone_files": [] since then and none of the 1-GPU / 2-GPU standalone files ran. Parse it from the case config. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Motivation
Need to add GT generation for consistency checks in Ascend tests.
Modifications
.github/workflows/diffusion-ci-gt-gen-npu.ymlto generate GT.python\sglang\multimodal_gen\test\run_suite_npu.pysince its functionality duplicatedpython\sglang\multimodal_gen\test\run_suite.py.run_suite.pyintogpu_cases.pyandtestcase_configs_npu.py, respectively, and updatedrun_suite.pyto import case-related information from the corresponding configuration files.Accuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ciCI States
Latest PR Test (Base): ✅ Run #26870238404
Latest PR Test (Extra): ✅ Run #26870238283