fffiloni commited on
Commit
b03d37f
·
verified ·
1 Parent(s): 8edc776

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 L4 GPU is required.")
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 = {