We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a4cc8df + e00dfcc commit 7bfe32aCopy full SHA for 7bfe32a
src/ui_blocks/settings.py
@@ -12,7 +12,10 @@
12
def update_info():
13
torch_version = torch.__version__
14
cuda_version = torch.version.cuda
15
- torch_free, torch_total = torch.cuda.mem_get_info()
+ if torch.cuda.is_available():
16
+ torch_free, torch_total = torch.cuda.mem_get_info()
17
+ else:
18
+ torch_free, torch_total = 0, 0
19
vmem = psutil.virtual_memory()
20
ram_total = vmem.total
21
ram_available = vmem.available
0 commit comments