fix exception

This commit is contained in:
clore 2024-12-10 23:11:25 +00:00
parent 4f1807e3ab
commit 8b9f89ff64
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ async def check_to_pull_selftest(current_specs):
if nvidia_gpu["pcie_width"] < min_width:
min_width = nvidia_gpu["pcie_width"]
if " MiB" in nvidia_gpu["mem_total"]:
gpu_total_vram += int(nvidia_gpu["mem_total"])
gpu_total_vram += int(nvidia_gpu["mem_total"].replace(" MiB", ''))
if gpu_name in auto_pull_selftest_gpus and current_specs["ram"] > 7 and int(current_specs["cpus"].split('/')[0]) >= 4 and not mixed_cards and min_width > 1 and gpu_total_vram < current_specs["ram"] * 1024 and float(current_specs["disk"].split(' ')[-1].replace("GB", '')) > 25:
await utils.async_run_command("docker pull vastai/test:selftest", 14400, non_interactive_env)
except Exception as e: