Try pipeline["sd"] first (merged base+VACE weights), then
diffusion_model state dict, then reload from checkpoint file.
Applies LoRA patches from model patcher on top.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Model weights stay on meta device (no data) until ComfyUI's model
management loads them. Use load_models_gpu with force_full_load
to materialize weights before extracting state dict.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Consolidates the WanVideoSaveMergedModel node into this project as
save_node.py. Saves WanVideo diffusion models (with merged LoRAs) as
safetensors files with metadata for traceability.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>