Commit Graph

13597 Commits

Author SHA1 Message Date
CalamitousFelicitousness 91a4e9cef4 docs(i18n): add hints for model offloading settings 2026-06-07 02:57:00 +01:00
CalamitousFelicitousness 5105e0ad87 docs(i18n): add hints for SDNQ quantization settings 2026-06-07 02:57:00 +01:00
CalamitousFelicitousness c4d8576063 docs(ideogram4): clarify prompt handling in reference description
Requires structured JSON-caption prompts; prompt-enhance (on by default)
rewrites a plain prompt into one.
2026-06-07 00:37:21 +01:00
CalamitousFelicitousness 8c305fd68c refactor(processing): drop dead model-level keep_prompts check
Nothing sets keep_prompts on the model, so the guard never affected behavior.
JSON-caption prompts are preserved by the JSON short-circuit in
apply_curly_braces_to_prompt; the per-process p.keep_prompts path
(detailer, mixture-of-diffusers) is unchanged.
2026-06-07 00:37:15 +01:00
CalamitousFelicitousness 5257b5cba9 fix(ideogram4): scope qwen3-vl forward patch to the enhance window
The prompt-enhancer grafts an lm_head onto the shared Qwen3-VL body, so its
forward needs a device guard the stock forward lacks. Applying that patch
globally at load left it active for the whole process, including unrelated
Qwen3-VL users such as the VQA captioner.

Apply the hijack around the enhancer generate call and restore the stock
forward in a finally, so the patch affects only the ideogram enhancer.
2026-06-07 00:30:45 +01:00
CalamitousFelicitousness f83c1bc731 refactor(sdnq): clean up dynamic loss threshold slider 2026-06-07 00:18:07 +01:00
Vladimir Mandic 09fd3fa3b1 update docs
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-06 08:58:59 +02:00
Vladimir Mandic 08ee9336bf update changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-06 08:34:15 +02:00
Vladimir Mandic 257f33b7a3 Merge pull request #4892 from vladmandic/fix/dit-override-arch-mismatch
fix(native-loader): handle arch-mismatched UNET override on cold start
2026-06-06 08:25:48 +02:00
CalamitousFelicitousness e12ae85d06 test(native-loader): add shape-mismatch unit and override self-heal API test 2026-06-06 01:08:31 +01:00
CalamitousFelicitousness 5f50117bf9 docs(native-loader): document shape-mismatch override behavior 2026-06-05 20:08:43 +01:00
Vladimir Mandic 78f88ef571 add ideogram4
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-05 20:00:49 +02:00
Vladimir Mandic a9ca59bef0 update all model sizes
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-05 08:48:36 +02:00
Vladimir Mandic 9ade767836 update ideogram4 requirements and global skills update
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-05 07:54:03 +02:00
Vladimir Mandic 9c6d6907ea fix hfinfo
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-05 07:24:34 +02:00
Vladimir Mandic 928e04aff8 Merge pull request #4893 from vladmandic/feat/ideogram4
feat/Ideogram 4 support
2026-06-05 07:24:21 +02:00
CalamitousFelicitousness 63fd441a14 refactor(ideogram4): register pipeline and load via from_pretrained
Register the subclass with generic.set_pipeline and build it with
from_pretrained, passing the SDNQ transformers and shared text encoder
while the vae, scheduler, and tokenizer load from the repo.
2026-06-05 02:10:00 +01:00
CalamitousFelicitousness 92e1cb9927 fix(ideogram4): pass JSON captions through unmangled
The dynamic-prompt brace processor in apply_styles_to_prompts strips the
{} and [] out of a JSON caption, leaving non-JSON that trips the model's
weight-baked safety placeholder. Let a model opt out of style and wildcard
processing via keep_prompts and set it for Ideogram4, then normalize the
prompt in encode_prompt: valid JSON to the compact training form, plain
text wrapped into a minimal caption so basic prompts still generate.
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness 5c1a52ee4c perf(ideogram4): keep both transformers resident when they fit
Each denoise step runs both transformers, so balanced offload ping-pongs
them across PCIe every step. When both fit gpu_memory * max watermark, set
offload_never so the per-step pre-sweep skips them and they stay resident;
otherwise the normal offload path is kept, so smaller GPUs and bf16 fall
back to offloading unchanged.
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness bcebb6b81b refactor(ideogram4): adopt diffusers-native pipeline
diffusers shipped first-party Ideogram 4 (transformer + pipeline) in
9b0818cf, so drop the in-tree port and keep only SD.Next integration glue.

