[Stable Diffusion] Add the three main performance options as exposed toggles - #2843
Open
NineBallo wants to merge 2 commits into
Open
[Stable Diffusion] Add the three main performance options as exposed toggles#2843NineBallo wants to merge 2 commits into
NineBallo wants to merge 2 commits into
Conversation
NineBallo
marked this pull request as ready for review
July 29, 2026 04:48
Member
|
@NineBallo please be aware that we have a feature freeze on gui2, and the gui changes will need to go into GUI3. If you can remove the gui features from this PR and rebase them into gui3 in a future PR that would be great. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the three main performance toggles to the webui.
--diffusion-fa, --diffusion-conv-direct, and --vae-conv-direct
---- AI Description
It respects that vulkan & cuda has fa forced and locks that one when they are set.
Add three new boolean configuration options for the sd-cpp backend that control GPU compute features:
Key Features:
Generic backend descriptor — Options are defined in sdcpp.h descriptor. New boolean options automatically become CLI flags without code changes in the server merge function.
Backend-forced flags — Vulkan and CUDA backends require --diffusion-fa. The server enforces this: if the user unchecks the box, the flag still gets added to sdcpp_args.
UI disabled checkboxes — When a backend forces an option (e.g., Vulkan forces Diffusion FA), the checkbox is disabled with a 🔒 lock icon and tooltip explaining "This option is required by the
selected backend".
recipe_options API — The new options are exposed in GET /api/v1/models//recipe_options so the frontend can check force_* fields.
Files Changed: