|
@@ -44,7 +44,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Seed')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.seed = (params?.seed ?? null) === null ? 0 : null;
|
|
@@ -79,7 +79,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Stop Sequence')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.stop = (params?.stop ?? null) === null ? '' : null;
|
|
@@ -113,7 +113,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Temperature')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.temperature = (params?.temperature ?? null) === null ? 0.8 : null;
|
|
@@ -159,7 +159,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Mirostat')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.mirostat = (params?.mirostat ?? null) === null ? 0 : null;
|
|
@@ -205,7 +205,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Mirostat Eta')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.mirostat_eta = (params?.mirostat_eta ?? null) === null ? 0.1 : null;
|
|
@@ -251,7 +251,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Mirostat Tau')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.mirostat_tau = (params?.mirostat_tau ?? null) === null ? 5.0 : null;
|
|
@@ -297,7 +297,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Top K')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.top_k = (params?.top_k ?? null) === null ? 40 : null;
|
|
@@ -343,7 +343,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Top P')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.top_p = (params?.top_p ?? null) === null ? 0.9 : null;
|
|
@@ -389,7 +389,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Frequency Penalty')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.frequency_penalty = (params?.frequency_penalty ?? null) === null ? 1.1 : null;
|
|
@@ -435,7 +435,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Repeat Last N')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.repeat_last_n = (params?.repeat_last_n ?? null) === null ? 64 : null;
|
|
@@ -481,7 +481,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Tfs Z')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.tfs_z = (params?.tfs_z ?? null) === null ? 1 : null;
|
|
@@ -527,7 +527,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Context Length')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.num_ctx = (params?.num_ctx ?? null) === null ? 2048 : null;
|
|
@@ -572,7 +572,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Batch Size (num_batch)')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.num_batch = (params?.num_batch ?? null) === null ? 512 : null;
|
|
@@ -619,7 +619,7 @@
|
|
|
</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.num_keep = (params?.num_keep ?? null) === null ? 24 : null;
|
|
@@ -664,7 +664,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Max Tokens (num_predict)')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.max_tokens = (params?.max_tokens ?? null) === null ? 128 : null;
|
|
@@ -711,7 +711,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('use_mmap (Ollama)')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.use_mmap = (params?.use_mmap ?? null) === null ? true : null;
|
|
@@ -731,7 +731,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('use_mlock (Ollama)')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.use_mlock = (params?.use_mlock ?? null) === null ? true : null;
|
|
@@ -751,7 +751,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('num_thread (Ollama)')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.num_thread = (params?.num_thread ?? null) === null ? 2 : null;
|
|
@@ -797,7 +797,7 @@
|
|
|
<div class=" self-center text-xs font-medium">{$i18n.t('Template')}</div>
|
|
|
|
|
|
<button
|
|
|
- class="p-1 px-3 text-xs flex rounded transition"
|
|
|
+ class="p-1 px-3 text-xs flex rounded transition flex-shrink-0 outline-none"
|
|
|
type="button"
|
|
|
on:click={() => {
|
|
|
params.template = (params?.template ?? null) === null ? '' : null;
|