Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions tests/unittest/_torch/visual_gen/test_cosmos3_distilled.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
load_scheduler,
)
from tensorrt_llm._torch.visual_gen.pipeline_registry import PIPELINE_REGISTRY, AutoPipeline
from tensorrt_llm._torch.visual_gen.profiler import VisualGenProfiler

pytestmark = [pytest.mark.cosmos3, pytest.mark.usefixtures("disable_cosmos3_guardrails")]

Expand Down Expand Up @@ -524,13 +525,15 @@ def step(self, model_output, timestep, sample, return_dict=False, generator=None


def _denoise_ready_pipeline() -> Cosmos3OmniMoTPipeline:
"""``denoise()`` drives its profiling windows through ``self._profiler``,
which ``BasePipeline.__init__`` owns — so a double that skips ``__init__``
must supply one. Unscoped (``TLLM_PROFILE_VISUAL_GEN_START_STOP`` unset) it
opens no window and leaves the loop's iteration a plain ``enumerate``."""
return _bare_pipeline(
pipeline_config=SimpleNamespace(visual_gen_mapping=None),
cache_accelerator=None,
_predenoise_pending=False,
_postdenoise_pending=False,
_is_warmup=False,
_profile_range=None,
_profiler=VisualGenProfiler(),
)


Expand Down
Loading