Commit Graph

13930 Commits

Author SHA1 Message Date
Disty0 ae4b116f95 dedupe and cleanup sdnq code 2026-07-06 21:40:29 +03:00
Vladimir Mandic c254eff191 revert stat
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-06 17:58:50 +02:00
Vladimir Mandic 870cca30fa schedulers fix zero-sigma final-step
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-06 13:21:19 +02:00
Vladimir Mandic fc2231b6cf fix wan vae postprocessing step
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-06 10:30:33 +02:00
Vladimir Mandic d5ad5bab24 pin correct tokenizers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-06 08:12:09 +02:00
CalamitousFelicitousness 81315c0131 docs(changelog): add krea2 and text-encoder override fixes 2026-07-06 02:58:01 +01:00
CalamitousFelicitousness caa7b426e2 fix(te): quantize single-file text-encoder overrides under SDNQ
The single-file override loaded via from_pretrained(state_dict=...) without a
quantization_config and then relied on do_post_load_quant, which no-ops on a
bare module (it maps Model/TE onto pipeline attributes that a lone encoder does
not have). A custom TE therefore loaded full-precision regardless of the SDNQ
setting. Pass quant_args into from_pretrained like the repo/default path so SDNQ
quantizes during load.
2026-07-06 02:29:48 +01:00
CalamitousFelicitousness 9ffaed47ba feat(te): reset text-encoder override when base model architecture changes
When a checkpoint change switches the model type, a custom sd_text_encoder no
longer fits, so reset it to Default and clear loaded_te, mirroring the sd_unet
reset. The type is resolved with detect_pipeline on both the loaded and incoming
checkpoints, so same-arch switches (Krea2 Base and Turbo share one pipeline
class) do not reset. The checkpoint handler also returns sd_text_encoder
alongside sd_unet so the dropdown reflects it.
2026-07-06 02:29:36 +01:00
CalamitousFelicitousness 6ac4c0e1a9 fix(krea2): resolve default guidance per variant instead of static 1.0
cfg=-1 means use the pipeline's own default. Krea2Pipeline serves both Base
and Turbo under one class, so a static signature default cannot fit both: Base
needs real guidance while the distilled Turbo runs guidance-free. Resolve the
unset default from is_distilled (Base 4.5, Turbo 1.0). Explicit cfg is passed
through unchanged.
2026-07-06 01:03:09 +01:00
CalamitousFelicitousness f96a0639e2 fix(te): apply sd_text_encoder changes for non-T5 encoders
reload_text_encoder only hot-swapped T5-family encoders and ran only at initial
load, so changing sd_text_encoder for a model with a generic encoder (Krea2's
Qwen3-VL) never took effect until a full model reload. Track the loaded
selection and, for encoders with no in-place swap, reload the model on change,
triggered from the settings handler. The fresh model object also invalidates
the prompt cache.
2026-07-05 22:49:47 +01:00
CalamitousFelicitousness f88298a1c0 fix(te): load non-T5 single-file text-encoder overrides as their actual class
The single-file override path built a T5EncoderModel regardless of the
requested class, so a non-T5 override (Qwen3-VL for Krea2) became a T5 with the
wrong vocab and overflowed its embedding into a CUDA device-side assert. Load
the file as the class the pipeline requests via from_pretrained(state_dict=...),
letting transformers reconcile per-arch key prefixes, and fall back to the base
text encoder on failure.
2026-07-05 21:48:59 +01:00
CalamitousFelicitousness cab3c22ec5 fix(installer): validate HEAD sha before flagging repo upgrade
git() returns command output on failure instead of raising, so a failed
rev-parse read as != commit and spuriously flagged the repo upgraded and
required a restart. Guard on a 40-char sha, matching the latest-commit check.
2026-07-05 19:38:46 +01:00
Vladimir Mandic e85272aa8a update changelog/todo/wiki
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-05 20:22:07 +02:00
Vladimir Mandic 9da4eb04dd Merge pull request #4981 from vladmandic/fix/installer-update-flow
Fix/installer update flow
2026-07-05 20:21:40 +02:00
CalamitousFelicitousness 0e6158438f refactor(loader): collapse native-load logging to one summary line
strip_prefix returns the detected prefix instead of logging it, so the load
summary reports it alongside the key count and the redundant reading-state
marker is gone. Four near-identical cls/file lines become one.
2026-07-05 18:21:28 +01:00
CalamitousFelicitousness f9d2bbe080 fix(krea2): zero-fill dormant last.up/last.down residual branch
Base ships last.up all-zeros so the branch is a no-op; pre-branch
finetunes omit both keys. A zero_init_missing spec field zero-fills
them on load instead of falling back to the base transformer.
2026-07-05 18:05:13 +01:00
CalamitousFelicitousness 4be57f63df fix(installer): drop eager upgrade from pinned installs
Under uv, install --upgrade re-resolves the full dependency set eagerly: the pinned tokenizers and transformers installs bumped typing-extensions past its requirements pin on every update, and the requirements check then downgraded it back, flagging a restart each time. The preceding uninstall and exact pins already force the intended change, so the flag only produced churn. The pip-routed diffusers install is aligned for consistency.
2026-07-05 15:07:09 +01:00
CalamitousFelicitousness 869568a801 fix(installer): set restart flag when repository is upgraded
The post-upgrade restart depended on a pinned requirement drifting in the same run, since the requirements check was the only place that set restart_required. The direct check compared a short hash and date string against a full sha and never fired. Set restart_required when the repository update moves HEAD so an upgrade restarts even when no package pins changed; a no-op pull now logs the repository as unchanged instead of upgraded and skips the restart.
2026-07-05 15:07:00 +01:00
CalamitousFelicitousness 573f99dc87 fix(installer): read installed git commit from package metadata
check_transformers and check_diffusers compared the target commit against a marker stored in server options, which is only persisted after full webui startup. An upgrade restart fires before that point, so the marker stayed stale and the next launch reinstalled the same pin again. Read the installed commit from the package dist-info direct_url.json instead; the options values remain as informational display.
2026-07-05 14:26:43 +01:00
Disty0 b7322637a4 fix old torch 2026-07-05 10:41:04 +03:00
Disty0 3ea46fff79 don't disable mm with uint8 2026-07-05 10:23:55 +03:00
Disty0 16a284eecf lint 2026-07-04 21:53:40 +03:00
Disty0 77c72e03ab remove dequantize_symmetric_with_bias 2026-07-04 19:09:25 +03:00
Disty0 e49ae6bd1b SDNQ Add UINT8 MM support 2026-07-04 18:51:45 +03:00
Disty0 7274565deb SDNQ Rename FP8 MM to FP8 Scaled MM and Rename FP8 TW MM to FP8 MM 2026-07-04 16:38:50 +03:00
Vladimir Mandic 4bd0c39133 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-04 15:31:58 +02:00
Vladimir Mandic db26b77909 add boogu
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-04 15:26:36 +02:00
Vladimir Mandic 5b486dc3cf Merge pull request #4979 from liutyi/dev
Boogu-Image Base/Turbo 0.1 (pre) cover images
2026-07-04 11:40:45 +02:00
Vladimir Mandic 9d6122c50d lint sdnq
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-04 11:18:32 +02:00
Vladimir Mandic 2c632bb562 refactor detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-04 11:17:56 +02:00
Disty0 d62a0690a2 SDNQ: Don't re-quantize for matmul with dyn quant, Fix nn.Embedding and Typing 2026-07-04 02:54:19 +03:00
CalamitousFelicitousness 2d5903e91b fix(networks): keep reference mtime a datetime for date sort
strptime was handed the stat datetime instead of the date string, so it
always failed and left a raw string mtime; the Date sort then crashed on
mixed str/datetime items. Parse the date string, falling back to stat mtime.
2026-07-03 21:14:50 +01:00
CalamitousFelicitousness 4bdda6d91a feat(civitai): route DiT checkpoint downloads to the UNET folder
CivitAI has no model type for a standalone transformer, so DiT finetunes
are published as 'Checkpoint' like full models and all landed in
Stable-diffusion, where the single-file transformer loader never looks.
Route Checkpoint downloads to UNET unless the base model is a known full
checkpoint (SD1.x/2.x, SDXL and its Pony/Illustrious/NoobAI derivatives,
SVD, Kolors, Stable Cascade). Downloads with no base_model, or a
civitai_save_type_folders override, keep the previous behavior.
2026-07-03 21:07:46 +01:00
CalamitousFelicitousness 3c0ca8f483 fix(civitai): validate downloads by content-length and content-type
An absolute 1024-byte floor rejected valid complete downloads, since
some safetensors are legitimately tiny (a lone projector-diff tensor is
~160 bytes). Verify completeness against the declared Content-Length
instead, accepting any size, and keep the floor only as a fallback when
it is missing. Reject text/* responses up front so an HTML error or
login page served with HTTP 200 is never saved as a model file.
2026-07-03 21:07:46 +01:00
Vladimir Mandic 98a7d17207 linting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-03 22:05:33 +02:00
Vladimir Mandic a4d107a919 refactor detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-03 21:03:28 +02:00
Oleksandr Liutyi 7fecd93528 Boogu-Image EDIT 0.1 (pre) cover images 2026-07-03 13:41:14 +00:00
Oleksandr Liutyi abc9d8f883 Boogu-Image Base/Turbo 0.1 (pre) cover images 2026-07-03 11:21:39 +00:00
Vladimir Mandic 5cda0aeeb2 update reference displays
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-03 12:51:28 +02:00
Vladimir Mandic 022d7ca481 update all reference models info
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-03 11:51:25 +02:00
Vladimir Mandic 17c8fe91e2 cleanup performance tags
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-02 19:14:04 +02:00
Vladimir Mandic 51a0eaaa21 add experimental openai interface
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-02 14:36:44 +02:00
Vladimir Mandic fcee7e23f2 add experimental pruna
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-02 11:25:33 +02:00
Vladimir Mandic bc86a611de Merge pull request #4978 from liutyi/dev
Nano Banana lite add
2026-07-01 22:56:42 +02:00
Oleksandr Liutyi 0a028b932d Nano Banana lite add 2026-07-01 20:51:06 +00:00
Vladimir Mandic e21ba60d05 update hf hijack, simplify anima loader, add few more models
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-01 22:47:07 +02:00
Vladimir Mandic e08bdaf76b handle invalid extension
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-01 18:59:20 +02:00
Vladimir Mandic 22d01c7e6e lora load cache state_dict
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-07-01 18:43:48 +02:00
Disty0 e1ac9650b7 Make SDNQ Triton kernels trigger way less tuning and fix accuracy issues on SDNQ Atten 2026-07-01 17:31:57 +03:00
Vladimir Mandic d385cf3e98 Merge pull request #4976 from liutyi/dev
PRXPixel cover image
2026-07-01 16:13:15 +02:00