[Attention] Refine TRTLLM attention support for MiniMax H3 (#5779)

Signed-off-by: Bo Li <22713281+bobboli@users.noreply.github.com>
Signed-off-by: lishunyang12 <lishunyang03@gmail.com>
Signed-off-by: lishunyang12 <lishunyang12@163.com>
Co-authored-by: lishunyang12 <lishunyang03@gmail.com>
Co-authored-by: lishunyang12 <lishunyang12@163.com>
This commit is contained in:
authored and GitHub committed 2026-08-06 09:38:17 +00:00
1 parent a9ba47d8ce
commit d219d93bbb
11 files changed
+370 -33

No files matched your search

+7 -1
View File
@@ -221,9 +221,15 @@ class DenoiseProgressMixin:
step_idx: int | None,
timestep=None,
scheduler=None,
normalized_timestep: float | None = None,
) -> None:
set_forward_context_denoise_step_idx(step_idx)
if timestep is None or _forward_context is None:
if _forward_context is None:
return
if normalized_timestep is not None:
_forward_context.denoise_timestep = float(normalized_timestep)
return
if timestep is None:
return
scheduler = scheduler if scheduler is not None else getattr(self, "scheduler", None)
ntt = getattr(getattr(scheduler, "config", None), "num_train_timesteps", None)