From 386d41028af92e0fb89e6ade34efde48b898a2bc Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 10 Feb 2025 21:03:28 +0700 Subject: [PATCH] fix: filter out fake gpu (#4617) --- web/services/appService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/services/appService.ts b/web/services/appService.ts index 642c4c8d4..ec53b89bf 100644 --- a/web/services/appService.ts +++ b/web/services/appService.ts @@ -34,7 +34,9 @@ export const appService = { const hardwareInfo = await hardwareExtension?.getHardware() const gpuSettingInfo: GpuSetting | undefined = { - gpus: hardwareInfo.gpus as GpuSettingInfo[], + gpus: hardwareInfo.gpus.filter( + (gpu) => gpu.total_vram > 0 + ) as GpuSettingInfo[], vulkan: isMac ? false : selectedVariants.includes('vulkan'), cpu: hardwareInfo.cpu, }