Skip to content

LTX long multi-prompt drops the last automatic denoising step #15460

Backlog

Description

@mertkayacs

Describe the bug

I found this while reading the per-window denoising loop in LTXI2VLongMultiPromptPipeline. With sigmas omitted and num_inference_steps=2, each window schedules one denoising step and stops at a positive sigma. I expect two steps and a final sigma of zero. I have a fix ready for review. Denoising loop at 08d5de30

Reproduction

I reproduced the missing transition with the CPU script below. It runs both schedulers with the pipeline's timestep slice and synthetic predictions. This exercises the scheduler path without loading pipeline weights.

import torch
from diffusers import FlowMatchEulerDiscreteScheduler, LTXEulerAncestralRFScheduler

for scheduler in (
    FlowMatchEulerDiscreteScheduler(shift_terminal=0.1),
    LTXEulerAncestralRFScheduler(eta=0.0),
):
    scheduler.set_timesteps(num_inference_steps=2)
    sample = torch.tensor([2.0])
    timesteps = scheduler.timesteps[:-1]
    for timestep in timesteps:
        sample = scheduler.step(torch.ones_like(sample), timestep, sample, return_dict=False)[0]
    print(type(scheduler).__name__, len(timesteps), scheduler.sigmas[scheduler.step_index].item())
FlowMatchEulerDiscreteScheduler 1 0.10000000149011612
LTXEulerAncestralRFScheduler 1 0.0010000000474974513

System Info

Diffusers 0.44.0.dev0 at 08d5de30, Linux x86_64, Python 3.14.5, PyTorch 2.15.0+cpu, Transformers 5.24.1. I ran the script on one CPU process.

Activity

  1. mertkayacs commented on Dec 4, 2026

    @mertkayacs
    ContributorAuthor

    I opened #15490 with the fix and a regression test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions