Skip to content

Commit 6bb6546

Browse files
committed
Fixed stretching of input fields.
1 parent 20ad68f commit 6bb6546

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

examples/server/public/index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
201201
<textarea class="textarea textarea-bordered h-24" :placeholder="'Default: ' + configDefault.systemMessage" v-model="config.systemMessage"></textarea>
202202
</label>
203203
<template v-for="key in ['temperature', 'top_k', 'top_p', 'min_p', 'max_tokens']">
204-
<div class="join">
204+
<div class="join flex">
205205
<!-- A button with information about this sampler -->
206206
<label :for="`modal-${key}`" class="btn join-item">?</label>
207207
<input type="checkbox" :id="`modal-${key}`" class="modal-toggle" />
@@ -213,7 +213,7 @@ <h3 class="text-lg font-bold">{{ key }}</h3>
213213
<label class="modal-backdrop" :for="`modal-${key}`">OK</label>
214214
</div>
215215
<!-- The sampler input field-->
216-
<label class="input input-bordered join-item flex items-center gap-2 mb-2">
216+
<label class="input input-bordered join-item grow flex items-center gap-2 mb-2">
217217
<b>{{ key }}</b>
218218
<input type="text" class="grow" :placeholder="'Default: ' + (configDefault[key] || 'none')" v-model="config[key]" />
219219
</label>
@@ -226,7 +226,7 @@ <h3 class="text-lg font-bold">{{ key }}</h3>
226226
<div class="collapse-content">
227227
<div class="label">Samplers</div>
228228
<template v-for="key in ['dynatemp_range', 'dynatemp_exponent', 'typical_p', 'xtc_probability', 'xtc_threshold']">
229-
<div class="join">
229+
<div class="join flex">
230230
<!-- A button with information about this sampler -->
231231
<label :for="`modal-${key}`" class="btn join-item">?</label>
232232
<input type="checkbox" :id="`modal-${key}`" class="modal-toggle" />
@@ -238,15 +238,15 @@ <h3 class="text-lg font-bold">{{ key }}</h3>
238238
<label class="modal-backdrop" :for="`modal-${key}`">OK</label>
239239
</div>
240240
<!-- The sampler input field-->
241-
<label class="input input-bordered join-item flex items-center gap-2 mb-2">
241+
<label class="input input-bordered join-item grow flex items-center gap-2 mb-2">
242242
<b>{{ key }}</b>
243243
<input type="text" class="grow" :placeholder="'Default: ' + (configDefault[key] || 'none')" v-model="config[key]" />
244244
</label>
245245
</div>
246246
</template>
247247
<div class="label">Penalties</div>
248248
<template v-for="key in ['repeat_last_n', 'repeat_penalty', 'presence_penalty', 'frequency_penalty', 'dry_multiplier', 'dry_base', 'dry_allowed_length', 'dry_penalty_last_n']">
249-
<div class="join">
249+
<div class="join flex">
250250
<!-- A button with information about this sampler -->
251251
<label :for="`modal-${key}`" class="btn join-item">?</label>
252252
<input type="checkbox" :id="`modal-${key}`" class="modal-toggle" />
@@ -258,7 +258,7 @@ <h3 class="text-lg font-bold">{{ key }}</h3>
258258
<label class="modal-backdrop" :for="`modal-${key}`">OK</label>
259259
</div>
260260
<!-- The sampler input field-->
261-
<label class="input input-bordered join-item flex items-center gap-2 mb-2">
261+
<label class="input input-bordered join-item grow flex items-center gap-2 mb-2">
262262
<b>{{ key }}</b>
263263
<input type="text" class="grow" :placeholder="'Default: ' + (configDefault[key] || 'none')" v-model="config[key]" />
264264
</label>
@@ -321,22 +321,22 @@ <h3 class="text-lg font-bold">{{ key }}</h3>
321321
apiKey: '',
322322
systemMessage: 'The starting message that defines how model should behave.',
323323
temperature: 'Controls the randomness of the generated text by affecting the probability distribution of the output tokens. Higher = more random, lower = more focused.',
324-
dynatemp_range: 'The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.',
325-
dynatemp_exponent: 'Smoothes out the probability redistribution based on the most probable token.',
324+
dynatemp_range: 'Addon for the temperature sampler. The added value to the range of dynamic temperature, which adjusts probabilities by entropy of tokens.',
325+
dynatemp_exponent: 'Addon for the temperature sampler. Smoothes out the probability redistribution based on the most probable token.',
326326
top_k: 'Keeps only k top tokens.',
327327
top_p: 'Limits tokens to those that together have a cumulative probability of at least p',
328328
min_p: 'Limits tokens based on the minimum probability for a token to be considered, relative to the probability of the most likely token.',
329-
xtc_probability: 'The probability that the XTC sampler will cut token from the beginning.',
330-
xtc_threshold: 'If XTC is used, all top tokens with probabilities above this threshold will be cut.',
329+
xtc_probability: 'XTC sampler cuts out top tokens; this parameter controls the chance of cutting tokens at all. 0 disables XTC.',
330+
xtc_threshold: 'XTC sampler cuts out top tokens; this parameter controls the token probability that is required to cut that token.',
331331
typical_p: 'Sorts and limits tokens based on the difference between log-probability and entropy.',
332332
repeat_last_n: 'Last n tokens to consider for penalizing repetition',
333333
repeat_penalty: 'Controls the repetition of token sequences in the generated text',
334334
presence_penalty: 'Limits tokens based on whether they appear in the output or not.',
335335
frequency_penalty: 'Limits tokens based on how often they appear in the output.',
336-
dry_multiplier: 'Sets the DRY sampling multiplier.',
337-
dry_base: 'Sets the DRY sampling base value.',
338-
dry_allowed_length: 'Sets the allowed length for DRY sampling.',
339-
dry_penalty_last_n: 'Sets DRY penalty for the last n tokens.',
336+
dry_multiplier: 'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling multiplier.',
337+
dry_base: 'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the DRY sampling base value.',
338+
dry_allowed_length: 'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets the allowed length for DRY sampling.',
339+
dry_penalty_last_n: 'DRY sampling reduces repetition in generated text even across long contexts. This parameter sets DRY penalty for the last n tokens.',
340340
max_tokens: 'The maximum number of token per output.',
341341
custom: '', // custom json-stringified object
342342
};

0 commit comments

Comments
 (0)