add support for cache modes to accelerate image generation#2021
Draft
wbruna wants to merge 10 commits intoLostRuins:concedo_experimentalfrom
Draft
add support for cache modes to accelerate image generation#2021wbruna wants to merge 10 commits intoLostRuins:concedo_experimentalfrom
wbruna wants to merge 10 commits intoLostRuins:concedo_experimentalfrom
Conversation
Also fix typo in the function name.
The `sdloramult` flag now accepts a list of multipliers, one for each LoRA. If all multipliers are non-zero, LoRAs load as before, with no extra VRAM usage or performance impact. If any LoRA has a multiplier of 0, we switch to `at_runtime` mode, and these LoRAs will be available to multiplier changes via the `lora` sdapi field and show up in the `sdapi/v1/loras` endpoint. All LoRAs are still preloaded on startup, and cached to avoid file reloads. A single multiplier (1.0 by default) is applied to all LoRAs, to keep it compatible with the previous behavior.
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.
Makes
--cache-modeand--cache-optionavailable throughgendefaults.This is on top of #1982 just because I'm testing both together; only the last commit matters for this PR. If you prefer, I can rebase it the other way around (there are a few annoying conflicts on
sdtype_adapter.cpp).I had to copy the key=value parser from
examples/common/common.hppbecause it's not really usable from there, but the code should be simple enough.