Commit Graph

2336 Commits

Author SHA1 Message Date
rattus
40dbdc1bef restore SDPA non-cudnn small attention bypass (#15296)
This is performance critical for ACE step.
2026-08-04 15:25:25 -04:00
rivadart
16e3f3034f fix(minimax): cast raw parameters to input device in H3 VAEs (#15268) 2026-08-03 19:06:12 -04:00
comfyanonymous
e377e26304 Don't pin too much memory on Linux systems with no swap partition. (#15266) 2026-08-03 16:29:47 -04:00
Jukka Seppänen
57500fc5bc feat: Support MiniMax-H3 (CORE-375) (#15224) 2026-08-02 22:28:29 -04:00
Oliver Freyermuth
b53e247c94 rename comfy/logging.py to comfy/internal_logging.py (#15231)
This avoids name collision (circular imports) for external custom nodes,
for which the comfy path is pushed into sys.path so Python's own logging module
is shadowed otherwise.

fixes: #15229
2026-08-02 16:20:27 -04:00
rattus
611f2a4e0f fix pin registration priority (#15226)
This priority scheme was broken in the case where you have pin
registration exhaustion while loading a VBAR that gets a big evicition.
The weight would stay in the loaded set but inherit the MRU priority
against other workflow models WRT pin registration which leads to async
offload without pinning.

Fix by universally promiting active pin registration above workflow
pins without concern for the weights/weights-loaded split. This diverges
from the actual budgeting where the split still makes sense.
2026-08-02 08:16:06 -07:00
rattus
8084083d4b comfy-aimdo 0.4.11 (#15215)
Changes:

Remove sequential scan hint
Prefer NVML pressure on windows
Add async malloc clamp option (unused by comfy so far)
Workaround AMD windows GPU virtual address space leak

The largest change is the NVML pressure, which works around a cuMemGetInfo
drift from actual VRAM in some circumstances.
2026-08-02 06:55:37 -04:00
comfyanonymous
f06a187f50 Handle case where swap memory query fails on windows. (#15219) 2026-08-02 01:12:12 -04:00
comfyanonymous
532a16f3b9 Disable gradients on diffusion models. (#15218) 2026-08-01 20:15:51 -07:00
Jukka Seppänen
49a7422892 Support latent previews for nested latents (#15196) 2026-08-01 19:57:15 -04:00
comfyanonymous
a1c421994c Expand k, v when attention backend would fall back to math because gqa. (#15190) 2026-07-31 15:17:56 -07:00
rattus
7c806288d5 ops: apply the custom placeholder logic to Linux too (#15181)
Windows has proven this logic works for a long time and there are
corner cases where this materialization actual consumes real RAM
on linux.

Its not as bad as the original windows commit charge surge, but
its still a detectable transient leak. So simplify and unify.
2026-07-31 10:44:09 -07:00
rattus
de5625a64a Delay dynamic pin cleanup until model destruction (#15183) 2026-07-31 10:29:47 -07:00
blepping
831710d257 Don't assume sampler_function has a __name__ attribute in detail logging (#15179) 2026-07-31 19:12:17 +03:00
comfyanonymous
f73e8cde88 Fallback to cudnn attention on linux if flash attention doesn't work. (#15146) 2026-07-29 18:10:28 -07:00
Barish Ozbay
e651b7bef5 Fix LTXAV crash when sampling without an audio latent (#15132) 2026-07-28 20:24:08 -07:00
Jukka Seppänen
c38171ddb9 Support Pruna LTX VAE (#15129) 2026-07-28 18:25:55 -04:00
rattus
fbe6d3ca8f Add configurable DETAIL logging side channel (#15064) 2026-07-28 17:31:45 -04:00
rattus
c01175530e Load weights to process RAM with MRU policy using pinning infrastructure (#15027) 2026-07-28 17:05:57 -04:00
Jukka Seppänen
3d41e3ea4e Support int8 convrot embedding lookup (#15035) 2026-07-28 17:02:57 -04:00
Jukka Seppänen
a3572c4832 Allow using float fps for LTXVEmptyLatentAudio (#15106) 2026-07-27 13:04:14 -07:00
Jukka Seppänen
806e092ed4 Fix MageFlow on cards that don't support bf16 (#15081) 2026-07-25 21:01:51 -04:00
comfyanonymous
f966a2b38c Optimize ideogram model using comfy kitchen rms rope. (#15080) 2026-07-25 15:09:26 -04:00
Jukka Seppänen
45ffd5430b feat: Support MageFlow (CORE-372) (#15026) 2026-07-24 23:14:01 -04:00
rattus
36aec0d086 cli_args: bump clamp to 128BGB (#15068)
Some long running chaos testing on a 512GB RAM RTX6000 pro showed that this
is a little bit too low for common template workflows switching around. The
original number was just a guess from me, so go with the scientific result
instead.
2026-07-24 19:48:52 -04:00
rattus
f8a3fd9d79 upscalers: convert latent_upsampler model to DynamicVram (#15063)
These were alll non-dynamic (some non-ModelPatcher) code path calling
FreeMemory for management requiring up-front memory freeing. Convert it
to dynamic to avoid legacy free behaviour mixing into otherwise
dynamic workflows.
2026-07-24 13:34:40 -07:00
comfyanonymous
7c59a078d6 Use comfy kitchen rope functions in ltx models. (#15056) 2026-07-24 15:17:31 -04:00
comfyanonymous
0cb84e7e6e Make Ernie use comfy kitchen rms rope (#15055) 2026-07-23 22:06:52 -04:00
comfyanonymous
2e47082c8e Make z image/lumina 2 models use comfy kitchen rms rope. (#15036) 2026-07-22 15:34:27 -04:00
comfyanonymous
947c2749dd Use optimized rms_rope function in joyai image model. (#15018) 2026-07-21 20:02:45 -07:00
Barish Ozbay
ac3a7a654f Add native Uni3C Controlnet support for Wan models (CORE-365) (#14946)
* Add native Uni3C controlnet support for Wan models

* Dispatch double_block patches in all Wan model variants

* Remove unused grid_sizes assignment in CameraWanModel, WanModel_S2V, HumoWanModel, and AnimateWanModel
2026-07-21 15:44:14 +03:00
comfyanonymous
35c94d6023 Fix gfx1035 not being treated like RDNA2 (#15009) 2026-07-20 23:36:03 -04:00
Jukka Seppänen
ecba6f2594 feat: Support Gemma4 12B (CORE-277) (#14304) 2026-07-20 19:33:26 -04:00
comfyanonymous
6665515349 Fix wan dancer issue with batches. (#14999) 2026-07-19 15:13:49 -07:00
comfyanonymous
c9602625e4 Implement regular and timestep zero reference images to krea 2 for ostris and identity edit ref loras. (#14843) 2026-07-18 17:12:18 -07:00
comfyanonymous
0f42ba5146 Support anima lllite control models. (#14954)
Put them in the models/model_patches folder. Use the new AnimaLLLiteApply node.
2026-07-17 07:36:21 -07:00
comfyanonymous
71b73e3b2b Speed up anima a bit. (#14953) 2026-07-16 19:44:02 -07:00
彼彼
03978e1e81 [feat]Add JoyImageEdit native model support (#14428) 2026-07-15 23:48:28 -04:00
comfyanonymous
c35a622acd Fix hidream o1 regression. (#14923) 2026-07-13 12:52:28 -07:00
comfyanonymous
917faef771 Support PID 1.5 models. (#14894) 2026-07-12 09:43:30 -07:00
comfyanonymous
69ea58697b Try to fix flash attention related issue on AMD. (#14880) 2026-07-11 17:16:40 -07:00
comfyanonymous
f3a36e7484 Temporarily disable auto enabling triton by default on AMD. (#14878)
I get freezing issues on my test machine.
2026-07-10 18:37:59 -07:00
comfyanonymous
92ddf07ba1 Try to fix some issues with the seedvr VAE. (#14877) 2026-07-10 19:54:28 -04:00
liminfei-amd
1377a2f729 Only auto-enable the ROCm comfy-kitchen Triton backend on matrix-core GPUs (#14869)
#14862 auto-enables the comfy-kitchen Triton backend whenever torch.version.hip
is set and Triton >= 3.7. The INT8 matmul kernels compile tl.dot to matrix-core
instructions (WMMA on RDNA3+/gfx11xx-gfx12xx, MFMA on CDNA/gfx9xx); RDNA1/RDNA2
(gfx10xx) have neither, so the auto-enabled INT8 path hangs the GPU there
(reported on RDNA2 + triton-windows 3.7.1: native and custom-node INT8 freeze
until reset).

Gate the automatic ROCm default on GPU architecture as well as Triton version so
RDNA1/RDNA2 stay on the working eager fallback. Add --disable-triton-backend as
an explicit override; --enable-triton-backend still force-enables on any arch.
2026-07-10 03:31:20 -07:00
John Pollock
8e2e54e2b8 Add SeedVR2 support (CORE-6) (#14424) 2026-07-10 15:07:42 +08:00
liminfei-amd
099522f85b Enable comfy-kitchen Triton backend by default on ROCm/AMD (#14862)
On AMD/ROCm the CUDA backend is unavailable, so Triton is the only accelerated
comfy-kitchen backend. It was disabled by default (opt-in --enable-triton-backend),
leaving AMD on the slow eager path. Enable it by default when torch.version.hip is
set AND Triton is >= 3.7 -- older Triton lacks libdevice.rint on the HIP backend and
hard-crashes the INT8 path, so on Triton < 3.7 it stays disabled with a log line.
NVIDIA behavior is unchanged; the explicit --enable-triton-backend flag still works
as an override.

Fixes #14861
2026-07-09 23:11:52 -04:00
liminfei-amd
62e025a4f3 Fix FP8 activation quantization for >2D activations in mixed_precision_ops (#14643)
mixed_precision_ops.Linear.forward only quantized activations that were 2D, or
3D (reshaped to 2D). Inputs with rank >= 4 (e.g. Anima's MLP activations, which
are not reshaped to 3D the way the attention path is) fell through the
`input_reshaped.ndim == 2` guard and reached scaled_mm as bf16, silently
dispatching a bf16 kernel instead of FP8. Since MLP is roughly half the compute,
the FP8 speedup was far below expectation.

Generalize the existing 3D->2D reshape to any rank >= 3 (flatten the leading
dims, keep the contraction dim) and reshape the output back to the original
leading dims. 2D and 3D inputs are handled exactly as before; only rank >= 4
inputs change (now quantized instead of skipped). This matches the rank-agnostic
handling already used by the training path (flatten(0, -2) / unflatten).

Fixes #14595.
2026-07-09 22:30:26 -04:00
comfyanonymous
b7a648ca20 Try to fix the model reloading issue some people have. (#14822) 2026-07-09 16:39:01 -07:00
comfyanonymous
73e84d5ec8 Support convrot int4 models. (#14859)
linear_dtype in comfy_quant metadata can be used to set if the int4 op does
the matrix multiplication in int8 or int4, the default is int4 on GPUs that
support it with fallback to int8 for GPUs that don't.
2026-07-09 18:57:09 -04:00
Alexander Piskun
b35819712e feat: allow --comfy-api-base target ephemeral testenvs (#14569)
* feat: allow --comfy-api-base target ephemeral testenvs

Signed-off-by: bigcat88 <bigcat88@icloud.com>

* refactor: name /features data as backend flags, not frontend

---------

Signed-off-by: bigcat88 <bigcat88@icloud.com>
Co-authored-by: guill <jacob.e.segal@gmail.com>
2026-07-08 23:20:10 -07:00