[Feature][MiniMax-H3] Support diffusion continuous batching (#5810)

Signed-off-by: princepride <wangzhipeng628@gmail.com>
Signed-off-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
authored and GitHub committed 2026-08-24 21:08:53 +08:00
1 parent aa69acbd09
commit d150a4fde7
15 files changed
+1834 -140

No files matched your search

+11
View File
@@ -244,6 +244,17 @@ def set_forward_context_denoise_step_idx(step_idx: int | None) -> None:
_forward_context.denoise_step_idx = step_idx
def set_forward_context_denoise_timestep(timestep: float | None) -> None:
"""Set the normalized (descending, 1 -> 0) denoise timestep.
Timestep-gated attention features read this; pipelines that drive their own
denoise loop can publish it directly instead of going through
:meth:`DenoiseProgressMixin.record_denoise_step`.
"""
if _forward_context is not None:
_forward_context.denoise_timestep = None if timestep is None else float(timestep)
class DenoiseProgressMixin:
def record_denoise_step(
self,