From 2cc2694ebae21fc5f6d3d35bb29b939aa038d837 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 5 Nov 2024 14:05:13 -0800 Subject: [PATCH] refac: styling --- .../Settings/Advanced/AdvancedParams.svelte | 1076 +++++++++-------- 1 file changed, 562 insertions(+), 514 deletions(-) diff --git a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte index 3b7b77574..e692f1530 100644 --- a/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte +++ b/src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte @@ -43,17 +43,18 @@ } -
-
+
+
+
- - {$i18n.t('Stream Chat Response')} - + {$i18n.t('Stream Chat Response')}
-
+ +
-
-
- + +
+
{$i18n.t('Seed')} - -
+
- -
+ +
+ {#if (params?.seed ?? null) !== null}
@@ -122,31 +126,33 @@
-
-
- + +
+
{$i18n.t('Stop Sequence')} - -
+
- -
+ +
+ {#if (params?.stop ?? null) !== null}
@@ -164,30 +170,33 @@
-
-
- + +
+
{$i18n.t('Temperature')} - +
+
- -
+ + {#if (params?.temperature ?? null) !== null}
@@ -216,30 +225,33 @@
-
-
- + +
+
{$i18n.t('Mirostat')} - +
+
- -
+ + {#if (params?.mirostat ?? null) !== null}
@@ -268,30 +280,33 @@
-
-
- + +
+
{$i18n.t('Mirostat Eta')} - +
+
- -
+ + {#if (params?.mirostat_eta ?? null) !== null}
@@ -320,31 +335,33 @@
-
-
- + +
+
{$i18n.t('Mirostat Tau')} - -
+
- -
+ +
+ {#if (params?.mirostat_tau ?? null) !== null}
@@ -374,30 +391,33 @@
-
-
- + +
+
{$i18n.t('Top K')} - +
+
- -
+ + {#if (params?.top_k ?? null) !== null}
@@ -426,31 +446,33 @@
-
-
- + +
+
{$i18n.t('Top P')} - -
+
- -
+ +
+ {#if (params?.top_p ?? null) !== null}
@@ -480,30 +502,33 @@
-
-
- + +
+
{$i18n.t('Min P')} - +
+
- -
+ + {#if (params?.min_p ?? null) !== null}
@@ -532,31 +557,33 @@
-
-
- + +
+
{$i18n.t('Frequency Penalty')} - -
+
- -
+ +
+ {#if (params?.frequency_penalty ?? null) !== null}
@@ -586,31 +613,33 @@
-
-
- + +
+
{$i18n.t('Repeat Last N')} - -
+
- -
+ +
+ {#if (params?.repeat_last_n ?? null) !== null}
@@ -640,31 +669,33 @@
-
-
- + +
+
{$i18n.t('Tfs Z')} - -
+
- -
+ +
+ {#if (params?.tfs_z ?? null) !== null}
@@ -694,31 +725,33 @@
-
-
- + +
+
{$i18n.t('Context Length')} - -
+
- -
+ +
+ {#if (params?.num_ctx ?? null) !== null}
@@ -747,31 +780,33 @@
-
-
- + +
+
{$i18n.t('Batch Size (num_batch)')} - -
+
- -
+ +
+ {#if (params?.num_batch ?? null) !== null}
@@ -800,31 +835,33 @@
-
-
- + +
+
{$i18n.t('Tokens To Keep On Context Refresh (num_keep)')} - -
+
- -
+ +
+ {#if (params?.num_keep ?? null) !== null}
@@ -853,31 +890,33 @@
-
-
- + +
+
{$i18n.t('Max Tokens (num_predict)')} - -
+
- -
+ +
+ {#if (params?.max_tokens ?? null) !== null}
@@ -907,30 +946,33 @@ {#if admin}
-
-
- + +
+
{$i18n.t('use_mmap (Ollama)')} - +
+
- -
+ + {#if (params?.use_mmap ?? null) !== null}
@@ -943,16 +985,17 @@ {/if}
-
+
+
- - {$i18n.t('use_mlock (Ollama)')} - + {$i18n.t('use_mlock (Ollama)')}
+
- {#if (params?.use_mlock ?? null) !== null} -
-
- {params.use_mlock ? 'Enabled' : 'Disabled'} -
- -
- -
+ {#if (params?.use_mlock ?? null) !== null} +
+
+ {params.use_mlock ? 'Enabled' : 'Disabled'}
- {/if} -
-
-
-
- - {$i18n.t('num_thread (Ollama)')} - -
- - +
+ +
+
+ {/if}
- {#if (params?.num_thread ?? null) !== null} -
-
- -
-
- -
-
- {/if} -
- -
-
-
- - {$i18n.t('num_gpu (Ollama)')} - -
- - +
+
+ {$i18n.t('num_thread (Ollama)')} +
+ + +
+ + + {#if (params?.num_thread ?? null) !== null} +
+
+ +
+
+ +
+
+ {/if}
- {#if (params?.num_gpu ?? null) !== null} -
-
- +
+ +
+
+ {$i18n.t('num_gpu (Ollama)')} +
+ +
-
- + + + {#if (params?.num_gpu ?? null) !== null} +
+
+ +
+
+ +
-
- {/if} -
+ {/if} +