MPDynamic: Pre-generate the tensors for vbars

Apparently this is an expensive operation that slows down things.
This commit is contained in:
Rattus
2026-02-09 15:30:13 +10:00
parent 959b3014bb
commit 12028af97b
3 changed files with 4 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ def cast_bias_weight_with_vbar(s, dtype, device, bias_dtype, non_blocking, compu
signature = comfy_aimdo.model_vbar.vbar_fault(s._v)
if signature is not None:
xfer_dest = comfy_aimdo.torch.aimdo_to_tensor(s._v, device)
xfer_dest = s._v_tensor
resident = comfy_aimdo.model_vbar.vbar_signature_compare(signature, s._v_signature)
if not resident: