Merge branch 'comfyanonymous:master' into master

This commit is contained in:
patientx 2025-02-18 16:27:10 +03:00 committed by GitHub
commit 3bde94efbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1122,7 +1122,7 @@ def should_use_bf16(device=None, model_params=0, prioritize_performance=True, ma
bf16_works = torch.cuda.is_bf16_supported()
if bf16_works or manual_cast:
if bf16_works and manual_cast:
free_model_memory = maximum_vram_for_weights(device)
if (not prioritize_performance) or model_params * 4 > free_model_memory:
return True