Bump the diffusers pin to 9b0818cf and build diffusers' Ideogram4Pipeline
from a thin loader with per-transformer SDNQ. A small subclass keeps the
text encoder resident for the Qwen3-VL tap under balanced offload, and the
step callback denormalizes the preview latent from vae.bn before unpatchify.
Deletes the ported transformer, pipeline, scheduler, text encoder, and
latent-norm constants.
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness 4866d2c8f3 fix(ideogram4): offload-safe encode, step progress, live preview
- move the text encoder on-device for the tapped forward (bypasses the offload hook)
- wrap the denoise loop in the diffusers progress bar
- live preview through the shared TAE FLUX.2 decoder (Flux.2 VAE)
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness b5fdb1995e test(ideogram4): add parity and smoke tests
Offline transformer parity gate against the reference plus an SDNQ-int4 end-to-end smoke.
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness 2f3d0e719d feat(ideogram4): add Ideogram 4 model support
Diffusers-native port of the 9.3B flow-matching DiT: dual-transformer asymmetric CFG, a 13-layer Qwen3-VL tap encoder deduped with VQA and prompt-enhance, the Flux.2 VAE, and a logit-normal schedule. Loads a published bf16 repo with SDNQ at load.
2026-06-05 01:54:18 +01:00
CalamitousFelicitousness 32081ade7c refactor(native-loader): replace required_markers with reactive fallback
A converter error or load_state_dict mismatch now raises OverrideArchMismatch, which load_transformer catches to drop the override and load the base transformer. No per-arch markers to maintain.
2026-06-04 21:20:10 +01:00
Vladimir Mandic 624c304f4b update todo
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 12:48:57 +02:00
Vladimir Mandic 5e99dee3c2 full codespell coverage
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 12:36:10 +02:00
Vladimir Mandic 0bfcdabbbb lint fix
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 11:37:44 +02:00
Vladimir Mandic f25f325efb fixes based on full skills run
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 11:10:26 +02:00
Vladimir Mandic e7e317191a automated pipeline registrations and tests
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 10:18:09 +02:00
Vladimir Mandic cade8c2564 fix generate forever
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 16:54:58 +02:00
Vladimir Mandic 258d88e6bf fix typo
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 09:46:44 +02:00
Vladimir Mandic ec2e37ee6e enhance automated testing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 09:27:34 +02:00
Vladimir Mandic c47d2e0dd8 update changelog
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 08:11:42 +02:00
Vladimir Mandic a664c33965 Merge pull request #4891 from ryanmeador/fix/video-thumbnail-toggle
feat(video): add thumbnail save toggle
2026-06-03 08:10:43 +02:00
Vladimir Mandic d89844f145 Merge pull request #4890 from ryanmeador/feat/video-mp4-metadata
feat(video): save prompt metadata in mp4
2026-06-03 08:04:40 +02:00
Ryan Meador 11096bc0aa feat(video): add thumbnail save toggle 2026-06-02 23:43:58 -04:00
Ryan Meador 8085eadffb feat(video): save prompt metadata in mp4 2026-06-02 23:05:47 -04:00
CalamitousFelicitousness 596cae1b90 fix(native-loader): handle arch-mismatched UNET/DiT override on cold start 2026-06-03 03:23:24 +01:00
Vladimir Mandic 2af67b76d0 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-02 17:13:08 +02:00
Vladimir Mandic 35aa8c6422 fix openpose and add test-compile
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-02 17:06:18 +02:00
Vladimir Mandic 3c2a742f40 cleanup logging
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-02 08:03:27 +02:00
Vladimir Mandic bd47b693d2 update transformers and cleanup ui labels
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-02 07:45:37 +02:00
Vladimir Mandic 2ad2796ea9 update diffusers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-02 07:19:04 +02:00
Vladimir Mandic 6afde7e631 Merge pull request #4886 from vladmandic/feat/detailer-postprocess
feat(api): add detailer postprocess script and /sdapi/v1/detail endpoint
2026-06-02 07:15:11 +02:00
Vladimir Mandic a96a828191 Merge pull request #4888 from liutyi/dev
Microsoft Lens preview images v2 (office)
2026-06-01 19:58:33 +02:00
Oleksandr Liutyi 3108a00be8 Microsoft Lens preview images v2 (office) 2026-06-01 17:49:11 +00:00
Vladimir Mandic 6a1c994cf3 cleanup
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-01 11:54:26 +02:00
Vladimir Mandic c319f8f92d refactor shared text encoder
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-01 10:03:10 +02:00
Vladimir Mandic 24aced130d Merge pull request #4876 from vladmandic/feat/native-transformer-loader
Feat/native transformer loader
2026-06-01 06:59:47 +02:00
Vladimir Mandic 76763da29d Merge pull request #4887 from ryanmeador/fix/ltx-prompt-embed-device
fix(ltx): align cached prompt tensors with device
2026-06-01 06:51:40 +02:00