mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat(server): allow recipes to override backend/params_backend in context (#2188)
This commit is contained in:
1 parent
530fa39073
commit
f18dbfced7
2 files changed
+16
-6
No files matched your search
@@ -303,11 +303,15 @@ new model architectures.
|
||||
|
||||
Optional `context` settings apply to each model load and override the matching
|
||||
startup setting. Supported fields are `vae_format` (`auto`, `flux`, `sd3`,
|
||||
`flux2`, or `wan`) and `model_args` (a string in the same format as
|
||||
`--model-args`; replaces the startup string). Other startup settings remain
|
||||
unchanged. Switching to a recipe that omits these fields restores the startup
|
||||
values. For example, PiD uses `{"vae_format": "flux"}` and Qwen Image Edit
|
||||
2511 uses `{"model_args": "qwen_image_zero_cond_t=true"}`.
|
||||
`flux2`, or `wan`), `model_args` (a string in the same format as
|
||||
`--model-args`; replaces the startup string), and `backend` / `params_backend`
|
||||
(strings in the same format as `--backend` / `--params-backend`; replace the
|
||||
startup assignments for that load, so a recipe can place components on
|
||||
specific devices, e.g. keep a large text encoder on CPU while another recipe
|
||||
uses the GPU). Other startup settings remain unchanged. Switching to a
|
||||
recipe that omits these fields restores the startup values. For example, PiD
|
||||
uses `{"vae_format": "flux"}` and Qwen Image Edit 2511 uses
|
||||
`{"model_args": "qwen_image_zero_cond_t=true"}`.
|
||||
|
||||
Supported defaults:
|
||||
|
||||
|
||||
Reference in new issue
Block a user