From 8c1983cfda5d2b8b9f6400944a14ec900a450b03 Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 5 Nov 2024 01:39:54 -0500 Subject: [PATCH 1/4] Update AdvancedParams.svelte Added Advanced Parameters tooltips --- .../Settings/Advanced/AdvancedParams.svelte | 419 ++++++++++++------ 1 file changed, 281 insertions(+), 138 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index 95b27b889..2dd0ebcda 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -1,5 +1,6 @@ +
@@ -74,7 +76,15 @@
-
{$i18n.t('Seed')}
+
+ + {$i18n.t('Seed')} + +
- {#if (params?.temperature ?? null) !== null}
@@ -189,8 +213,15 @@
-
{$i18n.t('Mirostat')}
- +
+ + {$i18n.t('Mirostat')} + +
- {#if (params?.mirostat ?? null) !== null}
@@ -235,8 +265,15 @@
-
{$i18n.t('Mirostat Eta')}
- +
+ + {$i18n.t('Mirostat Eta')} + +
- {#if (params?.mirostat_eta ?? null) !== null}
@@ -281,7 +317,15 @@
-
{$i18n.t('Mirostat Tau')}
+
+ + {$i18n.t('Mirostat Tau')} + +
- {#if (params?.top_k ?? null) !== null}
@@ -373,7 +423,15 @@
-
{$i18n.t('Top P')}
+
+ + {$i18n.t('Top P')} + +
- {#if (params?.min_p ?? null) !== null}
@@ -465,7 +529,15 @@
-
{$i18n.t('Frequency Penalty')}
+
+ + {$i18n.t('Frequency Penalty')} + +
-
+
- {$i18n.t('Tokens To Keep On Context Refresh (num_keep)')} + + {$i18n.t('Tokens To Keep On Context Refresh (num_keep)')} +
-
+
+ {#if admin}
@@ -816,130 +935,154 @@ {/if}
-
-
-
{$i18n.t('use_mlock (Ollama)')}
+
+
+
+ + {$i18n.t('use_mlock (Ollama)')} + +
- + +
+ + {#if (params?.use_mlock ?? null) !== null} +
+
+ {params.use_mlock ? 'Enabled' : 'Disabled'} +
+ +
+ +
+
+ {/if}
- {#if (params?.use_mlock ?? null) !== null} -
-
- {params.use_mlock ? 'Enabled' : 'Disabled'} -
- -
- -
-
- {/if} -
- -
-
-
{$i18n.t('num_thread (Ollama)')}
- - + {$i18n.t('num_thread (Ollama)')} +
- {#if (params?.num_thread ?? null) !== null} -
-
- -
-
- -
-
- {/if} +
-
-
-
{$i18n.t('num_gpu (Ollama)')}
+ {#if (params?.num_thread ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
- + {$i18n.t('num_gpu (Ollama)')} +
- {#if (params?.num_gpu ?? null) !== null} -
-
- -
-
- -
-
- {/if} +
+ {#if (params?.num_gpu ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if} +
+ -
-
-
-
- {$i18n.t('Stream Chat Response')} +
+
+
+
+ + {$i18n.t('Stream Chat Response')} + +
+
- -
-
@@ -901,12 +905,18 @@ {/if}
- {#if admin}
-
{$i18n.t('use_mmap (Ollama)')}
- +
+ + {$i18n.t('use_mmap (Ollama)')} + +
- {#if (params?.use_mmap ?? null) !== null}
{params.use_mmap ? 'Enabled' : 'Disabled'}
-
From 634be4a97ade7d7c757bf45e3db6b401c4846aec Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:51:40 -0500 Subject: [PATCH 3/4] Update AdvancedParams.svelte i18n.t --- .../Settings/Advanced/AdvancedParams.svelte | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index c13518439..4efa3dc75 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -48,7 +48,7 @@
@@ -82,7 +82,7 @@
@@ -125,7 +125,7 @@
@@ -167,7 +167,7 @@
@@ -219,7 +219,7 @@
@@ -271,7 +271,7 @@
@@ -323,7 +323,7 @@
@@ -377,7 +377,7 @@
@@ -429,7 +429,7 @@
@@ -483,7 +483,7 @@
@@ -535,7 +535,7 @@
@@ -589,7 +589,7 @@
@@ -643,7 +643,7 @@
@@ -697,7 +697,7 @@
@@ -750,7 +750,7 @@
@@ -803,7 +803,7 @@
@@ -856,7 +856,7 @@
@@ -910,7 +910,7 @@
@@ -947,7 +947,7 @@
@@ -987,7 +987,7 @@
@@ -1041,7 +1041,7 @@
From cd6e05d43c828cc2774d468fb10a94ee5b42575f Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:10:51 -0500 Subject: [PATCH 4/4] Update AdvancedParams.svelte fix --- .../components/chat/Settings/Advanced/AdvancedParams.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index 4efa3dc75..3b7b77574 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -111,7 +111,7 @@