From 56e2d579f2bcc4cc8cefc9cdc175cd37d585ccf4 Mon Sep 17 00:00:00 2001 From: Zhuoran Date: Tue, 13 Aug 2024 09:46:38 +0800 Subject: [PATCH] Add advanced parameter num_gpu (Ollama) --- .../Settings/Advanced/AdvancedParams.svelte | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index ad9ea2104..915874aec 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -29,6 +29,7 @@ use_mmap: null, use_mlock: null, num_thread: null, + num_gpu: null, template: null }; @@ -864,6 +865,52 @@ {/if} +
+
+
{$i18n.t('num_gpu (Ollama)')}
+ + +
+ + {#if (params?.num_gpu ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+