[diffusion] Add cache-dit CI tests#19213
Conversation
Summary of ChangesHello @qimcis, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request integrates new Continuous Integration (CI) tests for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request adds CI tests for cache-dit with the diffusers backend, covering both 1-GPU and 2-GPU scenarios. The changes are well-structured, including new YAML configurations, performance baselines, and test cases. The modification to pass diffusers_kwargs is appropriate. I have a couple of suggestions to improve code clarity and reduce duplication in the test case configuration.
| DiffusionSamplingParams( | ||
| prompt="Doraemon is eating dorayaki.", | ||
| output_size="1024x1024", | ||
| diffusers_kwargs={"max_sequence_length": 512}, | ||
| ), |
There was a problem hiding this comment.
To avoid duplicating the prompt and output_size from T2I_sampling_params, you can use dataclasses.replace. This makes the code cleaner and ensures consistency with other test cases. It also makes it clear that this configuration is a variation of T2I_sampling_params.
replace(T2I_sampling_params, diffusers_kwargs={"max_sequence_length": 512}),|
@DefTruth is this PR covering sufficient cases? could you provide some suggestions? cheers |
|
could you attach the output of this case? |
I can also help add more tests! Lmk if there are specific areas of coverage you think I should hit (besides the PR you mentioned already). Anything remaining I should address on this PR? @mickqian |
| @@ -0,0 +1,10 @@ | |||
| cache_config: | |||
There was a problem hiding this comment.
gather to a configs folder?
|
/tag-and-rerun-ci |
|
/rerun-failed-ci |
4 similar comments
|
/rerun-failed-ci |
|
/rerun-failed-ci |
|
/rerun-failed-ci |
|
/rerun-failed-ci |
|
I updated this PR, instead of focusing only on cache-dit diffusers and the configs, I've also added a native SGLD 2-gpu sp-only cache-dit regression case, which uses the native SGLD cache-dit path with SP enabled and TP disabled, covering the class of issue from #19955 / #19965 around cache-dit parallelism config construction In addition to this, i kept the 1-GPU diffusers cache-dit config coverage that i added previously (including one scm case) Perf baselines have been regenerated onto current main too (2x h100 SXM) Outputs for the 1gpu tests look like:
For the 2gpu test with wan, the output is not as important, as it's meant to measure simply that the execution path does not crash and produces a valid generation Can you take a look to make sure things look ok before I get mick to review again? @DefTruth Thank you! |
| ), | ||
| T2V_sampling_params, | ||
| ), | ||
| DiffusionTestCase( |
There was a problem hiding this comment.
these tests are heavy, could we try to make it lightweight
There was a problem hiding this comment.
i removed a redundant test, and made some changes, is this ok? passes locally for me @mickqian
|
CI is failing |
47dc984 to
6a5242c
Compare
|
/rerun-failed-ci |
1 similar comment
|
/rerun-failed-ci |
|
/rerun-failed-ci |
1 similar comment
|
/rerun-failed-ci |
* main: (87 commits) [Fix] Disable FlashInfer allreduce fusion under deterministic inference (sgl-project#24629) fix: STANDALONE spec-decode hidden-size mismatch crash (sgl-project#24217) Followup fix for Custom AR V2 in non NVL scenarios (sgl-project#24742) Fix reduce_scatterv producer contract for SUM_LEN (sgl-project#24785) [NPU]Documentation update for communications quantization feature (sgl-project#24668) [Session R3] Add routed_experts_start_len for absolute routing slice control (sgl-project#24851) [Model] Add MiniCPM-V 4.6 support (sgl-project#24855) Support Intern-S2-Preview (sgl-project#24875) [PD] Unify dsv4 dispatch with swa (sgl-project#24888) Optimize MHC pipeline: DeepGemm, fused norm, fused hc_head (sgl-project#24775) Fix PD bootstrap failure handling (sgl-project#24772) [Spec] Cleanup idle stub and shape-check patterns (sgl-project#24881) [Bug] Add dsv4 state_type branch to mooncake disaggregation (sgl-project#24878) [Spec V1] Split draft-extend phase from `EagleDraftInput` into new `EagleDraftExtendInput` (sgl-project#24859) [Gemma4] Optimize Gemm4 with fused Q/K/V RMSNorm + per-expert FP8 ckpt loader (sgl-project#24696) [spec decoding] support kimi-k2.5-eagle3-mla (sgl-project#24826) [SPEC V2] fix: skip stale state updates in spec-v2 overlap (sgl-project#23456) [RL] Call torch.cuda.empty_cache() for `in-place` pause mode to avoid OOM (sgl-project#24854) [diffusion] CI: add cache-dit CI tests (sgl-project#19213) [Utils] Make request dump robust to unpicklable server_args and large meta_info (sgl-project#24767) ... # Conflicts: # python/sglang/srt/utils/common.py


Motivation
Add CI tests for changes in #16662 , and a CI test for cache-dit on native diffusion engine as well
Modifications
Add 1 gpu test, 2 gpu test and baselines
Checklist