[perf] Add configurable diffusion compile granularity (#4603)
Signed-off-by: TaffyOfficial <2324465096@qq.com> Co-authored-by: TaffyOfficial <2324465096@qq.com>
This commit is contained in:
1 parent
84bbd57e4d
commit
93786c9cd3
15 files changed
+359
-15
No files matched your search
@@ -423,6 +423,25 @@ class OmniServeCommand(CLISubcommand):
|
||||
"custom_pipeline, dummy, or diffusers for the HF diffusers adapter."
|
||||
),
|
||||
)
|
||||
omni_config_group.add_argument(
|
||||
"--diffusion-compile-granularity",
|
||||
choices=["regional", "full"],
|
||||
default=None,
|
||||
help=(
|
||||
"Compilation scope for the generic diffusion model runner. "
|
||||
"'regional' compiles repeated blocks (default); 'full' compiles the whole transformer and is "
|
||||
"incompatible with HSDP, sequence parallelism, CPU offload, and layerwise offload."
|
||||
),
|
||||
)
|
||||
omni_config_group.add_argument(
|
||||
"--diffusion-compile-dynamic",
|
||||
action=argparse.BooleanOptionalAction,
|
||||
default=None,
|
||||
help=(
|
||||
"Use dynamic shapes for the selected generic diffusion compile scope. "
|
||||
"Disable for fixed-shape workloads with --no-diffusion-compile-dynamic."
|
||||
),
|
||||
)
|
||||
omni_config_group.add_argument(
|
||||
"--diffusers-load-kwargs",
|
||||
dest="diffusers_load_kwargs",
|
||||
|
||||
Reference in new issue
Block a user