• Stefy Lanza (nextime / spora )'s avatar
    send a step callback only to a pipeline that takes one · b3aaec96
    Stefy Lanza (nextime / spora ) authored
    diffusers added `callback_on_step_end` per pipeline rather than across the
    board, and audio_gen passed it unconditionally. StableAudioPipeline does not
    take it, so every request raised
    
        StableAudioPipeline.__call__() got an unexpected keyword argument
        'callback_on_step_end'
    
    AFTER the model had finished loading -- one unsupported keyword cost the whole
    load and read like a broken model rather than a wrong argument.
    
    Asked of the signature, not kept as a list of pipeline names: such a list is
    wrong again at the next diffusers release. The pre-0.25 `callback` spelling is
    adapted so those pipelines keep their progress, and a pipeline that supports
    neither says so, because silently losing progress reporting and mid-run
    cancellation should not be invisible.
    Co-Authored-By: 's avatarClaude Opus 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_014T3rZozi1Ehk96NG1WesgC
    b3aaec96
test_audio_step_callback.py 3.32 KB