Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -97,9 +97,9 @@ if torch.cuda.is_available():
|
|
97 |
if "A100" not in gpu_name and "L4" not in gpu_name:
|
98 |
raise RuntimeError(f"This notebook requires an A100 or L4 GPU. Found: {gpu_name}")
|
99 |
elif "L4" in gpu_name:
|
100 |
-
print("Warning: L4 is supported, but A100 is recommended for faster inference.")
|
101 |
else:
|
102 |
-
raise RuntimeError("No CUDA-compatible GPU found. An A100 or
|
103 |
|
104 |
|
105 |
GPU_TO_VRAM_PARAMS = {
|
|
|
97 |
if "A100" not in gpu_name and "L4" not in gpu_name:
|
98 |
raise RuntimeError(f"This notebook requires an A100 or L4 GPU. Found: {gpu_name}")
|
99 |
elif "L4" in gpu_name:
|
100 |
+
print("Warning: L4 or L40S is supported, but A100 is recommended for faster inference.")
|
101 |
else:
|
102 |
+
raise RuntimeError("No CUDA-compatible GPU found. An A100, L4 or L40S GPU is required.")
|
103 |
|
104 |
|
105 |
GPU_TO_VRAM_PARAMS = {
|