Commit Graph
132 Commits
Author SHA1 Message Date
City bbd89ae547 Update .gitignore 2025-03-30 18:42:17 +02:00
City 65a2bc20bb wan bf16 fix 2025-03-28 04:21:26 +01:00
City 1c873edeb6 Expose strip prefix as function
For external convert/detection logic
2025-03-22 20:40:24 +01:00
City d40e9bdcfe Use args for 5d fix 2025-03-14 16:48:01 +01:00
City 9d0a0e317e ltxv bf16 fix
scale shift table loads into nn.parameter, which can't work with BF16
2025-03-07 22:37:17 +01:00
City c3a6103af5 hyvid subkey load fix 2025-03-07 22:36:51 +01:00
City 929a9e5f0d Keep img_emb in F32 for wan i2v 2025-02-27 05:58:01 +01:00
City 32a8eab8f9 Merge branch 'main' into convert_refactor_new 2025-02-27 03:19:19 +01:00
City 298192ed60 Wan model arch 2025-02-26 07:40:44 +01:00
City cd361cf0e3 Update README.md 2025-02-26 07:39:01 +01:00
YarvixPA 8832d37df2 Solution for patch files line endings and update for /tools README.md (#202)
* Create convert_lines_ending.py

Solution to convert line ending from Windows (CRLF) to Unix (LF)

* Update README.md

* Rename convert_lines_ending.py to fix_lines_ending.py

* Update README.md
2025-02-26 07:35:42 +01:00
City 355b43228c Wan2.1 convert logic 2025-02-26 07:06:54 +01:00
City e024aab10d Torch compile possible workaround
Seems to help on torch 2.6.0 with triton 3.2.0, less so on old versions.
Includes workaround for 2.0.X and other really old versions
#118
2025-02-23 18:49:50 +01:00
City abdfec54c4 Hunyuan Jank 2025-02-20 05:10:27 +01:00
City 2d46bcd61b Sanity checks in conversion code 2025-01-08 17:45:37 +01:00
City 8d313a677a Unused/old logic 2025-01-08 17:17:49 +01:00
City 5875c52f59 Unpin numpy version
#196 #7
2025-01-08 16:30:17 +01:00
City 8098c7149f Add PixArt clip type
Also makes the map more readable
#195
2025-01-04 21:46:23 +01:00
City 3dc384b233 More robust folder path logic
Attempts to override the unet_gguf key with our current one if it exists + print a warning.
Should only be triggered if another custom node edits the expected key in some way.
2024-12-26 21:42:33 +01:00
City c6ad4f2363 Account for not having quantized weights
#188
2024-12-22 19:00:03 +01:00
City 51fa2cbb5c Account for dequantization VRAM to avoid OOM
#187
2024-12-22 18:09:51 +01:00
City eaffa0a7d3 Change clip workaround for SD3
#186
2024-12-22 15:24:14 +01:00
City 8d1b56c5e2 Loader logic for LLaMA models
Tokenizer shape may be mismatched depending which model was used as source (128320 VS 128256) - warning instead of error for now.
k and q attn keys need to be reshaped back to HF format (inverse of convert_hf_to_gguf.py logic)
2024-12-20 13:39:17 +01:00
City 0a1723baae Split loader into separate file 2024-12-20 13:03:27 +01:00
City 0b65261cc4 HunyuanVideo
Convert script needs fixing, had to use a second script for the 5D tensor, will clean up and upload it later.
2024-12-17 07:33:42 +01:00
City 65a7c895bb Better propagation fix
#163
2024-12-14 00:38:11 +01:00
City 23b9817081 LTX-Video
Whilst we wait for Hunyuan Video.
2024-12-08 00:48:59 +01:00
City 851564739d Updated Intel Arc fix
Provided by @simonlui in #50 as a patch
2024-12-05 03:16:23 +01:00
City 39102df73f Stop custom tensor class propagating past dequant
#163
2024-12-04 16:14:54 +01:00
City 6e4790f903 Unused workaround 2024-12-04 15:54:20 +01:00
City a8b5f5d892 Less fragile patch logic
For new ComfyUI versions. Relatively minimal, hopefully won't break with future updates
#163
2024-12-04 02:09:01 +01:00
City 4a84328841 Add AuraFlow support 2024-11-23 06:51:29 +01:00
City 57562d54a5 Add ltxv clip type
#162
2024-11-23 00:10:27 +01:00
City 51c9713400 Fix sd1 not using shape fix 2024-11-21 02:24:40 +01:00
RandomGitUser321 8e898fad4c Add mochi to CLIPLoaderGGUF options (#154)
* Add mochi to CLIPLoaderGGUF options

ComfyUI implemented it today, so this should be all that's needed to use the T5 GGUF with it

* Update nodes.py
2024-11-06 14:04:04 +01:00
City 9833348005 Fix for text encoder folder name change
#151
2024-11-03 14:03:42 +01:00
City 6561064dcf Add SD3.5 links 2024-10-23 04:38:39 +02:00
City b70240508f Fix SD3 patch metadata/tensor issue
#136
2024-10-23 03:16:14 +02:00
City 4d7bb93397 Add initial SD3 lcpp patch + instruction
#136
2024-10-23 01:39:45 +02:00
City 0ef158d793 Add SD3 to loader arch list 2024-10-22 22:00:37 +02:00
City 68ad5fb214 Update README.md 2024-10-15 04:11:45 +02:00
City d090a910ac Rewrite convert.py to work properly with dev de-distill
Original logic was triggering SDXL specific code to reshape img_in weight, causing forge not to work with it.
Tagging @blepping since this might change how the SDXL code is evaluated, but based on a quick check it should work.
2024-10-15 03:56:54 +02:00
City d2aaeb0f13 Always init tenc on offload device
#83
needs updated ComfyUI as well to fix it, issue was with the direct load logic in model management putting the model on the GPU before the weights were loaded, at which point the loading would overwrite the weights with the CPU ones
2024-09-17 15:26:39 +02:00
City 454955ead3 Skip initialization for nn.Linear
Attempt to reserve less memory by not initializing linear layers until the weights are loaded.
#102 #95
2024-09-09 01:37:11 +02:00
City ac96699b7a Update README.md 2024-09-06 18:41:49 +02:00
City 0342f0a183 never double patch
#98
Instead of adding/removing patches, sync with `self.patches[key]` - old patch should be GC'd. Most likely no legitimate reasons for double patching. Can simplify logic in ops.py if no issues.
2024-09-06 18:10:02 +02:00
City b46c206dd7 double patch issue fix for lowvram
Potential fix, lowvram weights are called via `patch_weight_to_device` on each run and it was possible to apply the same patch multiple times on subsequent generations.
2024-09-05 05:32:01 +02:00
City 717a0e1d0b Temporarily disable instant patch logic
Seems to break VRAM estimation and needs more involved fix with upstream ComfyUI repo.
2024-09-03 17:00:20 +02:00
City c8923a4cd7 mmap unload fix for lowvram 2024-09-03 16:37:35 +02:00
City 6dbb4ba989 Temp fix for disable smart memory
Model management seems to expect `unpatch_model` to put model on specified device after unpatching. Needs different way to avoid patch reload.
2024-09-03 05:28:49 +02:00