From 9a266db7452886bc1cffc385bbbc38a2b57cecb8 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 23 Oct 2024 10:41:49 +0700 Subject: [PATCH] fix: hardware section (#3866) --- web/screens/Settings/Advanced/index.tsx | 147 ++++++++++++------------ 1 file changed, 76 insertions(+), 71 deletions(-) diff --git a/web/screens/Settings/Advanced/index.tsx b/web/screens/Settings/Advanced/index.tsx index bbfe7274cd..5b78194ab7 100644 --- a/web/screens/Settings/Advanced/index.tsx +++ b/web/screens/Settings/Advanced/index.tsx @@ -237,7 +237,7 @@ const Advanced = () => { {/* CPU / GPU switching */} - {!isMac && gpuList.length > 0 && ( + {!isMac && (
@@ -314,81 +314,86 @@ const Advanced = () => { />
-
- -
- - } - onClick={() => setOpen(!open)} - /> -
-
-

{vulkanEnabled ? 'Vulkan Supported GPUs' : 'Nvidia'}

-
-
- {gpuList - .filter((gpu) => - vulkanEnabled - ? gpu.name - : gpu.name?.toLowerCase().includes('nvidia') - ) - .map((gpu) => ( -
- handleGPUChange(gpu.id)} - label={ - - {gpu.name} - {!vulkanEnabled && ( - {gpu.vram}MB VRAM - )} - - } - /> -
- ))} -
- {gpuEnabled && gpusInUse.length > 1 && ( -
- -

- If multi-GPU is enabled with different GPU models or - without NVLink, it could impact token speed. -

+ + {gpuList.length > 0 && ( +
+ +
+ + } + onClick={() => setOpen(!open)} + /> +
+
+

+ {vulkanEnabled ? 'Vulkan Supported GPUs' : 'Nvidia'} +

+
+
+ {gpuList + .filter((gpu) => + vulkanEnabled + ? gpu.name + : gpu.name?.toLowerCase().includes('nvidia') + ) + .map((gpu) => ( +
+ handleGPUChange(gpu.id)} + label={ + + {gpu.name} + {!vulkanEnabled && ( + {gpu.vram}MB VRAM + )} + + } + /> +
+ ))}
- )} + {gpuEnabled && gpusInUse.length > 1 && ( +
+ +

+ If multi-GPU is enabled with different GPU models + or without NVLink, it could impact token speed. +

+
+ )} +
-
+ )}
)}