Skip to content

feat: add KL Optimal scheduler#1098

Merged
leejet merged 1 commit into
leejet:masterfrom
daniandtheweb:kl_optimal
Dec 18, 2025
Merged

feat: add KL Optimal scheduler#1098
leejet merged 1 commit into
leejet:masterfrom
daniandtheweb:kl_optimal

Conversation

@daniandtheweb

@daniandtheweb daniandtheweb commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

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

wbruna commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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.

@leejet leejet merged commit 97cf2ef into leejet:master Dec 18, 2025
10 checks passed
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.

3 participants