From 38c50087feb11af41fed7a944ab0d7ef45a3bc44 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 16 May 2025 11:55:06 -0700 Subject: [PATCH] Prevent a crash on systems without an NVIDIA GPU --- modules/models_settings.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/models_settings.py b/modules/models_settings.py index 0eb179d7..3fdf3c84 100644 --- a/modules/models_settings.py +++ b/modules/models_settings.py @@ -421,11 +421,9 @@ def get_nvidia_free_vram(): return total_free_vram_mib except FileNotFoundError: - raise # nvidia-smi not found (likely no NVIDIA drivers installed) return -1 except Exception: - raise # Handle any other unexpected exceptions return -1