Skip to content

[NPU] Diffusion CI Ground Truth Generation (NPU) - #24630

Merged
sglang-npu-bot merged 42 commits into
sgl-project:mainfrom
e-martirosian:diffusion_ci_npu
Jun 3, 2026
Merged

sglang-npu-bot merged 42 commits into
sgl-project:mainfrom
e-martirosian:diffusion_ci_npu

Conversation

@e-martirosian

@e-martirosian e-martirosian commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Need to add GT generation for consistency checks in Ascend tests.

Modifications

  • Added .github/workflows/diffusion-ci-gt-gen-npu.yml to generate GT.
  • Removed python\sglang\multimodal_gen\test\run_suite_npu.py since its functionality duplicated python\sglang\multimodal_gen\test\run_suite.py.
  • Moved all suite-related variables from run_suite.py into gpu_cases.py and testcase_configs_npu.py, respectively, and updated run_suite.py to import case-related information from the corresponding configuration files.
  • Replaced the 8-NPU test with a 2-NPU test to reduce the number of used devices. Removed the 8-npu workflow afterward because no additional cases remained after the replacement.

Accuracy Tests

Speed Tests and Profiling

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ✅ Run #26870238404
Latest PR Test (Extra): ✅ Run #26870238283

@github-actions github-actions Bot added npu diffusion SGLang Diffusion labels May 7, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

make sense, and maybe we should abstract a new variable like LLM tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I will replace such strings with variables.

@github-actions github-actions Bot added documentation Improvements or additions to documentation quant LLM Quantization amd dependencies Pull requests that update a dependency file lora deepseek hicache Hierarchical Caching for SGLang sgl-kernel blackwell SM100/SM120 deterministic Issues on deterministic inference/kernels model-gateway mthreads jit-kernel labels May 7, 2026
@ping1jing2 ping1jing2 self-assigned this May 10, 2026
Comment on lines +46 to +47
if use_npu_conf:
SUITE_OUTPUT_NAMES = {"1-npu": "1npu", "2-npu": "2npu", "8-npu": "8npu"}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

shall we really need 8-npu for diffusion models?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No. I replaced it with a new 2-npu test.

@Makcum888e Makcum888e left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

e-martirosian added a commit to ping1jing2/sglang that referenced this pull request Jun 1, 2026
Test PR "[NPU] Diffusion CI Ground Truth Generation (NPU) sgl-project#24630"
e-martirosian added a commit to ping1jing2/sglang that referenced this pull request Jun 1, 2026
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.
e-martirosian added a commit to ping1jing2/sglang that referenced this pull request Jun 1, 2026
Test PR "[NPU] Diffusion CI Ground Truth Generation (NPU) sgl-project#24630"
@sglang-npu-bot
sglang-npu-bot merged commit c670609 into sgl-project:main Jun 3, 2026
110 of 115 checks passed
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
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]>
BBuf added a commit to BBuf/sglang that referenced this pull request Oct 16, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

amd blackwell SM100/SM120 deepseek dependencies Pull requests that update a dependency file deterministic Issues on deterministic inference/kernels diffusion SGLang Diffusion documentation Improvements or additions to documentation hicache Hierarchical Caching for SGLang jit-kernel lora model-gateway mthreads npu quant LLM Quantization run-ci CI: run the baseline test suite on this PR run-ci-extra CI: also run the extra suite (requires run-ci) sgl-kernel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants