-
Notifications
You must be signed in to change notification settings - Fork 6.7k
[diffusion] Add cache-dit CI tests #19213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
0593ced
5c45e52
10ffede
2ff693b
018ba0b
57bbc8b
6bad7e2
0c272f8
1819297
17b1be2
c4cbdae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| cache_config: | ||
| max_warmup_steps: 8 | ||
| warmup_interval: 2 | ||
| max_cached_steps: -1 | ||
| max_continuous_cached_steps: 2 | ||
| Fn_compute_blocks: 1 | ||
| Bn_compute_blocks: 0 | ||
| residual_diff_threshold: 0.12 | ||
| enable_taylorseer: true | ||
| taylorseer_order: 1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| cache_config: | ||
| max_warmup_steps: 8 | ||
| warmup_interval: 2 | ||
| max_cached_steps: -1 | ||
| max_continuous_cached_steps: 2 | ||
| Fn_compute_blocks: 1 | ||
| Bn_compute_blocks: 0 | ||
| residual_diff_threshold: 0.12 | ||
| enable_taylorseer: true | ||
| taylorseer_order: 1 | ||
| num_inference_steps: 50 | ||
| steps_computation_mask: "medium" | ||
| steps_computation_policy: dynamic |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| from pathlib import Path | ||
|
|
||
| from sglang.multimodal_gen.runtime.platforms import current_platform | ||
| from sglang.multimodal_gen.test.server.testcase_configs import ( | ||
| MODELOPT_FLUX1_FP8_TRANSFORMER, | ||
|
|
@@ -68,6 +70,36 @@ | |
| ), | ||
| T2I_sampling_params, | ||
| ), | ||
| DiffusionTestCase( | ||
| "qwen_image_t2i_cache_dit_config_diffusers_1gpu", | ||
| DiffusionServerArgs( | ||
| model_path=DEFAULT_QWEN_IMAGE_MODEL_NAME_FOR_TEST, | ||
| extras=[ | ||
| "--backend", | ||
| "diffusers", | ||
| "--cache-dit-config", | ||
| str(Path(__file__).parent / "configs" / "cache_dit_config_1gpu.yaml"), | ||
| ], | ||
| ), | ||
| T2I_sampling_params, | ||
| run_consistency_check=False, | ||
| run_component_accuracy_check=False, | ||
| ), | ||
| DiffusionTestCase( | ||
| "qwen_image_t2i_cache_dit_scm_config_diffusers_1gpu", | ||
| DiffusionServerArgs( | ||
| model_path=DEFAULT_QWEN_IMAGE_MODEL_NAME_FOR_TEST, | ||
| extras=[ | ||
| "--backend", | ||
| "diffusers", | ||
| "--cache-dit-config", | ||
| str(Path(__file__).parent / "configs" / "cache_dit_scm_config.yaml"), | ||
| ], | ||
| ), | ||
| T2I_sampling_params, | ||
| run_consistency_check=False, | ||
| run_component_accuracy_check=False, | ||
| ), | ||
| DiffusionTestCase( | ||
| "flux_image_t2i", | ||
| DiffusionServerArgs(model_path=DEFAULT_FLUX_1_DEV_MODEL_NAME_FOR_TEST), | ||
|
|
@@ -521,6 +553,17 @@ | |
| ), | ||
| T2V_sampling_params, | ||
| ), | ||
| DiffusionTestCase( | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these tests are heavy, could we try to make it lightweight
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i removed a redundant test, and made some changes, is this ok? passes locally for me @mickqian |
||
| "wan2_1_t2v_1_3b_cache_dit_sp_only_2gpu", | ||
| DiffusionServerArgs( | ||
| model_path=DEFAULT_WAN_2_1_T2V_1_3B_MODEL_NAME_FOR_TEST, | ||
| ulysses_degree=2, | ||
| enable_cache_dit=True, | ||
| ), | ||
| T2V_sampling_params, | ||
| run_consistency_check=False, | ||
| run_component_accuracy_check=False, | ||
| ), | ||
| DiffusionTestCase( | ||
| "fsdp-inference", | ||
| DiffusionServerArgs( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gather to a
configsfolder?