Merge remote-tracking branch 'origin/diffusion-phase7-perf' into diffusion-phase8-quant

This commit is contained in:
oobabooga 2026-07-01 12:02:11 -03:00
commit b02eacd64f

View file

@ -240,6 +240,8 @@ def _enable_cudnn_benchmark(logger: Any) -> bool:
except Exception as exc: # noqa: BLE001 — optimisation only
_warn(logger, "cudnn_benchmark", exc)
return False
# The TF32 flag values from before the first max load flipped them, so a later
# non-max load / unload can put the process back exactly as it found it (rather than
# forcing a hardcoded default that might clobber another component's choice).