[Refactor]Base class for dit pipelines with unified parameter declaration[1/N] (#4225)

Signed-off-by: princepride <wangzhipeng628@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
authored and GitHub committed 2026-06-18 17:14:18 +08:00
1 parent dff8cda844
commit f75c437a60
26 files changed
+1026 -1586

No files matched your search

@@ -504,30 +504,6 @@ class SenseNovaU1Pipeline(nn.Module, SupportsComponentDiscovery, DiffusionPipeli
support_image_input = True
# Model-specific parameters accepted via ``extra_body`` in the online
# serving API. The serving layer reads this set and forwards matching
# keys from the request payload to ``OmniDiffusionSamplingParams.extra_args``.
EXTRA_BODY_PARAMS: ClassVar[frozenset[str]] = frozenset(
{
"think",
"cfg_scale",
"cfg_norm",
"timestep_shift",
"t_eps",
"img_cfg_scale",
"max_tokens",
}
)
# Keys from ``DiffusionOutput.custom_output`` that should be surfaced in
# the API response ``metrics`` dict. The serving layer reads this set and
# copies matching entries from ``custom_output`` into the response.
EXTRA_OUTPUT_PARAMS: ClassVar[frozenset[str]] = frozenset(
{
"think_text",
}
)
# CPU-offload protocol: language_model carries the denoising blocks; the
# vision and FM modules are lightweight encoders pinned on GPU during the
# diffusion loop. There is no separate VAE.