Wire enable_cuda_graph_decode through engine args, stage config and CLI
Follows the vae_use_tiling path: OmniDiffusionConfig field, OmniEngineArgs, StageDeployConfig, _DiffusionConfigProjection and --[no-]enable-cuda-graph-decode. Documents interplay with enforce_eager and cudagraph_mode.
This commit is contained in:
1 parent
a04b95bf6b
commit
d3cf26c1b1
5 files changed
+34
No files matched your search
@@ -851,6 +851,10 @@ class _DiffusionConfigProjection:
|
||||
pin_cpu_memory: bool = True
|
||||
diffusion_compile_granularity: Literal["regional", "full"] = "regional"
|
||||
diffusion_compile_dynamic: bool = Field(default=True, strict=True)
|
||||
# Mirrors OmniDiffusionConfig.enable_cuda_graph_decode; enforced by the
|
||||
# model (Qwen-Image-2.1) together with enforce_eager, which lives in the
|
||||
# shared engine config.
|
||||
enable_cuda_graph_decode: bool = True
|
||||
fa_deterministic: bool = False
|
||||
vae_use_slicing: bool = False
|
||||
vae_use_tiling: bool = False
|
||||
|
||||
@@ -462,6 +462,10 @@ class StageDeployConfig:
|
||||
# Diffusion execution, cache, and VAE behavior.
|
||||
diffusion_compile_granularity: str | None = None
|
||||
diffusion_compile_dynamic: bool | None = None
|
||||
# CUDA graph capture of fixed-shape KV-cache decode steps (Qwen-Image-2.1
|
||||
# today). Independent of compilation_config.cudagraph_mode;
|
||||
# enforce_eager=True also disables it.
|
||||
enable_cuda_graph_decode: bool | None = None
|
||||
fa_deterministic: bool | None = None
|
||||
cache_backend: str | None = None
|
||||
cache_config: dict[str, Any] | None = None
|
||||
|
||||
Reference in new issue
Block a user