24 Commits

Author SHA1 Message Date
CalamitousFelicitousness 8c884c1e02 feat(model): secondary unet override slot and ideogram4 native loading
One UNET override cannot serve dual-transformer arches: ideogram4
conditional/unconditional and wan combined-stage experts need separate
files, and previously a single override landed on both experts.

- sd_unet_secondary option with per-slot tracking, consumed-state sync,
  arch-change reset, and incompatible-override fallback
- dropdown renders beside the primary, follows it into quicksettings,
  and is visible only for dual-transformer model types
- ideogram4 native single-file spec with a quant-aware fused-qkv
  converter; such converters run before comfy_quant detection via
  TransformerSpec.converter_handles_quant
- quicksettings render in configured order (sort keyed on the option
  object and always fell back to alphabetical)
- post-load dtype warning skips quantized transformers
2026-07-11 06:40:07 +01:00
CalamitousFelicitousness 10647c7b67 fix(video): apply Wan 2.2 MoE boundary at runtime in both image and video paths
Wan 2.2 A14B ships a per-model boundary_ratio (0.9 I2V, 0.875 T2V) that selects the high- or low-noise expert per step. The video and base-model image loaders both load the shipped value; the slider override is applied at generation time in set_pipeline_args, the one point both paths pass through before invoking the pipeline.

The denoising loop reads config.boundary_ratio each call, so tuning takes effect with no reload for video and base-model images alike. The slider defaults to -1, meaning use the model's value; 0 to 1 set the boundary explicitly. Single-expert stages stay load-time because they drop a transformer to free VRAM.
2026-06-30 23:00:26 +01:00
Vladimir Mandic ec2e37ee6e enhance automated testing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-03 09:27:34 +02:00
CalamitousFelicitousness d01d637d94 refactor(wanai): retire bespoke load_transformer, route through generic
The 40-line hand-rolled loader was generic.load_transformer plus a
VACE/standard class switch and a hardcoded GGUF rejection. Switch moves
to load_wan; GGUF rejection removed (generic handles it via
GGUFQuantizationConfig).

No native_spec passed: WanTransformer3DModel has a working diffusers
converter, so from_single_file via generic stays correct.
2026-05-31 00:24:33 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
Disty0 28160ab7d3 cleanup dict defined in function args 2025-10-30 03:11:50 +03:00
Vladimir Mandic 4ecdf7bdcf fix wan22 stage selection
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-21 10:42:21 -04:00
Vladimir Mandic d71d540a62 allow lora specifier to select model component. see changelog/wiki for docs on how to.
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-23 15:25:13 -04:00
Vladimir Mandic 41bb446697 support configurable multi-stage models in video tab
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-22 13:18:39 -04:00
Vladimir Mandic cc6101ecb2 jumbo update: add wan22-vace, improve offloading, add offloading-using-streams, change logging-levels, refactor some default packages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-17 12:32:30 -04:00
Vladimir Mandic f976ed223d fix wan22-i2v
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-14 09:14:52 -04:00
Vladimir Mandic 4956d94b97 allow denoise 0
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 13:10:52 -04:00
Vladimir Mandic 7940217764 add models_not_to_quant option
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-11 12:31:07 -04:00
Vladimir Mandic 2bb96e6926 fix wan i2i
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-11 09:50:20 -04:00
Disty0 c598cdd2a7 Add transformer_2 and 3 to apply_function_to_model 2025-09-03 03:13:35 +03:00
Vladimir Mandic c41afe6b08 offloading hooks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-27 22:28:07 -04:00
Vladimir Mandic 0c8bbb9102 stages compatibility
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-24 09:35:50 -04:00
Vladimir Mandic 13195dadb9 rename wan a14b stages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-18 16:13:59 -04:00
Vladimir Mandic c92e329234 fix cosmos-t2i
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-11 16:05:39 -04:00
Vladimir Mandic 052f097956 lint
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-30 13:14:04 -04:00
Vladimir Mandic d8e03bb855 improve handling of wan22 stages
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-30 11:22:08 -04:00
Vladimir Mandic 74bb2b9ea6 autodetect v-pred
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-28 19:41:39 -04:00
Vladimir Mandic 935a4a0aa3 add wan 2.1 text-to-image
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-14 13:47:14 -04:00