Skip to content

Conversation

@daniandtheweb
Copy link
Contributor

@daniandtheweb daniandtheweb commented Dec 15, 2025

This PR adds support for the KL Optimal scheduler.
I've taken inspiration from the Python implementation in ComfyUI and stable-diffusion-webui.

The resulting images seem correct. If the positioning of the scheduler looks good (after smoothstep and before lcm), I think this could be ready to review.

@wbruna
Copy link
Contributor

wbruna commented Dec 15, 2025

LGTM, and seems to be working fine.

If the positioning of the scheduler looks good (after smoothstep and before lcm), I think this could be ready to review.

I don't know if that order matters much. When I implemented the LCM scheduler, I simply placed it at the end of the list.

@daniandtheweb
Copy link
Contributor Author

I was actually thinking about the order of the schedulers based on importance: of course the first would be discrete and karras as they're historically the most used and last should be LCM as it's more like a niche scheduler for a single specific application. I'm really not sure where kl_optimal should be placed compared to all the others, but if it's okay like this I think the PR is ready.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants